I am not in a situation at the moment to test this, but give this a shot.
Code:
#Script for Mob
sub EVENT_SPAWN
{
quest::shout("Defilers of the Temple beware - You shall not be tolerated!");
quest::setnexthpevent(76);
}
sub EVENT_HP
{
if ($hpevent == 11)
{
quest::depop;
}
elsif ($hpevent == 26)
{
quest::setnexthpevent(11);
quest::emote("Xarendyr's eyes take on a deathly allure!");
quest::settimer(1,10);
}
elsif ($hpevent == 76)
{
quest::setnexthpevent(26);
quest::shout("Intolerable!");
quest::castspell($userid,2821); #Harm Touch
}
}
sub EVENT_TIMER
{
if ($timer == 1)
{
quest::shout("Heretic! Feel the Embrace of Fear!");
quest::castspell($userid,7477); #Death Touch
quest::stoptimer (1);
}
}
sub EVENT_ATTACK
{
quest::shout("Fool! You dare challenge the might of Cazic Thule?");
}