Moving mobs
Is there a way I can get a mob to move somewhere and then stay there? Whenever I use MoveTo(), the mob will move to the location and then immediately go right back to where it spawned.
|
Spawn him on a grid and when he gets to the end, respawn him off of grid.
|
Or set a huge pause on the last grid_entry.
|
Is there anyway to do this within the context of a script though? I wanted to have scripts for mobs that would allow them to strategically move to different locations in battle. Like a rogue getting behind a player or a caster moving a safe distance away from the fighting. I can get them to move to these places but as soon as they get there, they turn around and go back to their spawn point. Waypoints would work if it was a pre-planned move but I'm trying to get the mobs to decide where to move within the script based on the location of the players and other factors.
|
You're npcs are returning to their guard spots.
You'll want to use $npc->SaveGuardSpot(0); to prevent the return. for example, Code:
sub EVENT_WAYPOINT { |
Awesome, it works. Thanks
|
Holy cow, Strait! I am saving that info for later use!
|
All times are GMT -4. The time now is 10:15 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.