Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 600003
- function Masterofarena_OnSpawn(unit, event)
- are = unit
- end
- RegisterUnitEvent(600000, 18, "Masterofarena_OnSpawn")
- function Illidan_OnSpawn(unit, event)
- ill = unit
- end
- RegisterUnitEvent(600003, 18, "Illidan_OnSpawn")
- function Illidan_OnCombat(unit, event)
- are:SendChatMessage(14, 0, "You waits for the traitors from Outland and is ready to fight!")
- are:Emote(1, 50)
- ill:SendChatMessage(14, 0, "You don't know what you can expect")
- ill:RegisterEvent("Pulsing_Shockwave", 4000, 0)
- ill:RegisterEvent("Vile_Beam", 7000, 0)
- ill:RegisterEvent("Wicked_Beam", 15000, 0)
- end
- function Pulsing_Shockwave(unit, event)
- ill:CastSpellOnTarget(59837, unit:GetMainTank())
- end
- function Vile_Beam(unit, event)
- ill:CastSpellOnTarget(40860, unit:GetMainTank())
- end
- function Wicked_Beam(unit, event)
- ill:CastSpellOnTarget(40861, unit:GetMainTank())
- end
- function Illidan_OnLeaveCombat(unit, event)
- are:SetNPCFlags(15)
- ill:RemoveEvents()
- ill:Despawn(10, 0)
- end
- function Illidan_OnKilledPlayer(unit, event, player)
- ill:SendChatMessage(14, 0, "You have lost "..player:GetName().."!")
- are:SetNPCFlags(15)
- are:Emote(1, 50)
- are:SendChatMessage(14, 0, "You have lost, "..player:GetName().."! Please try later again!")
- player:CastSpell(34776)
- player:Teleport(1, 2214.309326, -4775.207031, 73.038269, 4.438317)
- end
- function Illidan_OnDied(unit, event, player)
- are:SetNPCFlags(15)
- are:SendChatMessage(14, 0, "Congratulations you defeat Illidan "..player:GetName().."!")
- are:Emote(1, 50)
- ill:SendChatMessage(14, 0, "I gave up "..player:GetName().."!")
- ill:Despawn(10, 0)
- player:AddItem(49623, 1)
- player:Teleport(1, 2209.373291, -4780.540039, 65.416451, 2.655464)
- player:CastSpell(34776)
- end
- RegisterUnitEvent(600003, 1, "Illidan_OnCombat")
- RegisterUnitEvent(600003, 2, "Illidan_OnLeaveCombat")
- RegisterUnitEvent(600003, 3, "Illidan_OnKilledPlayer")
- RegisterUnitEvent(600003, 4, "Illidan_OnDied")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement