path_of_the_predator.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. --[[
  2. Script Name : Quests/Hallmark/path_of_the_predator.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.29 02:11:20
  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 kill the assassin leader who has holed up in the Qeynos Harbor.", 1, 100, "I need to track down and slay the leader of the assassins. They should be located in one of the buildings in the harbor.", 611, 2080023)
  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("Well this is fortunate then! I have just been given news of a group of cutthroats taking up residence inside Qeynos' walls! The group and their leader are holed up down by the docks. Quickly and quietly deal with their leader. Doing so will be like cutting the head off a snake. Leaderless, they should soon disband from the city and you will have proven yourself as a predator!")
  20. -- Dialog.AddVoiceover("voiceover/english/counselor_vemerik/qey_north/counselor_vemerik034.mp3", 1060882099, 2285417556)
  21. PlayFlavor(QuestGiver, "", "", "smile", 0, 0, Player)
  22. Dialog.AddOption("This does sound like a worthy task. My hunt begins.")
  23. Dialog.Start()
  24. if GetQuestStep(Player,5880)==1 then
  25. SetStepComplete(Player,5880,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 killed the assassin leader.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed the leader of the assassins.")
  38. if GetClass(Player)== 31 then
  39. SetAdventureClass(Player,38)
  40. SetPlayerLevel(Player,10)
  41. SendMessage(Player, "Congratulations! You are a Predator.","yellow")
  42. SendPopUpMessage(Player, "Congratulations! You are a Predator.",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. if not HasSkill(Player, 1921433074) then -- Reconnaissance
  47. AddSkill(Player, 1921433074,1,level)
  48. SendMessage(Player, "You have learned the Reconnaissance skill")
  49. end
  50. if not HasSkill(Player, 3167106577) then -- Stalking/Predator
  51. AddSkill(Player, 3167106577,1,level)
  52. SendMessage(Player, "You have learned the Stalking skill")
  53. end
  54. if not HasSkill(Player, 1468243427) then -- Tracking
  55. AddSkill(Player, 1468243427,1,level)
  56. SendMessage(Player, "You have learned the Tracking skill")
  57. end
  58. if not HasSkill(Player, 2200201799) then -- Disarm Trap
  59. AddSkill(Player, 2200201799,1,level)
  60. SendMessage(Player, "You have learned the Disarm Trap skill")
  61. end
  62. if not HasSkill(Player, 3232294366) then -- Safe Fall
  63. AddSkill(Player, 3232294366,31,level)
  64. SendMessage(Player, "You have learned the Safe Fall skill")
  65. end
  66. if not HasSkill(Player, 1756482397) then -- Ranged
  67. AddSkill(Player, 1756482397,1,level)
  68. SendMessage(Player, "You have learned the Ranged skill")
  69. end
  70. if not HasSkill(Player, 3048574950) then -- Piercing
  71. AddSkill(Player, 3048574950,1,level)
  72. SendMessage(Player, "You have learned the Piercing skill")
  73. end
  74. if not HasSkill(Player, 418532101) then -- Slashing
  75. AddSkill(Player, 418532101,1,level)
  76. SendMessage(Player, "You have learned the Slashing skill")
  77. end
  78. if not HasSkill(Player, 1852383242) then -- Dual Wield
  79. AddSkill(Player, 1852383242,1,level)
  80. SendMessage(Player, "You have learned the Dual Wield skill")
  81. end
  82. if not HasSkill(Player, 2650425026) then -- Thrown Weapon
  83. AddSkill(Player, 2650425026,1,level)
  84. SendMessage(Player, "You have learned the Thrown Weapon skill")
  85. end
  86. if not HasSkill(Player, 2638198038) then -- Focus
  87. AddSkill(Player, 2638198038,1,level)
  88. SendMessage(Player, "You have learned the Focus skill")
  89. end
  90. --WEAPON SKILLS
  91. if not HasSkill(Player, 2897193374) then -- Light Armor
  92. AddSkill(Player, 2897193374,1,level)
  93. SendMessage(Player, "You are now more proficient with Light Armor")
  94. end
  95. if not HasSkill(Player, 4037812502) then -- Buckler
  96. AddSkill(Player, 4037812502,1,level)
  97. SendMessage(Player, "You are now more proficient with a Buckler")
  98. end
  99. if not HasSkill(Player, 3173504370) then -- Roundshield
  100. AddSkill(Player, 3173504370,1,level)
  101. SendMessage(Player, "You are now more proficient with a Roundshield")
  102. end
  103. if not HasSkill(Player, 1616998748) then -- Spear
  104. AddSkill(Player, 1616998748,1,level)
  105. SendMessage(Player, "You are now more proficient with a Spear")
  106. end
  107. if not HasSkill(Player, 887279616) then -- Dagger
  108. AddSkill(Player, 887279616,1,level)
  109. SendMessage(Player, "You are now more proficient with a Dagger")
  110. end
  111. if not HasSkill(Player, 1743366740) then -- Bow
  112. AddSkill(Player, 1743366740,1,level)
  113. SendMessage(Player, "You are now more proficient with a Bow")
  114. end
  115. if not HasSkill(Player, 2476073427) then -- Axe
  116. AddSkill(Player, 2476073427,1,level)
  117. SendMessage(Player, "You are now more proficient with an Axe")
  118. end
  119. if not HasSkill(Player, 770311065) then -- Mace
  120. AddSkill(Player, 770311065,1,level)
  121. SendMessage(Player, "You are now more proficient with a Mace")
  122. end
  123. if not HasSkill(Player, 641561514) then -- Rapier
  124. AddSkill(Player, 641561514,1,level)
  125. SendMessage(Player, "You are now more proficient with a Rapier")
  126. end
  127. if not HasSkill(Player, 1696217328) then -- Sword
  128. AddSkill(Player, 1696217328,1,level)
  129. SendMessage(Player, "You are now more proficient with a Sword")
  130. end
  131. --REMOVE SKILLS
  132. -- Remove Fighter for Scout
  133. if HasSkill(Player, 1408356869) then -- Martial/Fighter
  134. RemoveSkill(Player, 1408356869)
  135. end
  136. if HasSkill(Player, 1124719197) then -- Tactics/Warrior
  137. RemoveSkill(Player, 1124719197)
  138. end
  139. if HasSkill(Player, 433335062) then -- Berserk/Berserker
  140. RemoveSkill(Player, 433335062)
  141. end
  142. if HasSkill(Player, 1209716810) then -- Protection/Guardian
  143. RemoveSkill(Player, 1209716810)
  144. end
  145. if HasSkill(Player, 3856706740) then -- Brawl/Brawling
  146. RemoveSkill(Player, 3856706740)
  147. end
  148. if HasSkill(Player, 2011726342) then -- Tranquility/Monk
  149. RemoveSkill(Player, 2011726342)
  150. end
  151. if HasSkill(Player, 3067436248) then -- Physicality/Bruiser
  152. RemoveSkill(Player, 3067436248)
  153. end
  154. if HasSkill(Player, 3809066846) then -- Faith/Crusader
  155. RemoveSkill(Player, 3809066846)
  156. end
  157. if HasSkill(Player, 90523872) then -- Determined Faith/Paladin
  158. RemoveSkill(Player, 90523872)
  159. end
  160. if HasSkill(Player, 2741805322) then -- Determined Zeal/Shadowknight
  161. RemoveSkill(Player, 2741805322)
  162. end
  163. --Removed Advance Scout
  164. if HasSkill(Spawn, 1311635100) then -- Melodies/Bard
  165. RemoveSkill(Spawn, 1311635100)
  166. end
  167. if HasSkill(Player, 296246391) then -- Ballads/Troubador
  168. RemoveSkill(Player, 296246391)
  169. end
  170. if HasSkill(Player, 340921594) then -- Dirges/Dirge
  171. RemoveSkill(Player, 340921594)
  172. end
  173. if HasSkill(Player, 1514256692) then -- Skulldugery/Rogue
  174. RemoveSkill(Player, 1514256692)
  175. end
  176. if HasSkill(Player, 2663054519) then -- Swashbuckling/Swashbuckler
  177. RemoveSkill(Player, 2663054519)
  178. end
  179. if HasSkill(Player, 1519965519) then -- Banditry/Brigand
  180. RemoveSkill(Player, 1519965519)
  181. end
  182. if HasSkill(Player, 1400160844) then -- Archery/Ranger
  183. RemoveSkill(Player, 1400160844)
  184. end
  185. if HasSkill(Player, 2711101135) then -- Assassination/Assassin
  186. RemoveSkill(Player, 2711101135)
  187. end
  188. --Removed Priest for Scout
  189. if HasSkill(Player, 2463145248) then -- Inspirations/Priest
  190. RemoveSkill(Player, 2463145248)
  191. end
  192. if HasSkill(Player, 3341842907) then -- Theurgy/Cleric
  193. RemoveSkill(Player, 3341842907)
  194. end
  195. if HasSkill(Player, 2581053277) then -- Regimens/Templar
  196. RemoveSkill(Player, 2581053277)
  197. end
  198. if HasSkill(Player, 1829443087) then -- Inquisitions/Inquisitor
  199. RemoveSkill(Player, 1829443087)
  200. end
  201. if HasSkill(Player, 3282420779) then -- Archegenesis/Druid
  202. RemoveSkill(Player, 3282420779)
  203. end
  204. if HasSkill(Player, 1624274802) then -- Nature's Reckoning/Fury
  205. RemoveSkill(Player, 1624274802)
  206. end
  207. if HasSkill(Player, 1040683335) then -- Nature's Refuge/Warden
  208. RemoveSkill(Player, 1040683335)
  209. end
  210. if HasSkill(Player, 3343700951) then -- Talismans/Shaman
  211. RemoveSkill(Player, 3343700951)
  212. end
  213. if HasSkill(Player, 3467160477) then -- Fetichisms/Mystic
  214. RemoveSkill(Player, 3467160477)
  215. end
  216. if HasSkill(Player, 3191839982) then -- Vehemence/Defiler
  217. RemoveSkill(Player, 3191839982)
  218. end
  219. --Removed Mage for Scout
  220. if HasSkill(Player, 3820670534) then -- Evocations/Mage
  221. RemoveSkill(Player, 3820670534)
  222. end
  223. if HasSkill(Player, 287643040) then -- Enchantments/Enchanter
  224. RemoveSkill(Player, 287643040)
  225. end
  226. if HasSkill(Player, 2898101972) then -- Hallucinations/Illusionist
  227. RemoveSkill(Player, 2898101972)
  228. end
  229. if HasSkill(Player, 2950599749) then -- Protean/Coecerer
  230. RemoveSkill(Player, 2950599749)
  231. end
  232. if HasSkill(Player, 2533124061) then -- Sorcery/Sorcerer
  233. RemoveSkill(Player, 2533124061)
  234. end
  235. if HasSkill(Player, 2662430630) then -- Elemental Mastery/Wizard
  236. RemoveSkill(Player, 2662430630)
  237. end
  238. if HasSkill(Player, 193411854) then -- Noctivagance/Warlock
  239. RemoveSkill(Player, 193411854)
  240. end
  241. if HasSkill(Player, 2120065377) then -- Legerdemain/Summoner
  242. RemoveSkill(Player, 2120065377)
  243. end
  244. if HasSkill(Player, 2042842194) then -- Conjurations/Conjurer
  245. RemoveSkill(Player, 2042842194)
  246. end
  247. if HasSkill(Player, 289471519) then -- Sepulchers/Necromancer
  248. RemoveSkill(Player, 289471519)
  249. end
  250. --REMOVE WEAPON
  251. if HasSkill(Player, 2246237129) then -- Medium Armor
  252. RemoveSkill(Player, 2246237129)
  253. end
  254. if HasSkill(Player, 241174330) then -- Heavy Armor
  255. RemoveSkill(Player, 241174330)
  256. end
  257. if HasSkill(Player, 3177806075) then -- Fists
  258. RemoveSkill(Player, 3177806075)
  259. end
  260. if HasSkill(Player, 2292577688) then -- Great Sword
  261. RemoveSkill(Player, 2292577688)
  262. end
  263. if HasSkill(Player, 2954459351) then -- Great Axe
  264. RemoveSkill(Player, 2954459351)
  265. end
  266. if HasSkill(Player, 1653482350) then -- Great Spear
  267. RemoveSkill(Player, 1653482350)
  268. end
  269. if HasSkill(Player, 1616998748) then -- Spear
  270. RemoveSkill(Player, 1616998748)
  271. end
  272. if HasSkill(Player, 2608320658) then -- Kite Shield
  273. RemoveSkill(Player, 2608320658)
  274. end
  275. if HasSkill(Player, 570458645) then -- Tower Shield
  276. RemoveSkill(Player, 570458645)
  277. end
  278. if HasSkill(Player, 540022425) then -- Parry
  279. RemoveSkill(Player, 540022425)
  280. end
  281. if HasSkill(Player, 1553857724) then -- Investigation
  282. RemoveSkill(Player, 1553857724)
  283. end
  284. if HasSkill(Player, 3429135390) then -- Mystical Destruction
  285. RemoveSkill(Player, 3429135390)
  286. end
  287. if HasSkill(Player, 366253016) then --Ministration
  288. RemoveSkill(Player, 366253016)
  289. end
  290. if HasSkill(Player, 613995491) then -- Disruption
  291. RemoveSkill(Player, 613995491)
  292. end
  293. if HasSkill(Player, 882983852) then -- Subjigation
  294. RemoveSkill(Player, 882983852)
  295. end
  296. if HasSkill(Player, 3587918036) then -- Ordination
  297. RemoveSkill(Player, 3587918036)
  298. end
  299. end
  300. UpdateQuestDescription(Quest, "My skills were up to the task and I have succeeded in killing the leader of the ring without alerting the others. They will undoubtedly break apart now that their leader has perished... and now I have earned the title of predator.")
  301. GiveQuestReward(Quest, Player)
  302. end
  303. function Reload(Quest, QuestGiver, Player, Step)
  304. if Step == 1 then
  305. QuestComplete(Quest, QuestGiver, Player)
  306. end
  307. end