I am trying to get this to happen. The player talks to one person and then that person will disappear and spawn another NPC. I am trying to make that monster attack the player right when it spawns, but it isn't working. I tried Sub EVENT_SPAWN{
quest::attack($name);
}
and also tried setting up a proximity for the mob when it spawns and have it attack anyone who enters that proximity. Neither of these worked.
A round about way of doing it would be to have the mob set a temp global with the persons name who spoke to them as the value. Make sure you put this command BEFORE the depop command or it may result in errors.
and then when the mob spawns
Code:
sub EVENT_SPAWN
{
quest::attack($qglobals{TempGlobal});
quest::delglobal("TempGlobal");
}
Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.