Guest User

Untitled

a guest
May 20th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.05 KB | None | 0 0
  1. --[[
  2. This is made by zdroid9770
  3. (c)Copyright 2012
  4. ]]
  5. function QuestGiver(Unit)
  6. QuestGiver = Unit
  7. end
  8.  
  9. function QuestGiverSpawn(Unit)
  10. Unit:RegisterEvent("QuestGiver",1000,1)
  11. end
  12.  
  13. RegisterUnitEvent(18471, 6, "QuestGiverSpawn")
  14.  
  15. --The Ring of Blood: Brokentoe
  16. function BrokentoeQuest(Unit, Event)
  17. QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1)
  18. QuestGiver:RegisterEvent("BrokentoeSpawn",5000,1)
  19. end
  20.  
  21. function BrokentoeSpawn(Unit)
  22. Unit:SpawnCreature(18398, -704.385620, 7875.663086, 45.374313, 2.016115, 168, 600000)
  23. end
  24.  
  25. function BrokentoeDespawn(Unit)
  26. Unit:Despawn(10000,0)
  27. end
  28.  
  29. RegisterQuestEvent(9962,2,"BrokentoeQuest")
  30. RegisterUnitEvent(18398,2,"BrokentoeDespawn")
  31.  
  32. -- The Ring of Blood: The Blue Brothers
  33. function TheBlueBrothersQuest (Unit, Event)
  34. QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1)
  35. QuestGiver:RegisterEvent("TheBlueBrothersQuestYell",5000,1)
  36. QuestGiver:RegisterEvent("TheBlueBrothersSpawn",6000,1)
  37. end
  38.  
  39. function TheBlueBrothersSpawn(Unit)
  40. Unit:SpawnCreature(18399, -700.240051, 7874.219727, 45.884964, 2.046947, 168, 600000)
  41. Unit:SpawnCreature(18399, -704.122192, 7872.217773, 45.169842, 2.046947, 168, 600000)
  42. end
  43.  
  44. function TheBlueBrothersQuestYell(Unit)
  45. QuestGiver:SendChatMessage(12,0,"The battle is about to begin! The unmerciful Murkblood twins versus $N!")
  46. end
  47.  
  48. function TheBlueBrothersDespawn(Unit)
  49. Unit:Despawn(10000,0)
  50. end
  51.  
  52. RegisterQuestEvent(9967,2,"TheBlueBrothersQuest")
  53. RegisterUnitEvent(18399,2,"TheBlueBrothersDespawn")
  54.  
  55. --The Ring of Blood: Rokdar the Sundered Lord
  56. function RokdarTheSunderedLordQuest (Unit, Event)
  57. QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1)
  58. QuestGiver:RegisterEvent("RokdarTheSunderedLordYell",5000,1)
  59. QuestGiver:RegisterEvent("RokdarTheSunderedLordSpawn",6000,1)
  60. end
  61.  
  62. function RokdarTheSunderedLordSpawn(Unit)
  63. Unit:SpawnCreature(18400, -707.007507, 7867.739746, 44.906353, 1.893796, 168, 600000)
  64. end
  65.  
  66. function RokdarTheSunderedLordYell(Unit)
  67. QuestGiver:SendChatMessage(12,0,"Hailing from the mountains of Blade's Edge comes Rokdar the Sundered Lord! $N is in for the fight of his life.")
  68. end
  69.  
  70. function RokdarTheSunderedLordDespawn(Unit)
  71. Unit:Despawn(10000,0)
  72. end
  73.  
  74. RegisterQuestEvent(9970,2,"RokdarTheSunderedLordQuest")
  75. RegisterUnitEvent(18400,2,"RokdarTheSunderedLordDespawn")
  76.  
  77. --The Ring of Blood: Skra'gath
  78. function SkragathQuest (Unit, Event)
  79. QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1)
  80. QuestGiver:RegisterEvent("SkragathYell",5000,1)
  81. QuestGiver:RegisterEvent("SkragathSpawn",6000,1)
  82. end
  83.  
  84. function SkragathSpawn(Unit)
  85. Unit:SpawnCreature(18401, -704.290588, 7869.463867, 45.064030, 1.909504, 168, 600000)
  86. end
  87.  
  88. function SkragathYell(Unit)
  89. QuestGiver:SendChatMessage(12,0,"From the parts unknown: Ska'gath! Can $N possibly survive the onslaught of void energies?")
  90. end
  91.  
  92. function SkragathDespawn(Unit)
  93. Unit:Despawn(10000,0)
  94. end
  95.  
  96. RegisterQuestEvent(9972,2,"SkragathQuest")
  97. RegisterUnitEvent(18401,2,"SkragathDespawn")
  98.  
  99. --The Ring of Blood: The Warmaul Champion
  100. function TheWarmaulChampionQuest (Unit, Event)
  101. QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1)
  102. QuestGiver:RegisterEvent("TheWarmaulChampionYell",5000,1)
  103. QuestGiver:RegisterEvent("TheWarmaulChampionSpawn",6000,1)
  104. end
  105.  
  106. function TheWarmaulChampionSpawn (Unit)
  107. Unit:SpawnCreature(18402, -704.290588, 7869.463867, 45.064030, 1.909504, 168, 600000)
  108. end
  109.  
  110. function TheWarmaulChampionYell (Unit)
  111. QuestGiver:SendChatMessage(12,0,"They had to ship the champion in from the Blade's Edge gladiator pits. He was training on mountain giants - three at a time.")
  112. end
  113.  
  114. function TheWarmaulChampionDespawn (Unit)
  115. Unit:Despawn(10000,0)
  116. end
  117.  
  118. RegisterQuestEvent(9973,2,"TheWarmaulChampionQuest")
  119. RegisterUnitEvent(18402,2,"TheWarmaulChampionDespawn")
  120. -- The Ring of Blood: The Final Challenge
  121. --[[
  122. function MogorPath (Unit, Event)
  123. if(mogorspawn == 1) then
  124. Unit:CreateCustomWaypointMap()
  125. Unit:CreateWaypoint(-718.336426, 7921.608887, 58.957344, 0, 0, 0, 0)
  126. Unit:CreateWaypoint(-733.090881, 7922.159180, 57.960159, 0, 0, 0, 0)
  127. Unit:CreateWaypoint(-725.227600, 7908.185547, 51.504486, 0, 0, 0, 0)
  128. Unit:CreateWaypoint(-707.492310, 7872.812012, 44.891983, 0, 0, 0, 0)
  129. Unit:MoveToWaypoint(0)
  130. Unit:RegisterEvent("MogorPath2",1000,1)
  131. end
  132. end
  133.  
  134. function MogorPath2(Unit, unk1, unk2, wp_id)
  135. if(wp_id == 3) then
  136. Unit:SetFaction(168)
  137. end
  138.  
  139. if(wp_id == 4) then
  140. Unit:RemoveEvents()
  141. Unit:DestroyCustomWaypointMap()
  142. end
  143. end
  144.  
  145. RegisterUnitEvent(18069, 8, "MogorPath2")
  146.  
  147. function TheFinalChallengeQuest(Unit, event)
  148. Mogor:RegisterEvent("MogorPath",1000,1)
  149. QuestGiver:RegisterEvent("TheFinalChallengeYell",500,1)
  150. QuestGiver:RegisterEvent("TheFinalChallengeYell2",5000,1)
  151. end
  152.  
  153. function TheFinalChallengeYell(Unit)
  154. Unit:SendChatMessage(12,0,"Mogor has challenged you. You have to accept! Get in the right of blood if you are ready to fight.")
  155. end
  156.  
  157. function TheFinalChallengeYell2(Unit)
  158. Unit:SendChatMessage(12,0,"For the first time in the Ring of Bloods history. Mogor has chosen to exercise his right of the battle! On this wartorn ground, Mariaen will face Mogor, hero of the Warmaul!")
  159. end
  160.  
  161. RegisterQuestEvent(9977,1,"TheFinalChallengeQuestComplete")
  162. RegisterQuestEvent(9977, 2, "TheFinalChallengeQuest")
  163.  
  164. function Mogor(Unit)
  165. mogorspawn = 0
  166. Mogor = Unit
  167. end
  168.  
  169. function MogorOnDied(Unit)
  170. mogorspawn = 1
  171. Mogor:RemoveEvents()
  172. end
  173.  
  174. function MogorOnLeaveCombat(Unit)
  175. mogorspawn = 2
  176. Mogor:RemoveEvents()
  177. Mogor:Despawn(10000,0)
  178. end
  179.  
  180. RegisterUnitEvent(18069, 6, "Mogor")
  181. RegisterUnitEvent(18069, 4, "MogorOnDied")
Add Comment
Please, Sign In to add comment