Advertisement
Guest User

Untitled

a guest
May 26th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. function Sartharion_OnCombat(pUnit, Event)
  2. pUnit:SendChatMessage(14, 0, "Meine Aufgabe ist es \195\188ber diese Eier zuwachen. Kommt ihnen zunahe und von Euch bleibt nur ein H\195\164uflein Asche!")
  3. pUnit:PlaySoundToSet(14093)
  4. pUnit:RegisterEvent("Sartharion_80", 1000, 0)
  5. end
  6.  
  7. function Sartharion_80(pUnit, Event)
  8. if (pUnit:GetHealthPct() <= 80) then
  9. pUnit:RegisterEvent("Sartharion_60", 2000, 0)
  10. pUnit:RegisterEvent("Sartharion80", 2000, 1)
  11. pUnit:RegisterEvent("Vesperon80", 5500, 1)
  12. pUnit:RegisterEvent("RemoveEvents", 1500, 1)
  13. local x = pUnit:GetX()
  14. local y = pUnit:GetY()
  15. local z = pUnit:GetZ()
  16. local o = pUnit:GetO()
  17. pUnit:SpawnCreature(99201, x, y, z, o, 18, 0)
  18. end
  19. end
  20.  
  21. function Sartharion80(pUnit, Event)
  22. pUnit:SendChatMessage(14, 0, "Ihr werdet ein k\195\182stliches Mahl f\195\188r die Brut abgeben!")
  23. pUnit:PlaySoundToSet(14094)
  24. pUnit:RegisterEvent("Vesperon80", 2500, 1)
  25. end
  26.  
  27. function Sartharion_60(pUnit, Event)
  28. if (pUnit:GetHealthPct() <= 60) then
  29. pUnit:RegisterEvent("Sartharion_40", 2000,0)
  30. pUnit:RegisterEvent("Sartharion60", 2000, 1)
  31. pUnit:RegisterEvent("Shadron60", 2500, 1)
  32. pUnit:RegisterEvent("RemoveEvents", 1500, 1)
  33. local x1 = pUnit:GetX()
  34. local y2 = pUnit:GetY()
  35. local z3 = pUnit:GetZ()
  36. local o4 = pUnit:GetO()
  37. pUnit:SpawnCreature(99202, x1, y2, z3, o4, 18, 0)
  38. end
  39. end
  40.  
  41. function Sartharion60(pUnit, Event)
  42. pUnit:SendChatMessage(14, 0, "Brennt ihr armseeligen Wichte!")
  43. pUnit:PlaySoundToSet(14098)
  44. pUnit:RegisterEvent("Shadron60", 2500, 1)
  45. end
  46.  
  47. function Sartharion_40(pUnit, Event)
  48. if (pUnit:GetHealthPct() <= 40) then
  49. pUnit:RegisterEvent("Sartharion_20", 2000, 0)
  50. pUnit:RegisterEvent("Sartharion40", 2000, 1)
  51. pUnit:RegisterEvent("Tenebron40", 2500, 1)
  52. pUnit:RegisterEvent("RemoveEvents", 1500, 1)
  53. local x5 = pUnit:GetX()
  54. local y6 = pUnit:GetY()
  55. local z7 = pUnit:GetZ()
  56. local o8 = pUnit:GetO()
  57. pUnit:SpawnCreature(99203, x5, y6, z7, o8, 18, 0)
  58. end
  59. end
  60.  
  61. function Sartharion40(pUnit, Event)
  62. pUnit:SendChatMessage(14, 0, "Wie leicht sie brennen, diese kleinen Maden!")
  63. pUnit:PlaySoundToSet(14099)
  64. pUnit:RegisterEvent("Tenebron40", 2500, 1)
  65. end
  66.  
  67. function Sartharion_20(pUnit, Event)
  68. if (pUnit:GetHealthPct() <= 20) then
  69. pUnit:RegisterEvent("RemoveEvents", 1500, 1)
  70. pUnit:RegisterEvent("Sartharion20", 2000, 1)
  71. end
  72. end
  73.  
  74. function Sartharion20(pUnit, Event)
  75. pUnit:SendChatMessage(14, 0, "Nur mehr Eure verkohlten Knochen werden den Boden bedecken!")
  76. pUnit:PlaySoundToSet(14100)
  77. end
  78.  
  79. function Sartharion_OnLeave(pUnit, Event)
  80. local kill = math.random(1, 4)
  81. if (kill == 1) then
  82. pUnit:SendChatMessage(14, 0, "Ihr seid in einer todtraurigen Lage!")
  83. pUnit:PlaySoundToSet(14096)
  84. elseif (kill == 2) then
  85. pUnit:SendChatMessage(14, 0, "Wieviel Hitze k\195\182nnt ihr vertragen!?")
  86. pUnit:PlaySoundToSet(14101)
  87. elseif (kill == 3) then
  88. pUnit:SendChatMessage(14, 0, "Nur noch Asche wird \195\188brigbleiben!")
  89. pUnit:PlaySoundToSet(14102)
  90. elseif (kill == 4) then
  91. pUnit:SendChatMessage(14, 0, "Aus diesem Grund nennen wir Euch niedere Wesen!")
  92. pUnit:PlaySoundToSet(14097)
  93. end
  94. pUnit:RemoveEvents()
  95. end
  96.  
  97. function Sartharion_OnKill(pUnit, Event)
  98. end
  99.  
  100. function Sartharion_OnDead(pUnit, Event)
  101. pUnit:SendChatMessage(14, 0, "Dies ist der Preis.. des Versagens!")
  102. pUnit:PlaySoundToSet(14107)
  103. pUnit:RemoveEvents()
  104. end
  105.  
  106. function Sartharion_OnSpawn(pUnit, Event)
  107. end
  108.  
  109. function Vesperon80(pUnit, Event) --99201
  110. pUnit:SendChatMessage(14, 0, "Vesperon! Das Gelege ist in Gefahr. Helft mir!")
  111. pUnit:PlaySoundToSet(14104)
  112. pUnit:RemoveEvents()
  113. end
  114.  
  115. function VesperonSpawn(pUnit, Event)
  116. local x = pUnit:GetX()
  117. local y = pUnit:GetY()
  118. local z = pUnit:GetZ()
  119. local o = pUnit:GetO()
  120. pUnit:SpawnCreature(99201, x, y, z, o, 18, 0)
  121. end
  122.  
  123. function Shadron60(pUnit, Event) --99202
  124. pUnit:SendChatMessage(14, 0, "Shadron! Kommt zu mir. Der Sieg steht auf Messers Schneide!")
  125. pUnit:PlaySoundToSet(14105)
  126. pUnit:RemoveEvents()
  127. end
  128.  
  129. function ShadronSpawn(pUnit, Event)
  130. local x = pUnit:GetX()
  131. local y = pUnit:GetY()
  132. local z = pUnit:GetZ()
  133. local o = pUnit:GetO()
  134. pUnit:SpawnCreature(99202, x, y, z, o, 18, 0)
  135. end
  136.  
  137. function Tenebron40(pUnit, Event) --99203
  138. pUnit:SendChatMessage(14, 0, "Tenebron! Auch ihr sollt die Eier sch\195\188tzen!")
  139. pUnit:PlaySoundToSet(14106)
  140. pUnit:RemoveEvents()
  141. end
  142.  
  143. function TenebronSpawn(pUnit, Event)
  144. local x = pUnit:GetX()
  145. local y = pUnit:GetY()
  146. local z = pUnit:GetZ()
  147. local o = pUnit:GetO()
  148. pUnit:SpawnCreature(99203, x, y, z, o, 18, 0)
  149. end
  150.  
  151. function SartharionEnrageCounter(pUnit, Event)
  152. local enrage = 26527
  153. pUnit:CastSpell(enrage)
  154. end
  155.  
  156. function RemoveEvents(pUnit, Event)
  157. pUnit:RemoveEvents()
  158. end
  159.  
  160. RegisterUnitEvent(99200, 1, "Sartharion_OnCombat")
  161. RegisterUnitEvent(99200, 2, "Sartharion_OnLeave")
  162. RegisterUnitEvent(99200, 3, "Sartharion_OnKill")
  163. RegisterUnitEvent(99200, 4, "Sartharion_OnDead")
  164. RegisterUnitEvent(99200, 18, "Sartharion_OnSpawn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement