GarvenTralk.lua 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/GarvenTralk.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.05 05:09:08
  5. Script Purpose : Garven Tralk's dialog for commoner's and first quest on Isle of Refuge
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/ClassSkillCheck.lua")
  10. local IsleIntro = 5725
  11. local FighterGI = 5726
  12. local PriestGI = 5727
  13. local MageGI = 5728
  14. local ScoutGI = 5729
  15. local Fighter2 = 5731
  16. local Priest2 = 5732
  17. local Mage2 = 5733
  18. local Scout2 = 5730
  19. function spawn(NPC)
  20. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  21. ProvidesQuest(NPC,FighterGI)
  22. ProvidesQuest(NPC,PriestGI)
  23. ProvidesQuest(NPC,MageGI)
  24. ProvidesQuest(NPC,ScoutGI)
  25. ProvidesQuest(NPC,Fighter2)
  26. ProvidesQuest(NPC,Priest2)
  27. ProvidesQuest(NPC,Mage2)
  28. ProvidesQuest(NPC,Scout2)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. if HasQuest(Spawn,IsleIntro) and not HasCompletedQuest(Spawn,IsleIntro) then
  33. Dialog1(NPC,Spawn)--CLASS SELECTION
  34. elseif HasCompletedQuest(Spawn,IsleIntro) and
  35. not HasQuest(Spawn, FighterGI) and not HasCompletedQuest(Spawn, FighterGI)
  36. and not HasQuest(Spawn, PriestGI) and not HasCompletedQuest(Spawn, PriestGI)
  37. and not HasQuest(Spawn, MageGI) and not HasCompletedQuest(Spawn, MageGI)
  38. and not HasQuest(Spawn, ScoutGI) and not HasCompletedQuest(Spawn, ScoutGI) then
  39. Dialog2(NPC,Spawn)--START OF GRUTTOOTH INVASION (DIALOG1 LEADS TO THIS ALSO)
  40. elseif GetQuestStep(Spawn, FighterGI)~=3 and HasCompletedQuest(Spawn,IsleIntro) and not HasCompletedQuest(Spawn, FighterGI) --IN BETWEEN STEPS
  41. and GetQuestStep(Spawn, PriestGI)~=3 and HasCompletedQuest(Spawn,IsleIntro) and not HasCompletedQuest(Spawn, PriestGI)
  42. and GetQuestStep(Spawn, MageGI)~=3 and HasCompletedQuest(Spawn,IsleIntro) and not HasCompletedQuest(Spawn, MageGI)
  43. and GetQuestStep(Spawn, ScoutGI)~=3 and HasCompletedQuest(Spawn,IsleIntro)and not HasCompletedQuest(Spawn, ScoutGI) then
  44. PlayFlavor(NPC,"voiceover/english/garven_tralk/tutorial_island02/garventralk009.mp3", "I know you may think this is none of your affair, but trust me, if you want to get off this island alive and well you have no choice. Come back to me after you've defeated at least one Gruttooth invader and maybe I can help you out.", "nod", 3552772782, 395294110, Spawn, 0) --FINAL HAIL
  45. elseif GetQuestStep(Spawn, FighterGI)==3 then --FINAL GRUTTOOTH INVASION STEP & IF PLAYER DOES NOT HAVE NEXT QUEST
  46. Dialog3F(NPC,Spawn)
  47. elseif not HasQuest(Spawn, Fighter2) and HasCompletedQuest(Spawn, FighterGI) and not HasCompletedQuest(Spawn, Fighter2) then
  48. Dialog3F(NPC,Spawn)
  49. elseif GetQuestStep(Spawn, PriestGI)==3 then
  50. Dialog3P(NPC,Spawn)
  51. elseif not HasQuest(Spawn, Priest2) and HasCompletedQuest(Spawn, PriestGI) and not HasCompletedQuest(Spawn, Priest2) then
  52. Dialog3P(NPC,Spawn)
  53. elseif GetQuestStep(Spawn, MageGI)==3 then
  54. Dialog3M(NPC,Spawn)
  55. elseif not HasQuest(Spawn, Mage2) and HasCompletedQuest(Spawn, MageGI) and not HasCompletedQuest(Spawn, Mage2) then
  56. Dialog3M(NPC,Spawn)
  57. elseif GetQuestStep(Spawn, ScoutGI)==3 then
  58. Dialog3S(NPC,Spawn)
  59. elseif not HasQuest(Spawn, Scout2) and HasCompletedQuest(Spawn, ScoutGI) and not HasCompletedQuest(Spawn, Scout2) then
  60. Dialog3S(NPC,Spawn)
  61. else
  62. --FINAL HAIL
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("If we don't get refugees with some degree of skill soon we'll have to pull out of here.")
  66. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk001.mp3",1755275352, 190331174)
  67. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  68. Dialog.AddOption("Good luck with that.")
  69. Dialog.Start()
  70. end
  71. end
  72. function InRange(NPC,Spawn)
  73. if HasQuest(Spawn,IsleIntro) and not HasCompletedQuest (Spawn,IsleIntro) then
  74. FaceTarget(NPC, Spawn)
  75. PlayFlavor(NPC, "voiceover/english/garven_tralk/tutorial_island02_fvo_onaoienter.mp3", "You there! Stop standing around like a drunken sailor and get over here!", "beckon", 4010256509, 3318344012, Spawn, 0)
  76. end
  77. end
  78. function respawn(NPC)
  79. spawn(NPC)
  80. end
  81. function Dialog1(NPC,Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("I'll make this quick because we have no time for pleasantries. Welcome to the Isle of Refuge. Name and profession please?")
  85. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk002.mp3", 1422110417, 3383506524)
  86. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Fighter.", "Fighter")
  87. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Priest.", "Priest")
  88. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Mage.", "Mage")
  89. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Scout.", "Scout")
  90. Dialog.Start()
  91. end
  92. function Scout(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. Dialog.New(NPC, Spawn)
  95. Dialog.AddDialog("A scout, eh? Good. We can use someone with a cool head and a keen eye with all the goblins causing trouble around here. As a scout, you'll use your stealth and speed to sneak up on opponents and take them out quickly. Watch yourself though, because if you're not quick enough, a good strong blow will certainly take its toll on you. You think you can handle that?")
  96. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk006.mp3",3084961366, 1162504968)
  97. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  98. Dialog.AddOption("Yes.", "YesS")
  99. Dialog.AddOption("No, I don't think I'm a scout after all. ", "No")
  100. Dialog.Start()
  101. end
  102. function YesS(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. SetStepComplete(Spawn,IsleIntro,1)
  105. SetAdventureClass(Spawn,31)
  106. SendMessage(Spawn, "Congratulations! You have chosen the path of the Scout.","yellow")
  107. -- HarvestSkills(NPC,Spawn)
  108. -- ScoutSkills(NPC,Spawn)
  109. AddTimer(NPC,1000,"SkillCheck",1,Spawn)
  110. OfferQuest(NPC,Spawn,ScoutGI)
  111. if GetLevel(Spawn)<3 then
  112. SetPlayerLevel(Spawn,3)
  113. end
  114. end
  115. --PRIEST
  116. function Priest(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. Dialog.New(NPC, Spawn)
  119. Dialog.AddDialog("A priest, eh? Well, I'm not a religious man myself, but it can't hurt to have a little divine wrath on our side with all these goblins about. As a priest, your first duty should be healing and blessing your comrades using divine power.")
  120. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk005.mp3",3178428692, 3357533426)
  121. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  122. Dialog.AddOption("Yes.", "PContinue")
  123. Dialog.AddOption("No, I don't think I'm a priest after all. ", "No")
  124. Dialog.Start()
  125. end
  126. function PContinue(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("Though, most priests I've seen are no strangers to combat, and you should be able to take a pretty good beating and walk away. You think you can handle that?")
  130. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk016.mp3",1887135280, 3302385767)
  131. Dialog.AddOption("Yes.", "YesP")
  132. Dialog.AddOption("No, I don't think I'm a priest after all. ", "No")
  133. Dialog.Start()
  134. end
  135. function YesP(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. SetAdventureClass(Spawn,11)
  138. SetStepComplete(Spawn,IsleIntro,1)
  139. -- HarvestSkills(NPC,Spawn)
  140. -- PriestSkills(NPC,Spawn)
  141. AddTimer(NPC,1000,"SkillCheck",1,Spawn)
  142. SendMessage(Player, "Congratulations! You have chosen the path of the Priest.","yellow")
  143. OfferQuest(NPC,Spawn,PriestGI)
  144. if GetLevel(Spawn)<3 then
  145. SetPlayerLevel(Spawn,3)
  146. end
  147. end
  148. function PContinue2(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. Dialog.New(NPC, Spawn)
  151. SetStepComplete(Spawn,IsleIntro,1)
  152. SetAdventureClass(Spawn,11)
  153. Dialog.AddDialog("I know you may think this is none of your affair, but trust me, if you want to get off this island alive and well you have no choice. Come back to me after you've defeated at least one Gruttooth invader and maybe I can help you out.")
  154. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk009.mp3",3552772782, 395294110)
  155. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  156. Dialog.AddOption("Very well.")
  157. Dialog.Start()
  158. end
  159. --MAGE
  160. function Mage(NPC, Spawn)
  161. FaceTarget(NPC, Spawn)
  162. Dialog.New(NPC, Spawn)
  163. Dialog.AddDialog("A mage, eh? Well, I suppose we can use another finger wiggler to blast those goblins. As a mage, you'll want to keep out of harm's way, casting spells at your opponents from afar while using your skills to bolster the strengths of your comrades. You think you can handle that?")
  164. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk004.mp3",4064296698, 2344383493)
  165. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  166. Dialog.AddOption("Yes.", "YesM")
  167. Dialog.AddOption("No, I don't think I'm a mage after all. ", "No")
  168. Dialog.Start()
  169. end
  170. function YesM(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. SetStepComplete(Spawn,IsleIntro,1)
  173. SendMessage(Spawn, "Congratulations! You have chosen the path of the Mage.","yellow")
  174. SetAdventureClass(Spawn,21)
  175. -- HarvestSkills(NPC,Spawn)
  176. -- MageSkills(NPC,Spawn)
  177. AddTimer(NPC,1000,"SkillCheck",1,Spawn)
  178. OfferQuest(NPC,Spawn,MageGI)
  179. if GetLevel(Spawn)<3 then
  180. SetPlayerLevel(Spawn,3)
  181. end
  182. end
  183. --FIGHTER
  184. function Fighter(NPC, Spawn)
  185. FaceTarget(NPC, Spawn)
  186. Dialog.New(NPC, Spawn)
  187. Dialog.AddDialog("A fighter, eh? Good. We could always use another blade to stick it to them goblins. As a fighter, you'll be in the thick of battle most of the time protecting your comrades from harm and relying on your equipment and combat skills to see you through it. Are you sure you can handle that?")
  188. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk003.mp3",2483812804, 239361223)
  189. PlayFlavor(NPC, "", "", "smile", 0, 0, Spawn)
  190. Dialog.AddOption("Yes.", "YesF")
  191. Dialog.AddOption("No, I don't think I'm a fighter after all. ", "No")
  192. Dialog.Start()
  193. end
  194. function YesF(NPC, Spawn)
  195. FaceTarget(NPC, Spawn)
  196. SetStepComplete(Spawn,IsleIntro,1)
  197. SetAdventureClass(Spawn,1)
  198. SendMessage(Spawn, "Congratulations! You have chosen the path of the Fighter.","yellow")
  199. AddTimer(NPC,1000,"SkillCheck",1,Spawn)
  200. -- HarvestSkills(NPC,Spawn)
  201. -- FighterSkills(NPC,Spawn)
  202. OfferQuest(NPC,Spawn,FighterGI)
  203. if GetLevel(Spawn)<3 then
  204. SetPlayerLevel(Spawn,3)
  205. end
  206. end
  207. function No(NPC, Spawn)
  208. FaceTarget(NPC, Spawn)
  209. Dialog.New(NPC, Spawn)
  210. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  211. Dialog.AddDialog("Yes, I didn't think you looked the type. So what is your profession?")
  212. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Fighter.", "Fighter")
  213. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Priest.", "Priest")
  214. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Mage.", "Mage")
  215. Dialog.AddOption("My name is "..GetName(Spawn)..". I am a Scout.", "Scout")
  216. Dialog.Start()
  217. end
  218. function Dialog2(NPC,Spawn)
  219. if GetClass(Spawn) == 1 then
  220. OfferQuest(NPC, Spawn,FighterGI)
  221. elseif GetClass(Spawn) == 31 then
  222. OfferQuest(NPC, Spawn,ScoutGI)
  223. elseif GetClass(Spawn) == 21 then
  224. OfferQuest(NPC, Spawn,MageGI)
  225. elseif GetClass(Spawn) == 11 then
  226. OfferQuest(NPC, Spawn,PriestGI)
  227. end
  228. end
  229. function Dialog3F(NPC, Spawn)
  230. FaceTarget(NPC, Spawn)
  231. Dialog.New(NPC, Spawn)
  232. Dialog.AddDialog("Well done, you might make it off this island after all. I'll tell you what. Take this pair of gloves for your help, you're sure to need all the protection you can get for the duration of your stay here. Now if you actually want to get off this island and see one of the big cities one day, I suggest you talk to Braksan Steelforge. He's in charge of all the new fighters and can be found at the forge in town. Good luck to you.")
  233. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk011.mp3",2701236419, 2048899466)
  234. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  235. Dialog.AddOption("Thanks.", "thanksF")
  236. Dialog.Start()
  237. end
  238. function Dialog3P(NPC, Spawn)
  239. FaceTarget(NPC, Spawn)
  240. Dialog.New(NPC, Spawn)
  241. if GetQuestStep(Spawn, PriestGI)==3 then
  242. SetStepComplete(Spawn,PriestGI,3)
  243. end
  244. Dialog.AddDialog("Well done, you might make it off this island after all. I'll tell you what. Take this pair of gloves for your help, you're sure to need all the protection you can get for the duration of your stay here. Now if you actually want to get off this island and see one of the big cities one day, I suggest you talk to Nathinia Sparklebright. She's in charge of all the new priests and can usually be found meditating by the fountain in town. Good luck to you.")
  245. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk013.mp3",2629138790, 804939192)
  246. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  247. Dialog.AddOption("Thanks.", "thanksP")
  248. Dialog.Start()
  249. end
  250. function Dialog3M(NPC, Spawn)
  251. FaceTarget(NPC, Spawn)
  252. Dialog.New(NPC, Spawn)
  253. if GetQuestStep(Spawn, MageGI)==3 then
  254. SetStepComplete(Spawn,MageGI,3)
  255. end
  256. Dialog.AddDialog("Well done, you might make it off this island after all. I'll tell you what. Take this pair of gloves for your help, you're sure to need all the protection you can get for the duration of your stay here. Now if you actually want to get off this island and see one of the big cities one day, I suggest you talk to Mizan Vaeoulin. He's in charge of all the new mages and can be found inside the wizard tower in town. Good luck to you.")
  257. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk012.mp3", 1248305011, 3683529392)
  258. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  259. Dialog.AddOption("Thanks.", "thanksM")
  260. Dialog.Start()
  261. end
  262. function Dialog3S(NPC, Spawn)
  263. FaceTarget(NPC, Spawn)
  264. Dialog.New(NPC, Spawn)
  265. if GetQuestStep(Spawn, ScoutGI)==3 then
  266. SetStepComplete(Spawn,ScoutGI,3)
  267. end
  268. Dialog.AddDialog("Well done, you might make it off this island after all. I'll tell you what. Take this pair of gloves for your help, you're sure to need all the protection you can get for the duration of your stay here. Now if you actually want to get off this island and see one of the big cities one day, I suggest you talk to Vladiminn. That wily ratonga is in charge of all the new scouts and can usually be found at the archery range in town. Good luck to you.")
  269. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk014.mp3", 3569991620, 129801619)
  270. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  271. Dialog.AddOption("Thanks.", "thanksS")
  272. Dialog.Start()
  273. end
  274. function thanksF(NPC,Spawn)
  275. if GetQuestStep(Spawn, FighterGI)==3 then
  276. SetStepComplete(Spawn,FighterGI,3)
  277. end
  278. if not HasQuest(Spawn,Fighter2) and not HasCompletedQuest(Spawn,Fighter2)then
  279. OfferQuest(NPC, Spawn,Fighter2)
  280. end
  281. end
  282. function thanksP(NPC,Spawn)
  283. if GetQuestStep(Spawn, PriestGI)==3 then
  284. SetStepComplete(Spawn,PriestGI,3)
  285. end
  286. if not HasQuest(Spawn,Priest2) and not HasCompletedQuest(Spawn,Priest2)then
  287. OfferQuest(NPC, Spawn,Priest2)
  288. end
  289. end
  290. function thanksM(NPC,Spawn)
  291. if GetQuestStep(Spawn, MageGI)==3 then
  292. SetStepComplete(Spawn,MageGI,3)
  293. end
  294. if not HasQuest(Spawn,Mage2) and not HasCompletedQuest(Spawn,Mage2)then
  295. OfferQuest(NPC, Spawn,Mage2)
  296. end
  297. end
  298. function thanksS(NPC,Spawn)
  299. if GetQuestStep(Spawn, ScoutGI)==3 then
  300. SetStepComplete(Spawn,ScoutGI,3)
  301. end
  302. if not HasQuest(Spawn,Scout2) and not HasCompletedQuest(Spawn,Scout2)then
  303. OfferQuest(NPC, Spawn,Scout2)
  304. end
  305. end
  306. -----------------------------------------------------------
  307. function FighterSkills(NPC,Spawn)
  308. local level = GetLevel(Spawn)*5
  309. if not HasSkill(Spawn, 1408356869) then -- Martial
  310. AddSkill(Spawn, 1408356869,1,level)
  311. end
  312. if not HasSkill(Spawn, 2897193374) then -- Light Armor
  313. AddSkill(Spawn, 2897193374,1,level)
  314. end
  315. if not HasSkill(Spawn, 3421494576) then -- Crushing
  316. AddSkill(Spawn, 3421494576,1,level)
  317. end
  318. if not HasSkill(Spawn, 418532101) then -- Slashing
  319. AddSkill(Spawn, 418532101,1,level)
  320. end
  321. if HasSkill(Spawn, 540022425) then -- Parry
  322. RemoveSkill(Spawn, 540022425)
  323. end
  324. if not HasSkill(Spawn, 1852383242) then -- Dual Wield
  325. AddSkill(Spawn, 1852383242,1,level)
  326. end
  327. if not HasSkill(Spawn, 2638198038) then -- Focus
  328. AddSkill(Spawn, 2638198038,1,level)
  329. end
  330. if HasSkill(Spawn, 540022425) then -- Parry
  331. RemoveSkill(Spawn, 540022425)
  332. end
  333. --WEAPON SKILLS
  334. if not HasSkill(Spawn, 4037812502) then -- Buckler
  335. AddSkill(Spawn, 4037812502,1,level)
  336. end
  337. if not HasSkill(Spawn, 3173504370) then -- Roundshield
  338. AddSkill(Spawn, 3173504370,1,level)
  339. end
  340. if not HasSkill(Spawn, 2476073427) then -- Axe
  341. AddSkill(Spawn, 2476073427,1,level)
  342. end
  343. if not HasSkill(Spawn, 2954459351) then -- Great Axe
  344. AddSkill(Spawn, 2954459351,1,level)
  345. end
  346. if not HasSkill(Spawn, 1696217328) then -- Sword
  347. AddSkill(Spawn, 1696217328,1,level)
  348. end
  349. if not HasSkill(Spawn, 2292577688) then -- Great Sword
  350. AddSkill(Spawn, 2292577688,1,level)
  351. end
  352. if not HasSkill(Spawn, 770311065) then -- Mace
  353. AddSkill(Spawn, 770311065,1,level)
  354. end
  355. if not HasSkill(Spawn, 554333641) then -- Hammer
  356. AddSkill(Spawn, 554333641,1,level)
  357. end
  358. if not HasSkill(Spawn, 1653482350) then -- Great Hammer
  359. AddSkill(Spawn, 1653482350,1,level)
  360. end
  361. if not HasSkill(Spawn, 3180399725) then -- Staff(2h)
  362. AddSkill(Spawn, 3180399725,1,level)
  363. end
  364. end
  365. ------------------------------------------------------------
  366. function PriestSkills(NPC,Spawn)
  367. local level = GetLevel(Spawn)*5
  368. if not HasSkill(Spawn, 2463145248) then -- Inspirations
  369. AddSkill(Spawn, 2463145248,1,level)
  370. end
  371. if not HasSkill(Spawn, 2897193374) then -- Light Armor
  372. AddSkill(Spawn, 2897193374,1,level)
  373. end
  374. if not HasSkill(Spawn, 3421494576) then -- Crushing
  375. AddSkill(Spawn, 3421494576,1,level)
  376. end
  377. if HasSkill(Spawn, 540022425) then -- Parry
  378. RemoveSkill(Spawn, 540022425)
  379. end
  380. --CASTING SKILLS
  381. if not HasSkill(Spawn, 613995491) then -- Disruption
  382. AddSkill(Spawn, 613995491,1,level)
  383. end
  384. if not HasSkill(Spawn, 366253016) then -- Ministration
  385. AddSkill(Spawn, 366253016,1,level)
  386. end
  387. if not HasSkill(Spawn, 3587918036) then -- Ordination
  388. AddSkill(Spawn, 3587918036,1,level)
  389. end
  390. if not HasSkill(Spawn, 882983852) then -- Subjugation
  391. AddSkill(Spawn, 882983852,1,level)
  392. end
  393. if not HasSkill(Spawn, 2638198038) then -- Focus
  394. AddSkill(Spawn, 2638198038,1,level)
  395. end
  396. --WEAPON SKILLS
  397. if not HasSkill(Spawn, 4037812502) then -- Buckler
  398. AddSkill(Spawn, 4037812502,1,level)
  399. end
  400. if not HasSkill(Spawn, 545043066) then -- Symbol
  401. AddSkill(Spawn, 545043066,1,level)
  402. end
  403. if not HasSkill(Spawn, 770311065) then -- Mace
  404. AddSkill(Spawn, 770311065,1,level)
  405. end
  406. if not HasSkill(Spawn, 554333641) then -- Hammer
  407. AddSkill(Spawn, 554333641,1,level)
  408. end
  409. if not HasSkill(Spawn, 1653482350) then -- Great Hammer
  410. AddSkill(Spawn, 1653482350,1,level)
  411. end
  412. if not HasSkill(Spawn, 3180399725) then -- Staff(2h)
  413. AddSkill(Spawn, 3180399725,1,level)
  414. end
  415. end
  416. --------------------------------------------------------------
  417. function MageSkills(NPC,Spawn)
  418. local level = GetLevel(Spawn)*5
  419. if not HasSkill(Spawn, 3820670534) then -- Evocations
  420. AddSkill(Spawn, 3820670534,1,level)
  421. end
  422. if not HasSkill(Spawn, 3048574950) then -- Piercing
  423. AddSkill(Spawn, 3048574950,31,level)
  424. end
  425. if not HasSkill(Spawn, 3421494576) then -- Crushing
  426. AddSkill(Spawn, 3421494576,31,level)
  427. end
  428. if HasSkill(Spawn, 540022425) then -- Parry
  429. RemoveSkill(Spawn, 540022425)
  430. end
  431. --CASTING SKILLS
  432. if not HasSkill(Spawn, 613995491) then -- Disruption
  433. AddSkill(Spawn, 613995491,1,level)
  434. end
  435. if not HasSkill(Spawn, 366253016,1,level) then -- Ministration
  436. AddSkill(Spawn, 366253016,1,level)
  437. end
  438. if not HasSkill(Spawn, 3587918036) then -- Ordination
  439. AddSkill(Spawn, 3587918036,1,level)
  440. end
  441. if not HasSkill(Spawn, 882983852) then -- Subjugation
  442. AddSkill(Spawn, 882983852,1,level)
  443. end
  444. if not HasSkill(Spawn, 2638198038) then -- Focus
  445. AddSkill(Spawn, 2638198038,1,level)
  446. end
  447. --WEAPON SKILLS
  448. if not HasSkill(Spawn, 545043066) then -- Symbol
  449. AddSkill(Spawn, 545043066,1,level)
  450. end
  451. if not HasSkill(Spawn, 887279616) then -- Dagger
  452. AddSkill(Spawn, 887279616,1,level)
  453. end
  454. if not HasSkill(Spawn, 3180399725) then -- Staff(2h)
  455. AddSkill(Spawn, 3180399725,1,level)
  456. end
  457. end
  458. ---------------------------------------------------------------
  459. function ScoutSkills(NPC,Spawn)
  460. local level = GetLevel(Spawn)*5
  461. if not HasSkill(Spawn, 1921433074) then -- Reconnaissance
  462. AddSkill(Spawn, 1921433074,1,level)
  463. end
  464. if not HasSkill(Spawn, 1468243427) then -- Tracking
  465. AddSkill(Spawn, 1468243427,1,level)
  466. end
  467. if not HasSkill(Spawn, 2200201799) then -- Disarm Trap
  468. AddSkill(Spawn, 2200201799,1,level)
  469. end
  470. if not HasSkill(Spawn, 2897193374) then -- Light Armor
  471. AddSkill(Spawn, 2897193374,1,level)
  472. end
  473. if not HasSkill(Spawn, 1756482397) then -- Ranged
  474. AddSkill(Spawn, 1756482397,1,level)
  475. end
  476. if not HasSkill(Spawn, 3048574950) then -- Piercing
  477. AddSkill(Spawn, 3048574950,1,level)
  478. end
  479. if not HasSkill(Spawn, 418532101,1,level) then -- Slashing
  480. AddSkill(Spawn, 418532101,1,level)
  481. end
  482. if not HasSkill(Spawn, 1852383242) then -- Dual Wield
  483. AddSkill(Spawn, 1852383242,1,level)
  484. end
  485. if not HasSkill(Spawn, 2650425026) then -- Thrown Weapon
  486. AddSkill(Spawn, 2650425026,1,level)
  487. end
  488. if not HasSkill(Spawn, 2638198038) then -- Focus
  489. AddSkill(Spawn, 2638198038,1,level)
  490. end
  491. if HasSkill(Spawn, 540022425) then -- Parry
  492. RemoveSkill(Spawn, 540022425)
  493. end
  494. --WEAPON SKILLS
  495. if not HasSkill(Spawn, 4037812502) then -- Buckler
  496. AddSkill(Spawn, 4037812502,1,level)
  497. end
  498. if not HasSkill(Spawn, 3173504370) then -- Roundshield
  499. AddSkill(Spawn, 3173504370,1,level)
  500. end
  501. if not HasSkill(Spawn, 1616998748) then -- Spear
  502. AddSkill(Spawn, 1616998748,1,level)
  503. end
  504. if not HasSkill(Spawn, 887279616) then -- Dagger
  505. AddSkill(Spawn, 887279616,1,level)
  506. end
  507. if not HasSkill(Spawn, 1743366740) then -- Bow
  508. AddSkill(Spawn, 1743366740,1,level)
  509. end
  510. if not HasSkill(Spawn, 2476073427) then -- Axe
  511. AddSkill(Spawn, 2476073427,1,level)
  512. end
  513. if not HasSkill(Spawn, 770311065) then -- Mace
  514. AddSkill(Spawn, 770311065,1,level)
  515. end
  516. if not HasSkill(Spawn, 641561514) then -- Rapier
  517. AddSkill(Spawn, 641561514,1,level)
  518. end
  519. if not HasSkill(Spawn, 1696217328) then -- Sword
  520. AddSkill(Spawn, 1696217328,1,level)
  521. end
  522. end
  523. --HARVESTING SKILLS
  524. function HarvestSkills(NPC,Spawn)
  525. local level = GetLevel(Spawn)*5
  526. if HasSkill(Spawn, 1970131346) then -- Transmuting
  527. RemoveSkill(Spawn, 1970131346)
  528. end
  529. if not HasSkill(Spawn, 3659699625) then -- Mining
  530. AddSkill(Spawn, 3659699625,1,level)
  531. end
  532. if not HasSkill(Spawn, 688591146) then -- Foresting
  533. AddSkill(Spawn, 688591146,1,level)
  534. end
  535. if not HasSkill(Spawn, 1048513601) then -- Gathering
  536. AddSkill(Spawn, 1048513601,1,level)
  537. end
  538. if not HasSkill(Spawn, 4158365743) then -- Trapping
  539. AddSkill(Spawn, 4158365743,1,level)
  540. end
  541. if not HasSkill(Spawn, 2319450178) then -- Fishing
  542. AddSkill(Spawn, 2319450178,1,level)
  543. end
  544. end