Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2001, 11:40 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Exclamation Bomy pet help!

tell me whats wrong with that part
;
with (getplayer(#s(this.followperson))) {
noowner = false;
if (!strequals(#F,#L)) {
// Player leaved the level, so follow him
setarray this.followpos,0;
dir = playerdir;
warpto #F,playerx,playery;
}
else {
//
// Follow the player
//
px = playerx;
py = playery;
}
// Add one step to the list if the player has moved
alen = arraylen(this.followpos);
if (alen<2 || this.followpos[alen-2]!=px || this.followpos[alen-1]!=py)
{
setarray this.followpos,alen+2;
this.followpos[alen] = px;
this.followpos[alen+1] = py;
}
// Only save 4 steps, so delete one entry at the beginning
// if there are too many
if (arraylen(this.followpos)>4*2) {
for (i=0; i<4;
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #2  
Old 11-13-2001, 02:29 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
uhh thats part of a bomy pet script i believe ...
Reply With Quote
  #3  
Old 11-13-2001, 06:49 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
If you're testing it offline it is quite simply because it can't work offline.
__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.