Advertisement
WIXXZI

Untitled

Feb 24th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. local NPC_ID = 65048
  2.  
  3. local function ShowMenu(plr, unit, sender, intid, code)
  4. if (intid == 0) then
  5. plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_guardianspirit:30:30:-25|tWings of the Archangel", 0, 1)
  6. plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_divinespirit:30:30:-25|tWings of the Divinity", 0, 2)
  7. plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_demonicempowerment:30:30:-25|tWings of the Devil", 0, 3)
  8. plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_improveddemonictactics:30:30:-25|tWings of the Demon", 0, 4)
  9. plr:GossipSendMenu(80000, unit)
  10. end
  11. end
  12.  
  13. local function On_Gossip(event, plr, unit)
  14. if (plr:IsInCombat()) then
  15. plr:SendAreaTriggerMessage("You're in combat!")
  16. plr:GossipComplete()
  17. return
  18. end
  19. ShowMenu(plr, unit, 0, 0)
  20. end
  21.  
  22. function On_Select(event, plr, unit, sender, intid, code)
  23. ShowMenu(plr, unit, sender, intid)
  24. local NameLink = plr:GetName()
  25. if (intid == 1) then -- Archangel
  26. plr:GossipClearMenu()
  27. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 10)
  28. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 14)
  29. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
  30. plr:GossipSendMenu(1, unit)
  31. end
  32.  
  33. if (intid == 2) then -- Divinity
  34. plr:GossipClearMenu()
  35. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 11)
  36. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 15)
  37. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
  38. plr:GossipSendMenu(1, unit)
  39. end
  40.  
  41. if (intid == 3) then -- Devil
  42. plr:GossipClearMenu()
  43. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 12)
  44. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 16)
  45. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
  46. plr:GossipSendMenu(1, unit)
  47. end
  48.  
  49. if (intid == 4) then -- Demon
  50. plr:GossipClearMenu()
  51. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_quests_completed_03:30:30:-25|tI'd like to begin the |cFFD9CD1BQuest|r!", 0, 13)
  52. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_blizzcon09_graphicscard:30:30:-25|tShow me a preview", 0, 17)
  53. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:30:30:-25|tBack..", 0, 0)
  54. plr:GossipSendMenu(1, unit)
  55. end
  56.  
  57. ------------------------- Here the actions begin! Begin Quest --------------------
  58. local Quest0 = GetQuest(80000)
  59. local Quest1 = GetQuest(80001)
  60. local Quest2 = GetQuest(80002)
  61. local Quest3 = GetQuest(80003)
  62.  
  63. if (intid == 10) then
  64. plr:AddQuest(80000)
  65. plr:GossipComplete()
  66. plr:SendBroadcastMessage("[|cFFFF0000Challenge Mode System|r]: You have started the quest "..GetQuest(Quest0).." you have 1 hour to complete it. Good luck.")
  67. end
  68.  
  69. if (intid == 11) then
  70. plr:AddQuest(80001)
  71. plr:GossipComplete()
  72. end
  73.  
  74. if (intid == 12) then
  75. plr:AddQuest(80002)
  76. plr:GossipComplete()
  77. end
  78.  
  79. if (intid == 13) then
  80. plr:AddQuest(80003)
  81. plr:SendBroadcastMessage("[|cFFFF0000Challenge Mode System|r]: You have started the quest "..Quest3.." you have 1 hour to complete it. Good luck.")
  82. plr:GossipComplete()
  83. end
  84. --------------------------- Preview Menu -------------------------
  85. if (intid == 14) then
  86. plr:GossipClearMenu()
  87. plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_guardianspirit:25:25:-25|tShow me the Archangel wings on creature.", 0, 30)
  88. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Archangel wings on "..NameLink..".", 0, 20)
  89. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
  90. plr:GossipSendMenu(65015, unit)
  91. end
  92.  
  93. if (intid == 15) then
  94. plr:GossipClearMenu()
  95. plr:GossipMenuAddItem(5, "|TInterface/ICONS/spell_holy_divinespirit:25:25:-25|tShow me the Divinity Wings on creature.", 0, 31)
  96. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Divinity on "..NameLink..".", 0, 21)
  97. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
  98. plr:GossipSendMenu(1, unit)
  99. end
  100.  
  101. if (intid == 16) then
  102. plr:GossipClearMenu()
  103. plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_demonicempowerment:25:25:-25|tShow me the Devil Wings on creature.", 0, 32)
  104. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Devil on "..NameLink..".", 0, 22)
  105. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
  106. plr:GossipSendMenu(1, unit)
  107. end
  108.  
  109. if (intid == 17) then
  110. plr:GossipClearMenu()
  111. plr:GossipMenuAddItem(5, "|TInterface/ICONS/ability_warlock_improveddemonictactics:25:25:-25|tShow me the Demon Wings on creature.", 0, 33)
  112. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_character_human_male:25:25:-25|tShow me the Wings of Demon on "..NameLink..".", 0, 23)
  113. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-20|tBack..", 0, 0)
  114. plr:GossipSendMenu(1, unit)
  115. end
  116. -------------------------------Ends here -------------
  117.  
  118. if (intid == 20) then
  119. local aura = unit:AddAura(150000, plr)
  120. if aura then
  121. aura:SetDuration(15000)
  122. plr:GossipComplete()
  123. unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Archangel for 15 seconds.", plr)
  124. end
  125. end
  126.  
  127. if (intid == 21) then
  128. local aura = unit:AddAura(150002, plr)
  129. if aura then
  130. aura:SetDuration(15000)
  131. plr:GossipComplete()
  132. unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Divinity for 15 seconds.", plr)
  133. end
  134. end
  135.  
  136. if (intid == 22) then
  137. local aura = unit:AddAura(150001, plr)
  138. if aura then
  139. aura:SetDuration(15000)
  140. plr:GossipComplete()
  141. unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Devil for 15 seconds.", plr)
  142. end
  143. end
  144.  
  145. if (intid == 23) then
  146. local aura = unit:AddAura(150003, plr)
  147. if aura then
  148. aura:SetDuration(15000)
  149. plr:GossipComplete()
  150. unit:SendChatMessageToPlayer(8, 0, "Here..i let you try Wings of the Demon for 15 seconds.", plr)
  151. end
  152. end
  153.  
  154. ------------------------- Ends Here --------------
  155.  
  156. if (intid == 30) then -- Archangel
  157. if ALREADY_SPAWNED then
  158. unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
  159. plr:GossipComplete()
  160. return
  161. else
  162. CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
  163. ALREADY_SPAWNED = true
  164. end
  165. PerformIngameSpawn(1, 65038, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
  166. plr:GossipComplete()
  167. end
  168.  
  169. if (intid == 31) then -- Divinity
  170. if ALREADY_SPAWNED then
  171. unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
  172. plr:GossipComplete()
  173. return
  174. else
  175. CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
  176. ALREADY_SPAWNED = true
  177. end
  178. PerformIngameSpawn(1, 65039, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
  179. plr:GossipComplete()
  180. end
  181.  
  182. if (intid == 32) then -- Devil
  183. if ALREADY_SPAWNED then
  184. unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
  185. plr:GossipComplete()
  186. return
  187. else
  188. CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
  189. ALREADY_SPAWNED = true
  190. end
  191. PerformIngameSpawn(1, 65037, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
  192. plr:GossipComplete()
  193. end
  194.  
  195. if (intid == 33) then -- Demon
  196. if ALREADY_SPAWNED then
  197. unit:SendChatMessageToPlayer(8, 0, "You already have a preview active, wait 20 seconds before summoning another.", plr)
  198. plr:GossipComplete()
  199. return
  200. else
  201. CreateLuaEvent(function() ALREADY_SPAWNED = nil end, 20000) -- 1h*60min*60sec*1000ms
  202. ALREADY_SPAWNED = true
  203. end
  204. PerformIngameSpawn(1, 65036, 0, 0, -577.678284, -4568.370605, 9.069206, 5.987061, false, 20000)
  205. plr:GossipComplete()
  206. end
  207. end
  208.  
  209.  
  210. RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
  211. RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement