Advertisement
Guest User

Fulose Lua team

a guest
Feb 28th, 2010
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.25 KB | None | 0 0
  1. --[ Created By SnowCrown at Http://logon.Fulosewow.com/ ]--
  2.  
  3. local NPC_ID = Npc id here!
  4. local GUARD_ID = GUARD ID here!
  5. local GO_ID = ObjectID
  6. local ITEM_DROP_ID1 = Itemid1
  7. local ITEM_DROP_ID2 = Itemid2
  8. local ITEM_DROP_ID3 = Itemid3
  9.  
  10.  
  11. function Stormbringer_OnCombat(Unit, Event)
  12. Unit:SendChatMessage(14, 0, "Death Is Somthing that happens all sooner or later")
  13. Unit:RegisterEvent("Stormbringer_Scourge", 1000, 1)
  14. Unit:RegisterEvent("Stormbringer_Flameblast", 10000, 2)
  15. Unit:RegisterEvent("Stormbringer_Shadowblast", 10000, 3)
  16. Unit:RegisterEvent("Stormbringer_Phase2", 1000, 0)
  17. end
  18.  
  19. function Stormbringer_Shadowblast(Unit, Event)
  20. Unit:FullCastSpellOnTarget(41078, Unit:GetMainTank())
  21. end
  22.  
  23. function Stormbringer_Flameblast(Unit, Event)
  24. Unit:FullCastSpellOnTarget(64733, Unit:GetRandomPlayer(0))
  25. end
  26.  
  27. function Stormbringer_Scourge(Unit, Event)
  28. Unit:FullCastSpellOnTarget(71140, Unit:GetMainTank())
  29. end
  30.  
  31. function Stormbringer_Phase2(Unit, Event)
  32. if Unit:GetHealthPct() <= 60 then
  33. Unit:RemoveEvents()
  34. Unit:SendChatMessage(14, 0, "Here Come's The BOOM!")
  35. Unit:RegisterEvent("Stormbringer_Flameblast", 6000, 3)
  36. Unit:RegisterEvent("Stormbringer_Shadowblast", 5000, 3)
  37.         x = Unit:GetX()
  38.         y = Unit:GetY()
  39.         z = Unit:GetZ()
  40.         o = Unit:GetO()
  41.         Unit:SpawnCreature(GUARD_ID, x + 3, y + 3, z , o, 14, 450000)
  42.         Unit:SpawnCreature(GUARD_ID, x - 3, y + 3, z , o, 14, 450000)
  43. end
  44. end
  45.  
  46. function Stormbringer_OnLeaveCombat(Unit, Event)
  47. Unit:SendChatMessage(14, 0, "Am i To op?")
  48. Unit:RemoveEvents()
  49. end
  50.  
  51. function Stormbringer_OnKilledTarget(Unit, Event)
  52. Unit:SendChatMessage(14, 0, "Ohhh Poor Baby...")
  53. end
  54.  
  55. function Stormbringer_OnDied(Unit, Event)
  56. Unit:SendChatMessage(14, 0, "NO! This Cant be... TURE!")
  57. Unit:SpawnGameObject(GO_ID, x + 3, y + 3, z, o, 60000)
  58. Unit:RemoveEvents()
  59. end
  60.  
  61. function Gameobject_OnUse(Unit, Event, player)
  62.     player:AddItem(ITEM_DROP_ID1, 1)
  63.     player:AddItem(ITEM_DROP_ID2, 1)
  64.     player:AddItem(ITEM_DROP_ID3, 1)
  65. end
  66.  
  67. RegisterGameObjectEvent(GO_ID, 4, "Gameobject_OnUse")
  68. RegisterUnitEvent(NPC_ID, 1, "Stormbringer_OnCombat")
  69. RegisterUnitEvent(NPC_ID, 2, "Stormbringer_OnLeaveCombat")
  70. RegisterUnitEvent(NPC_ID, 3, "Stormbringer_OnKilledTarget")
  71. RegisterUnitEvent(NPC_ID, 4, "Stormbringer_OnDied")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement