Wandering NPC
Does anyone have a quest script that could act as the basis for an idea I have? I would like a certain key npc, who has a valuable item, to “wander” randomly from zone to zone such that players who are in need of this item could not predict where he will be next and much actively search for him. I assume this would entail a global quest that depops the npc from one zone (based on a timer) and simultaneously spawns him in another. I can envision many directions I could take in this, but I'm not confident they are the most efficient.
|
I seem to recall there is a mob who spawns in one of three or four zones, but never in two zones at once. Maybe I can use the code for this as a template for what I am trying to do. Does anyone know who this mob is? Thanks.
|
I think you're talking about the Sleeper event. I know when he was awakened he would travel to other zones.
|
Okay, I think I have this working, but with one outstanding issue. Here's the code for the wanderer, placed in two different zones:
Code:
sub EVENT_SPAWN Code:
sub EVENT_WAYPOINT Code:
sub EVENT_WAYPOINT His spawn limit is set to 1, so that's not the problem. I tried changing his spawn2 entry to 0% chance, but now he doesn;t spawn at all. I think the problem may be that Zone A is his original spawn zone (the loc where I find him is his original spawn point, not next to the Watcher like he should be); so I'm thinking if I remove him from Zone A it might work. But I wanted to get feedback on this first. Any better suggestions out there? What is the best command to remove him from the zone without removing him from the DB? Is it npcspawn remove? |
All times are GMT -4. The time now is 06:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.