![]() |
Problem with NPC movement
Hello again!
Today I am having two problems: 1) When this movement was moved to the clientside, movement was quicker, but the npc coordinates were offset by a few pixels, and now will not work on a gmap (the NPC merely sits in the warpto() spot) 2) The NPC sometimes will not cease the walk gani PHP Code:
|
Why aren't you using the move() function?
|
Quote:
For number 2, might try checking the movement elsewhere in the script or check movement a different way, maybe it's possible the pet's walking speed is not between 0 and pet.walkspeed by some other logic error in the script. |
The function completely slipped my mind, great suggestion
however I'm still having a problem with the gmap The NPC refuses to move while on a gmap EDIT: The NPC completely disappeared when I changed the moveTo() call in followPlayer() to move() with time: 3 and options 4+16 |
Quote:
|
All of this is clientside
PHP Code:
|
Quote:
You I was mostly talking about the if statement. PHP Code:
PHP Code:
|
I tried your suggestion and neither attempts worked (including fixing your error in the first if statement if(temp.petlevel.name != temp.petlevel.name) )
It simply wont warp to the gmap |
Yes, I apologize, I also meant to remove the modulus from the warpto() in the first example I sent you.
It's possible that it's warping to the gmap, but being displayed at an x/y of 0-64. |
Still no success
The pet also would not move correctly with the move() command attempt I'm not sure what I am doing wrong |
| All times are GMT +2. The time now is 06:58 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.