Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Created By SnowCrown at Http://logon.Fulosewow.com/ ]--
- local NPC_ID = Npc id here!
- local GUARD_ID = GUARD ID here!
- local GO_ID = ObjectID
- local ITEM_DROP_ID1 = Itemid1
- local ITEM_DROP_ID2 = Itemid2
- local ITEM_DROP_ID3 = Itemid3
- function Stormbringer_OnCombat(Unit, Event)
- Unit:SendChatMessage(14, 0, "Death Is Somthing that happens all sooner or later")
- Unit:RegisterEvent("Stormbringer_Scourge", 1000, 1)
- Unit:RegisterEvent("Stormbringer_Flameblast", 10000, 2)
- Unit:RegisterEvent("Stormbringer_Shadowblast", 10000, 3)
- Unit:RegisterEvent("Stormbringer_Phase2", 1000, 0)
- end
- function Stormbringer_Shadowblast(Unit, Event)
- Unit:FullCastSpellOnTarget(41078, Unit:GetMainTank())
- end
- function Stormbringer_Flameblast(Unit, Event)
- Unit:FullCastSpellOnTarget(64733, Unit:GetRandomPlayer(0))
- end
- function Stormbringer_Scourge(Unit, Event)
- Unit:FullCastSpellOnTarget(71140, Unit:GetMainTank())
- end
- function Stormbringer_Phase2(Unit, Event)
- if Unit:GetHealthPct() <= 60 then
- Unit:RemoveEvents()
- Unit:SendChatMessage(14, 0, "Here Come's The BOOM!")
- Unit:RegisterEvent("Stormbringer_Flameblast", 6000, 3)
- Unit:RegisterEvent("Stormbringer_Shadowblast", 5000, 3)
- x = Unit:GetX()
- y = Unit:GetY()
- z = Unit:GetZ()
- o = Unit:GetO()
- Unit:SpawnCreature(GUARD_ID, x + 3, y + 3, z , o, 14, 450000)
- Unit:SpawnCreature(GUARD_ID, x - 3, y + 3, z , o, 14, 450000)
- end
- end
- function Stormbringer_OnLeaveCombat(Unit, Event)
- Unit:SendChatMessage(14, 0, "Am i To op?")
- Unit:RemoveEvents()
- end
- function Stormbringer_OnKilledTarget(Unit, Event)
- Unit:SendChatMessage(14, 0, "Ohhh Poor Baby...")
- end
- function Stormbringer_OnDied(Unit, Event)
- Unit:SendChatMessage(14, 0, "NO! This Cant be... TURE!")
- Unit:SpawnGameObject(GO_ID, x + 3, y + 3, z, o, 60000)
- Unit:RemoveEvents()
- end
- function Gameobject_OnUse(Unit, Event, player)
- player:AddItem(ITEM_DROP_ID1, 1)
- player:AddItem(ITEM_DROP_ID2, 1)
- player:AddItem(ITEM_DROP_ID3, 1)
- end
- RegisterGameObjectEvent(GO_ID, 4, "Gameobject_OnUse")
- RegisterUnitEvent(NPC_ID, 1, "Stormbringer_OnCombat")
- RegisterUnitEvent(NPC_ID, 2, "Stormbringer_OnLeaveCombat")
- RegisterUnitEvent(NPC_ID, 3, "Stormbringer_OnKilledTarget")
- RegisterUnitEvent(NPC_ID, 4, "Stormbringer_OnDied")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement