Wandering mobs do not stop to fight
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Wandering mobs do not stop to fight
So I walked up to one of my invaders who is set to wander off shortly... attacked him, and beat him down a ways - then suddenly, he wanders off!! exactly as I instructed - however, I was fighting him at the time, so maybe they should ignore their moveto commands while in combat?
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Is there any reason why a respawned mob will not continue it's previous course of action automatically? Meaning, if a wandering gobbie gets killed, respawns 60 seconds later, why would it not just assume it needs to wander again?
We can write our scripts with the respawn function, I am just curious.
We can write our scripts with the respawn function, I am just curious.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Well when a spawn is removed from the zone all information associated with the spawn is removed as well so that when the new spawn respawns it is a fresh version of the spawn. The new spawn will have no knowledge of any previous spawn commands you gave to the last spawn which is why you need to include the commands in the respawn method as spawn is only called for the first spawned instance of the spawn.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Ok, part 2 of this is resolved by doing what you said, and using the function respawn(NPC):
However, I still have part 1 that is a problem. 
Code: Select all
function respawn(NPC)
spawn(NPC)
end -
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Who is online
Users browsing this forum: No registered users and 0 guests