Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bomy pet help! (https://forums.graalonline.com/forums/showthread.php?t=16794)

fireball_dolphonia 11-13-2001 11:40 AM

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;

nyghtGT 11-13-2001 02:29 PM

uhh thats part of a bomy pet script i believe ...

grim_squeaker_x 11-13-2001 06:49 PM

If you're testing it offline it is quite simply because it can't work offline.


All times are GMT +2. The time now is 02:33 PM.

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