Advertisement
Guest User

Corrupted Terenas Menethil - Script

a guest
Jun 19th, 2011
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.39 KB | None | 0 0
  1. --- This script was made by Darkraid :D with help from Stoneharry so I could make the boss suicide.
  2.  
  3.  
  4.  
  5. local NPCID = 100004   ----  This is the ID of the boss.
  6.  
  7. function Terenas_OnCombat(pUnit, event, player)   ---- The start of the fight.
  8.  pUnit:SendChatMessage(14, 0, "Welcome to your DOOM, champions! I have escaped Frostmourne's grasp. It won't be long before it pulls me back, but I do like company...")
  9.  pUnit:RegisterEvent("Terenas_Phase1", 1000, 0)
  10. end
  11.  
  12. function Terenas_OnLeaveCombat(pUnit, event, player)   ---- Hope this part will not happen in-game, thought the boss is powerful.
  13.  pUnit:RemoveEvents()
  14.  pUnit:SendChatMessage(14, 0, "You have failed me, champions! Let's find ourselves in Frostmourne's world.")
  15. end
  16.  
  17. function Terenas_OnDeath(pUnit, event, player)   ---- I'm relieved that you defeated him :D .
  18.  pUnit:RemoveEvents()
  19.  pUnit:SendChatMessage(14, 0, "I-I'm sorry, champions... for... my co-corrupted form.")
  20. end
  21.  
  22. function Terenas_Phase1(pUnit, event, player)    ---- Phase 1 of the encounter. He gets a little buff ;;) .
  23.  if pUnit:GetHealthPct() == 85 then
  24.  pUnit:SendChatMessage(14,0, "You, champions, truly are powerful so you could defeated The Lich King.")
  25.  pUnit:RemoveEvents()
  26.  pUnit:CastSpell(31305)
  27.  pUnit:RegisterEvent("Terenas_Phase2", 1000, 0)
  28. end
  29. end
  30.  
  31. function Terenas_Phase2(pUnit, event, player)     ---- The boss is going crazy.
  32.  if pUnit:GetHealthPct() == 50 then
  33.  pUnit:SendChatMessage(14, 0, "I'm l-losing contr-- NO! I can still FIGHT!")
  34.  pUnit:RemoveEvents()
  35.  pUnit:SetScale(2)
  36.  pUnit:CastSpell(31305)
  37.  pUnit:CastSpell(41107)
  38.  pUnit:CastSpell(71843)
  39.  pUnit:RegisterEvent("Terenas_Phase3", 1000, 0)
  40. end
  41. end
  42.  
  43. function Terenas_Phase3(pUnit, event, player)    ---- Phase 3, Phase of Suicide. He's an EMO!!!
  44.  if pUnit:GetHealthPct() == 5 then
  45.  pUnit:SendChatMessage(14, 0, "Finally, I have my full powers ready. But I lose control to this body so...")
  46.  pUnit:RemoveEvents()
  47.  pUnit:SetScale(1)
  48.  pUnit:SetCombatCapable(1)
  49.  pUnit:CastSpell(70063)    ---- It will be a surprise for all.
  50.  pUnit:CastSpell(69037)
  51.  pUnit:RegisterEvent("Ikillmyself", 1000, 1)    ---- OMFG EMO NPC xD =))   Thanks Stoneharry :D
  52. end
  53. end
  54.  
  55. function Ikillmyself(pUnit, Event)
  56.  pUnit:SetHealth(1)
  57.  pUnit:CastSpell(11)
  58. end
  59.  
  60. RegisterUnitEvent(100004, 1, "Terenas_OnCombat")
  61. RegisterUnitEvent(100004, 2, "Terenas_OnLeaveCombat")
  62. RegisterUnitEvent(100004, 4, "Terenas_OnDeath")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement