path_of_the_summoner.lua 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. --[[
  2. Script Name : Quests/Hallmark/path_of_the_summoner.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.06 08:11:22
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to pass Magister Niksel's trial using a summoned creature.", 1, 100, "I must pass Magister Niksel's trial in the testing room in the South Qeynos mage tower . The chamber is located on the middle floor of the tower.", 11,22105121)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Then I suggest you prepare yourself. The trial you will face places you against the mighty beings you will one day summon on your own. One from each element will be represented. Destroy them all, and you will be ready to move on in your new role as a summoner.")
  20. Dialog.AddVoiceover("voiceover/english/magister_niksel/qey_south/magister_niksel030.mp3", 4260640044, 118480964)
  21. PlayFlavor(QuestGiver, "", "", "scold", 0, 0, Player)
  22. Dialog.AddOption("Should I return to you once I've completed the trial?","GoodbyeSumm")
  23. Dialog.Start()
  24. if GetQuestStep(Player,5877)==1 then
  25. SetStepComplete(Player,5877,1)
  26. end
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 1, "I've passed Magister Niksel's trial.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I've passed Magister Niksel's trial.")
  38. if GetClass(Player)== 21 then
  39. SetAdventureClass(Player,28)
  40. SetPlayerLevel(Player,10)
  41. SendMessage(Player, "Congratulations! You are a Summoner.","yellow")
  42. SendPopUpMessage(Player, "Congratulations! You are a Summoner.",250,250,200)
  43. ApplySpellVisual(Player, 324)
  44. PlaySound(Player, "sounds/test/endquest.wav", GetX(Player), GetY(Player), GetZ(Player), Player)
  45. local level = GetLevel(Player)*5
  46. --WEAPON SKILLS
  47. if not HasSkill(Player, 3820670534) then -- Evocations/Mage
  48. AddSkill(Player, 3820670534,1,level)
  49. SendMessage(Player, "You have learned the Evocations skill")
  50. end
  51. if not HasSkill(Player, 2120065377) then -- Legerdemain/Summoner
  52. AddSkill(Player, 2120065377,1,level)
  53. SendMessage(Player, "You have learned the Legerdemain skill")
  54. end
  55. if not HasSkill(Player, 3421494576) then -- Crushing
  56. AddSkill(Player, 3421494576,1,level)
  57. SendMessage(Player, "You have learned the Crushing skill")
  58. end
  59. if not HasSkill(Player, 3048574950) then -- Piercing
  60. AddSkill(Player, 3048574950,1,level)
  61. SendMessage(Player, "You have learned the Piercing skill")
  62. end
  63. --CASTING SKILLS
  64. if not HasSkill(Player, 613995491) then -- Disruption
  65. AddSkill(Player, 613995491,1,level)
  66. SendMessage(Player, "You have learned the Disruption skill")
  67. end
  68. if not HasSkill(Player, 366253016) then -- Ministration
  69. AddSkill(Player, 366253016,1,level)
  70. SendMessage(Player, "You have learned the Ministration skill")
  71. end
  72. if not HasSkill(Player, 3587918036) then -- Ordination
  73. AddSkill(Player, 3587918036,1,level)
  74. SendMessage(Player, "You have learned the Ordination skill")
  75. end
  76. if not HasSkill(Player, 882983852) then -- Subjugation
  77. AddSkill(Player, 882983852,1,level)
  78. SendMessage(Player, "You have learned the Subjugation skill")
  79. end
  80. if not HasSkill(Player, 2638198038) then -- Focus
  81. AddSkill(Player, 2638198038,1,level)
  82. SendMessage(Player, "You have learned the Focus skill")
  83. end
  84. --WEAPON SKILLS
  85. if not HasSkill(Player, 545043066) then -- Symbol
  86. AddSkill(Player, 545043066,1,level)
  87. SendMessage(Player, "You are now more proficient with a Symbol")
  88. end
  89. if not HasSkill(Player, 887279616) then -- Dagger
  90. AddSkill(Player, 887279616,1,level)
  91. SendMessage(Player, "You are now more proficient with a Dagger")
  92. end
  93. if not HasSkill(Player, 3180399725) then -- Staff(2h)
  94. AddSkill(Player, 3180399725,1,level)
  95. SendMessage(Player, "You are now more proficient with a Staff")
  96. end
  97. --REMOVE SKILLS
  98. -- Remove Fighter
  99. if HasSkill(Player, 1408356869) then -- Martial/Fighter
  100. RemoveSkill(Player, 1408356869)
  101. end
  102. if HasSkill(Player, 1124719197) then -- Tactics/Warrior
  103. RemoveSkill(Player, 1124719197)
  104. end
  105. if HasSkill(Player, 433335062) then -- Berserk/Berserker
  106. RemoveSkill(Player, 433335062)
  107. end
  108. if HasSkill(Player, 1209716810) then -- Protection/Guardian
  109. RemoveSkill(Player, 1209716810)
  110. end
  111. if HasSkill(Player, 3856706740) then -- Brawl/Brawling
  112. RemoveSkill(Player, 3856706740)
  113. end
  114. if HasSkill(Player, 2011726342) then -- Tranquility/Monk
  115. RemoveSkill(Player, 2011726342)
  116. end
  117. if HasSkill(Player, 3067436248) then -- Physicality/Bruiser
  118. RemoveSkill(Player, 3067436248)
  119. end
  120. if HasSkill(Player, 3809066846) then -- Faith/Crusader
  121. RemoveSkill(Player, 3809066846)
  122. end
  123. if HasSkill(Player, 90523872) then -- Determined Faith/Paladin
  124. RemoveSkill(Player, 90523872)
  125. end
  126. if HasSkill(Player, 2741805322) then -- Determined Zeal/Shadowknight
  127. RemoveSkill(Player, 2741805322)
  128. end
  129. --Removed Advance Scout
  130. if HasSkill(Player, 1921433074) then -- Reconnaissance/Scout
  131. RemoveSkill(Player, 1921433074)
  132. end
  133. if HasSkill(Player, 1311635100) then -- Melodies/Bard
  134. RemoveSkill(Player, 1311635100)
  135. end
  136. if HasSkill(Player, 296246391) then -- Ballads/Troubador
  137. RemoveSkill(Player, 296246391)
  138. end
  139. if HasSkill(Player, 340921594) then -- Dirges/Dirge
  140. RemoveSkill(Player, 340921594)
  141. end
  142. if HasSkill(Player, 1514256692) then -- Skulldugery/Rogue
  143. RemoveSkill(Player, 1514256692)
  144. end
  145. if HasSkill(Player, 3167106577) then -- Stalking/Predator
  146. RemoveSkill(Player, 3167106577)
  147. end
  148. if HasSkill(Player, 2663054519) then -- Swashbuckling/Swashbuckler
  149. RemoveSkill(Player, 2663054519)
  150. end
  151. if HasSkill(Player, 1519965519) then -- Banditry/Brigand
  152. RemoveSkill(Player, 1519965519)
  153. end
  154. if HasSkill(Player, 1400160844) then -- Archery/Ranger
  155. RemoveSkill(Player, 1400160844)
  156. end
  157. if HasSkill(Player, 2711101135) then -- Assassination/Assassin
  158. RemoveSkill(Player, 2711101135)
  159. end
  160. --Removed Priest
  161. if HasSkill(Spawn, 2463145248) then -- Inspirations/Priest
  162. RemoveSkill(Spawn, 2463145248)
  163. end
  164. if HasSkill(Player, 3341842907) then -- Theurgy/Cleric
  165. RemoveSkill(Player, 3341842907)
  166. end
  167. if HasSkill(Player, 2581053277) then -- Regimens/Templar
  168. RemoveSkill(Player, 2581053277)
  169. end
  170. if HasSkill(Player, 1829443087) then -- Inquisitions/Inquisitor
  171. RemoveSkill(Player, 1829443087)
  172. end
  173. if HasSkill(Player, 3282420779) then -- Archegenesis/Druid
  174. RemoveSkill(Player, 3282420779)
  175. end
  176. if HasSkill(Player, 1624274802) then -- Nature's Reckoning/Fury
  177. RemoveSkill(Player, 1624274802)
  178. end
  179. if HasSkill(Player, 1040683335) then -- Nature's Refuge/Warden
  180. RemoveSkill(Player, 1040683335)
  181. end
  182. if HasSkill(Player, 3467160477) then -- Fetichisms/Mystic
  183. RemoveSkill(Player, 3467160477)
  184. end
  185. if HasSkill(Player, 3191839982) then -- Vehemence/Defiler
  186. RemoveSkill(Player, 3191839982)
  187. end
  188. --Removed Mage
  189. if HasSkill(Player, 287643040) then -- Enchantments/Enchanter
  190. RemoveSkill(Player, 287643040)
  191. end
  192. if HasSkill(Player, 2898101972) then -- Hallucinations/Illusionist
  193. RemoveSkill(Player, 2898101972)
  194. end
  195. if HasSkill(Player, 2950599749) then -- Protean/Coecerer
  196. RemoveSkill(Player, 2950599749)
  197. end
  198. if HasSkill(Player, 2533124061) then -- Sorcery/Sorcerer
  199. RemoveSkill(Player, 2533124061)
  200. end
  201. if HasSkill(Player, 2662430630) then -- Elemental Mastery/Wizard
  202. RemoveSkill(Player, 2662430630)
  203. end
  204. if HasSkill(Player, 193411854) then -- Noctivagance/Warlock
  205. RemoveSkill(Player, 193411854)
  206. end
  207. if HasSkill(Player, 2042842194) then -- Conjurations/Conjurer
  208. RemoveSkill(Player, 2042842194)
  209. end
  210. if HasSkill(Player, 289471519) then -- Sepulchers/Necromancer
  211. RemoveSkill(Player, 289471519)
  212. end
  213. --REMOVE WEAPON
  214. if HasSkill(Player, 2246237129) then -- Medium Armor
  215. RemoveSkill(Player, 2246237129)
  216. end
  217. if HasSkill(Player, 241174330) then -- Heavy Armor
  218. RemoveSkill(Player, 241174330)
  219. end
  220. if HasSkill(Player, 770311065) then -- Mace
  221. RemoveSkill(Player, 770311065)
  222. end
  223. if HasSkill(Player, 3177806075) then -- Fists
  224. RemoveSkill(Player, 3177806075)
  225. end
  226. if HasSkill(Player, 1696217328) then -- Sword
  227. RemoveSkill(Player, 1696217328)
  228. end
  229. if HasSkill(Player, 2292577688) then -- Great Sword
  230. RemoveSkill(Player, 2292577688)
  231. end
  232. if HasSkill(Player, 2292577688) then -- Great Sword
  233. RemoveSkill(Player, 2292577688)
  234. end
  235. if HasSkill(Player, 2954459351) then -- Great Axe
  236. RemoveSkill(Player, 2954459351)
  237. end
  238. if HasSkill(Player, 1653482350) then -- Great Spear
  239. RemoveSkill(Player, 1653482350)
  240. end
  241. if HasSkill(Player, 3173504370) then -- Round Shield
  242. RemoveSkill(Player, 3173504370)
  243. end
  244. if HasSkill(Player, 2608320658) then -- Kite Shield
  245. RemoveSkill(Player, 2608320658)
  246. end
  247. if HasSkill(Player, 570458645) then -- Tower Shield
  248. RemoveSkill(Player, 570458645)
  249. end
  250. if HasSkill(Player, 4037812502) then -- Buckler
  251. RemoveSkill(Player, 4037812502)
  252. end
  253. end
  254. UpdateQuestDescription(Quest, "Having completed my trial as a summoner, I will be focusing my studies in magic down the path I've chosen. I am well on my way in Norrath - and have learned valuable lessons in responsible summoning.")
  255. GiveQuestReward(Quest, Player)
  256. end
  257. function Reload(Quest, QuestGiver, Player, Step)
  258. if Step == 1 then
  259. QuestComplete(Quest, QuestGiver, Player)
  260. end
  261. end