You want the npc to walk, or do you want the npc force movement mask? Because as far as I know, there is no force movement mask for npcs.
|
Hey! ive been analizing the npc movment in the npchandler process
and i cant seem to figure out how to make an npc spawn at your current postion, then force walk to a set postion, then stop.
I know there are npc movement methods that are in the server, i just can't figure out how to apply them :\
Thanks!!!! WOULD REALLY APRETIATE IT
PS: im using this for my falconry in my Hunter skill that im currently expanding
EDIT!!: If anyone has the stand animation for when your holding the falconers glove, i love you long time
You want the npc to walk, or do you want the npc force movement mask? Because as far as I know, there is no force movement mask for npcs.
PI?
It looks like all you have to do is set the absX and absY.
You'll probably have to set some boolean that tells the process that it shouldn't interrupt the current walk with some other walk point, but I found this..
Code:if(npcs[i].spawnedBy == 0) { if((npcs[i].absX > npcs[i].makeX + Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absX < npcs[i].makeX - Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absY > npcs[i].makeY + Config.NPC_RANDOM_WALK_DISTANCE) || (npcs[i].absY < npcs[i].makeY - Config.NPC_RANDOM_WALK_DISTANCE)) { npcs[i].walkingHome = true; } } if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) { npcs[i].walkingHome = false; } else if(npcs[i].walkingHome) { npcs[i].moveX = GetMove(npcs[i].absX, npcs[i].makeX); npcs[i].moveY = GetMove(npcs[i].absY, npcs[i].makeY); npcs[i].getNextNPCMovement(i); npcs[i].updateRequired = true; }
n.walkX
n.walkY
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |