Time to disect your fight...
Code:
function Arthas_Death_1(unit, event, miscunit, misc)
print (Arthas Death 1)
pUnit:EmoteState(1)
pUnit:SendChatMessage(11, 0, "Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
end
function Arthas_Death_2(unit, event, miscunit, misc)
print (Arthas Death 2)
pUnit:SendChatMessage(11, 0, "You...mortals... You are not prepared to face the wrath... of Allidari...!")
end
function Arthas_Death_3(unit, event, miscunit, misc)
print ("Arthas Death 3)
pUnit:EmoteState(0)
end
function Arthas_Death(unit, event, miscunit, misc)
print ("Arthas Death")
Unit:RegisterEvent("Arthas_Death_1", 1, 1)
Unit:RegisterEvent("Arthas_Death_2", 100, 1)
Unit:RegisterEvent("Arthas_Death_3", 150, 1)
end
Unit:RegisterEvent(232323, 4, "Arthas_Death")
1) Nothing will work in the first three functions, as you've declared the npc as a "unit" and you are trying to run functions as "pUnit:..."
2) You've forgot the quotes in your "print" functions.
3) In your Arthas_Death function, Each sequence will rapidly repeat itself until the npc is gone. Since you have no restrictions, Arthas_death_1 will repeat itself every .001 second. The Arthas_death_2 will repeat itself every .1 second. And the Arthas_Death_3 function will repeat itself every .15 seconds.
In the end, your chatlog will fill up in less than a second with:
Code:
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
You...mortals... You are not prepared to face the wrath... of Allidari...!")
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
You...mortals... You are not prepared to face the wrath... of Allidari...!")
Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
You...mortals... You are not prepared to face the wrath... of Allidari...!")