Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1.  
  2. HiebBlutung = false
  3. MeuchelnBlutung = false
  4.  
  5. AutoStarts = {
  6. OnLoad = function (this)
  7. --insert needed events here
  8. this:RegisterEvent("LOADING_END")
  9. this:RegisterEvent("EXCHANGECLASS_SUCCESS")
  10. this:RegisterEvent("PARTY_MEMBER_CHANGED")
  11.  
  12. this:RegisterEvent("COMBATMETER_DAMAGE")
  13.  
  14. end,
  15. OnEvent = function (this, event)
  16.  
  17. -- Event "LOADING_END"
  18. local mcn, scn = UnitClass("player")
  19. if event == "LOADING_END" then
  20. MinimapFrameTopupButton:Hide()
  21. -- Blutungsabfragen
  22. local name = UnitName("player")
  23. if event == "COMBATMETER_DAMAGE" then
  24. if _source == name and _damage > 0 and _skill == "Hieb" then
  25. HiebBlutung = true
  26. ZZLibrary.Timer.Add({8, 0}, function()
  27. HiebBlutung = false
  28. end, "Hieb_Blutung_Timer")
  29. end
  30. if _source == name and _damage > 0 and _skill == "Meucheln" then
  31. MeuchelnBlutung = true
  32. ZZLibrary.Timer.Add({12, 0}, function()
  33. MeuchelnBlutung = false
  34. end, "Meucheln_Blutung_Timer")
  35. end
  36. end
  37.  
  38. end
  39.  
  40. }
  41.  
  42.  
  43. AutoStarts = {
  44. OnLoad = function (this)
  45. --insert needed events here
  46. this:RegisterEvent("LOADING_END")
  47. this:RegisterEvent("EXCHANGECLASS_SUCCESS")
  48. this:RegisterEvent("PARTY_MEMBER_CHANGED")
  49. this:RegisterEvent("SYSTEM_MESSAGE")
  50. this:RegisterEvent("COMBATMETER_DAMAGE")
  51.  
  52. end,
  53. OnEvent = function (this, event)
  54.  
  55. -- Event "LOADING_END"
  56. local mcn, scn = UnitClass("player")
  57.  
  58. if event =="SYSTEM_MESSAGE" then
  59. if arg1 == "Ihr bemerkt, dass Thallsus Euch ins Visier genommen hat. Er zielt mit einem Feuerstrahl auf Euch." then
  60. SendChatMessage("Feuer auf mich!", "SAY", 0,1)
  61. SendChatMessage("Feuer auf mich!", "PARTY", 0,1)
  62. elseif arg1 == "Ihr bemerkt, dass Thallsus Euch ins Visier genommen hat. Er zielt mit einem Eisstrahl auf Euch." then
  63. SendChatMessage("Eis auf mich!", "SAY", 0,1)
  64. SendChatMessage("Eis auf mich!", "PARTY", 0,1)
  65. end
  66. end
  67.  
  68.  
  69.  
  70. end
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement