Guest User

Sloff Master Summoner

a guest
Apr 11th, 2010
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.23 KB | None | 0 0
  1. function SloffMasterSummoner_OnCombat(Unit, Event)
  2. Unit:SendChatMessage(14, 0, "Face now your tragic end!")
  3. Unit:PlaySoundToSet(17365)
  4. Unit:RegisterEvent("SloffMasterSummoner_Shadow Lance", 7000, 100)
  5. Unit:RegisterEvent("SloffMasterSummoner_Twilight Bloodbolt", 60000, 100)
  6. Unit:RegisterEvent("SloffMasterSummoner_Harvest Soul", 90000, 100)
  7. Unit:RegisterEvent("SloffMasterSummoner_Summon", 10000, 100)
  8. end
  9.  
  10. function SloffMasterSummoner_Shadow Lance(pUnit, Event)
  11. pUnit:FullCastSpellOnTarget(71405, pUnit:GetMainTank())
  12. Unit:SendChatMessage(14, 0, "I delight in the irony.")
  13. Unit:PlaySoundToSet(17357)
  14. print "Sloff Starts to cast Shadow Lance"
  15. end
  16.  
  17. function SloffMasterSummoner_Twilight Bloodbolt(pUnit, Event)
  18. pUnit:FullCastSpellOnTarget(71446, pUnit:GetClosestPlayer())
  19. Unit:SendChatMessage(14, 0, "I delight in the irony.")
  20. Unit:PlaySoundToSet(17357)
  21. print "Sloff Starts to cast Twilight Bloodbolt"
  22. end
  23.  
  24. function SloffMasterSummoner_Harvest Soul(pUnit, Event)
  25. pUnit:FullCastSpellOnTarget(68980, pUnit:GetRandomPlayer(0))
  26. Unit:SendChatMessage(14, 0, "Your Soul Will be Mine!")
  27. Unit:PlaySoundToSet(17365)
  28. print "Sloff Starts to cast Harvest Soul"
  29. end
  30.  
  31. function SloffMasterSummoner_Summon(pUnit, Event)
  32. pUnit:FullCastSpellOnTarget(20464, pUnit:GetRandomPlayer(0))
  33. Unit:SendChatMessage(14, 0, "Val'kyr, your master calls!")
  34. Unit:PlaySoundToSet(17373)
  35. print "Sloff Starts to Summon a Val'Kyr to Aid him in Battle"
  36. end
  37.  
  38. function SloffMasterSummoner_OnLeaveCombat(Unit, Event)
  39. Unit:RemoveEvents()
  40. Unit:SendChatMessage(14, 0, "I delight in the irony.")
  41. Unit:PlaySoundToSet(17357)
  42. Unit:SetModel (17053)
  43. Unit:ReloadLuaEngine()
  44. end
  45.  
  46. function SloffMasterSummoner_OnDied(Unit, Event)
  47. Unit:RemoveEvents()
  48. Unit:SendChatMessage(14, 0, "Now I stand, the lion before the lambs... and they do not fear.")
  49. Unit:PlaySoundToSet(17361)
  50. end
  51.  
  52. function SloffMasterSummoner_OnKilledTarget(Unit, Event)
  53. Unit:SendChatMessage(14, 0, "I delight in the irony.")
  54. Unit:PlaySoundToSet(17357)
  55. end
  56.  
  57. RegisterUnitEvent(99880, 1, "SloffMasterSummoner_OnCombat")
  58. RegisterUnitEvent(99880, 2, "SloffMasterSummoner_OnLeaveCombat")
  59. RegisterUnitEvent(99880, 3, "SloffMasterSummoner_OnKilledTarget")
  60. RegisterUnitEvent(99880, 4, "SloffMasterSummoner_OnDied")
Advertisement
Add Comment
Please, Sign In to add comment