ClassSkillCheck.lua 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522
  1. --[[
  2. Script Name : SpawnScripts/Generic/ClassSkillCheck.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.23 12:05:54
  5. Script Purpose :
  6. :
  7. --]]
  8. local FIGHTER = 1
  9. local WARRIOR =2
  10. local GUARDIAN= 3
  11. local BERSERKER = 4
  12. local BRAWLER = 5
  13. local MONK = 6
  14. local BRUISER= 7
  15. local CRUSADER = 8
  16. local SHADOWKNIGHT = 9
  17. local PALADIN = 10
  18. local PRIEST = 11
  19. local CLERIC = 12
  20. local TEMPLAR = 13
  21. local INQUISITOR = 14
  22. local DRUID = 15
  23. local WARDEN = 16
  24. local FURY = 17
  25. local SHAMAN = 18
  26. local MYSTIC = 19
  27. local DEFILER = 20
  28. local MAGE = 21
  29. local SORCERER = 22
  30. local WIZARD = 23
  31. local WARLOCK = 24
  32. local ENCHANTER = 25
  33. local ILLUSIONIST = 26
  34. local COERCER = 27
  35. local SUMMONER = 28
  36. local CONJUROR = 29
  37. local NECROMANCER = 30
  38. local SCOUT = 31
  39. local ROGUE = 32
  40. local SWASHBUCKLER = 33
  41. local BRIGAND = 34
  42. local BARD = 35
  43. local TROUBADOR = 36
  44. local DIRGE = 37
  45. local PREDATOR = 38
  46. local RANGER = 39
  47. local ASSASSIN = 40
  48. local ANIMALIST = 41
  49. local BEASTLORD = 42
  50. local SHAPER = 43
  51. local CHANNELER = 44
  52. function SkillCheck(NPC, Spawn)
  53. GeneralSkills(NPC,Spawn)
  54. AddTimer(NPC,500,"CastingSkills",1,Spawn)
  55. AddTimer(NPC,1000,"GearSkills",1,Spawn)
  56. AddTimer(NPC,1500,"ClassSkills",1,Spawn)
  57. end
  58. -- GENERAL SKILLS --
  59. function GeneralSkills(NPC, Spawn)
  60. local level = GetLevel(Spawn)*5
  61. --Defense
  62. if not HasSkill(Spawn, 609880714) then -- Defense
  63. AddSkill(Spawn, 609880714,30,level)
  64. SendMessage(Spawn, "You have learned the Defense skill")
  65. end
  66. --Magic Affinity
  67. if not HasSkill(Spawn, 2072844078) then -- Magic Affinity
  68. AddSkill(Spawn, 2072844078,1,level)
  69. SendMessage(Spawn, "You have learned the Magic Affinity skill")
  70. end
  71. --Spell Avoidance
  72. if not HasSkill(Spawn, 2383540775) then -- Spell Avoidance
  73. AddSkill(Spawn, 2383540775,30,level)
  74. SendMessage(Spawn, "You have learned the Spell Avoidance skill")
  75. end
  76. --Very Light Armor
  77. if not HasSkill(Spawn, 3539032716) then -- Very Light Armor
  78. AddSkill(Spawn, 3539032716,1,level)
  79. SendMessage(Spawn, "You are now more proficient with Very Light Armor")
  80. end
  81. -- Alcohol Tolerance
  82. if not HasSkill(Spawn, 4250045746) and not GetClass(Spawn) == 0 then -- Alcohol Tolerance
  83. AddSkill(Spawn, 4250045746,1,level)
  84. SendMessage(Spawn, "You have learned the Alcohol Tolerance skill")
  85. elseif HasSkill(Spawn,4250045746) then-- Alcohol Tolerance
  86. RemoveSkill(Spawn, 4250045746)
  87. end
  88. -- Swimming
  89. if not HasSkill(Spawn, 2037831821) and not GetClass(Spawn) == 0 then -- Swimming
  90. AddSkill(Spawn, 2037831821,1,level)
  91. SendMessage(Spawn, "You have learned the Swimming skill")
  92. elseif HasSkill(Spawn,2037831821) then-- Swimming
  93. RemoveSkill(Spawn, 2037831821)
  94. end
  95. --Focus
  96. if not HasSkill(Spawn, 2638198038) and not GetClass(Spawn) == 0 then -- Focus
  97. AddSkill(Spawn, 2638198038,1,level)
  98. SendMessage(Spawn, "You have learned the Focus skill")
  99. elseif HasSkill(Spawn,2638198038) then-- Focus
  100. RemoveSkill(Spawn, 2638198038)
  101. end
  102. -- Parry
  103. if not HasSkill(Spawn, 540022425) then -- Parry
  104. AddSkill(Spawn, 540022425,1,level)
  105. SendMessage(Spawn, "You have learned the Parry skill")
  106. end
  107. --Safe Fall (Warrior, Brawler, Scouts Only)
  108. if GetClass (Spawn) == WARRIOR or
  109. GetClass (Spawn) == GUARDIAN or
  110. GetClass (Spawn) == BERZERKER or
  111. GetClass (Spawn) == BRAWLER or
  112. GetClass (Spawn) == MONK or
  113. GetClass (Spawn) == BRUISER or
  114. GetClass (Spawn) == SCOUT or
  115. GetClass (Spawn) == ROGUE or
  116. GetClass (Spawn) == SWASHBUCKLER or
  117. GetClass (Spawn) == BRIGAND or
  118. GetClass (Spawn) == BARD or
  119. GetClass (Spawn) == TROUBADOR or
  120. GetClass (Spawn) == DIRGE or
  121. GetClass (Spawn) == PREDATOR or
  122. GetClass (Spawn) == RANGER or
  123. GetClass (Spawn) == ASSASSIN then
  124. if not HasSkill(Spawn, 2638198038)then -- Safe Fall
  125. AddSkill(Spawn, 2638198038,1,level)
  126. SendMessage(Spawn, "You have learned the Safe Fall skill")
  127. elseif HasSkill(Spawn,2638198038) then-- Safe Fall
  128. RemoveSkill(Spawn, 2638198038)
  129. end
  130. end
  131. --Deflection (Brawlers Only)
  132. if GetClass (Spawn) == BRAWLER or
  133. GetClass (Spawn) == MONK or
  134. GetClass (Spawn) == BRUISER then
  135. if not HasSkill(Spawn, 3850377186)then -- Deflection
  136. AddSkill(Spawn, 3850377186,1,level)
  137. SendMessage(Spawn, "You have learned the Deflection skill")
  138. elseif HasSkill(Spawn,3850377186) then-- Deflection
  139. RemoveSkill(Spawn, 3850377186)
  140. end
  141. end
  142. --Disarm Traps (Scouts Only)
  143. if GetClass (Spawn) == SCOUT or
  144. GetClass (Spawn) == ROGUE or
  145. GetClass (Spawn) == SWASHBUCKLER or
  146. GetClass (Spawn) == BRIGAND or
  147. GetClass (Spawn) == BARD or
  148. GetClass (Spawn) == TROUBADOR or
  149. GetClass (Spawn) == DIRGE or
  150. GetClass (Spawn) == PREDATOR or
  151. GetClass (Spawn) == RANGER or
  152. GetClass (Spawn) == ASSASSIN then
  153. if not HasSkill(Spawn, 2200201799)then -- Disarm Traps
  154. AddSkill(Spawn, 2200201799,1,level)
  155. SendMessage(Spawn, "You have learned the Disarm Traps skill")
  156. elseif HasSkill(Spawn,2200201799) then-- Disarm Traps
  157. RemoveSkill(Spawn, 2200201799)
  158. end
  159. end
  160. -- HARVESTING SKILLS --
  161. local level = GetLevel(Spawn)*5
  162. if HasSkill(Spawn, 1970131346) then -- Transmuting
  163. RemoveSkill(Spawn, 1970131346)
  164. end
  165. if not HasSkill(Spawn, 3659699625) and GetClass(Spawn)~=0 then -- Mining
  166. AddSkill(Spawn, 3659699625,1,level)
  167. end
  168. if not HasSkill(Spawn, 688591146) and GetClass(Spawn)~=0 then -- Foresting
  169. AddSkill(Spawn, 688591146,1,level)
  170. end
  171. if not HasSkill(Spawn, 1048513601) and GetClass(Spawn)~=0 then -- Gathering
  172. AddSkill(Spawn, 1048513601,1,level)
  173. end
  174. if not HasSkill(Spawn, 4158365743) and GetClass(Spawn)~=0 then -- Trapping
  175. AddSkill(Spawn, 4158365743,1,level)
  176. end
  177. if not HasSkill(Spawn, 2319450178) and GetClass(Spawn)~=0 then -- Fishing
  178. AddSkill(Spawn, 2319450178,1,level)
  179. end
  180. end
  181. function CastingSkills(NPC, Spawn)
  182. local level = GetLevel(Spawn)*5
  183. -- CASTING SKILLS --
  184. if GetClass(Spawn) == CRUSADER or
  185. GetClass (Spawn) == PALADIN or
  186. GetClass (Spawn) == SHADOWKNIGHT or
  187. GetClass (Spawn) == BARD or
  188. GetClass (Spawn) == TROUBADOR or
  189. GetClass (Spawn) == DIRGE or
  190. GetClass (Spawn) == PRIEST or
  191. GetClass (Spawn) == CLERIC or
  192. GetClass (Spawn) == TEMPLAR or
  193. GetClass (Spawn) == INQUISITOR or
  194. GetClass (Spawn) == DRUID or
  195. GetClass (Spawn) == WARDEN or
  196. GetClass (Spawn) == FURY or
  197. GetClass (Spawn) == SHAMAN or
  198. GetClass (Spawn) == MYSTIC or
  199. GetClass (Spawn) == DEFILER or
  200. GetClass (Spawn) == MAGE or
  201. GetClass (Spawn) == SORCERER or
  202. GetClass (Spawn) == WIZARD or
  203. GetClass (Spawn) == WARLOCK or
  204. GetClass (Spawn) == ENCHANTER or
  205. GetClass (Spawn) == ILLUSIONIST or
  206. GetClass (Spawn) == COERCER or
  207. GetClass (Spawn) == SUMMONER or
  208. GetClass (Spawn) == CONJUROR or
  209. GetClass (Spawn) == NECROMANCER then
  210. if not HasSkill(Spawn, 613995491) then -- Disruption
  211. AddSkill(Spawn, 613995491,1,level)
  212. SendMessage(Spawn, "You have learned the Disruption skill")
  213. end
  214. if not HasSkill(Spawn, 366253016) then -- Ministration
  215. AddSkill(Spawn, 366253016,1,level)
  216. SendMessage(Spawn, "You have learned the Ministration skill")
  217. end
  218. if not HasSkill(Spawn, 3587918036) then -- Ordination
  219. AddSkill(Spawn, 3587918036,1,level)
  220. SendMessage(Spawn, "You have learned the Ordination skill")
  221. end
  222. if not HasSkill(Spawn, 882983852) then -- Subjugation
  223. AddSkill(Spawn, 882983852,1,level)
  224. SendMessage(Spawn, "You have learned the Subjugation skill")
  225. end
  226. else
  227. if HasSkill(Spawn, 613995491) then-- Disruption
  228. RemoveSkill(Spawn, 613995491)
  229. end
  230. if HasSkill(Spawn,366253016) then-- Ministration
  231. RemoveSkill(Spawn, 366253016)
  232. end
  233. if HasSkill(Spawn,3587918036) then-- Ordination
  234. RemoveSkill(Spawn, 3587918036)
  235. end
  236. if HasSkill(Spawn,882983852) then-- Subjugation
  237. RemoveSkill(Spawn, 882983852)
  238. end
  239. end
  240. -- DAMAGE STYLE PROFICIENCY SKILLS --
  241. --CRUSHING
  242. if GetClass (Spawn) == FIGHTER or
  243. GetClass (Spawn) == WARRIOR or
  244. GetClass (Spawn) == GUARDIAN or
  245. GetClass (Spawn) == BERZERKER or
  246. GetClass (Spawn) == BRAWLER or
  247. GetClass (Spawn) == MONK or
  248. GetClass (Spawn) == BRUISER or
  249. GetClass (Spawn) == CRUSADER or
  250. GetClass (Spawn) == PALADIN or
  251. GetClass (Spawn) == SHADOWKNIGHT or
  252. GetClass (Spawn) == PRIEST or
  253. GetClass (Spawn) == CLERIC or
  254. GetClass (Spawn) == TEMPLAR or
  255. GetClass (Spawn) == INQUISITOR or
  256. GetClass (Spawn) == DRUID or
  257. GetClass (Spawn) == WARDEN or
  258. GetClass (Spawn) == FURY or
  259. GetClass (Spawn) == SHAMAN or
  260. GetClass (Spawn) == MYSTIC or
  261. GetClass (Spawn) == DEFILER or
  262. GetClass (Spawn) == MAGE or
  263. GetClass (Spawn) == SORCERER or
  264. GetClass (Spawn) == WIZARD or
  265. GetClass (Spawn) == WARLOCK or
  266. GetClass (Spawn) == ENCHANTER or
  267. GetClass (Spawn) == ILLUSIONIST or
  268. GetClass (Spawn) == COERCER or
  269. GetClass (Spawn) == SUMMONER or
  270. GetClass (Spawn) == CONJUROR or
  271. GetClass (Spawn) == NECROMANCER then
  272. if not HasSkill(Spawn, 3421494576) then -- CRUSHING
  273. AddSkill(Spawn, 3421494576,1,level)
  274. SendMessage(Spawn, "You have learned the Crushing skill")
  275. end
  276. elseif HasSkill(Spawn, 3421494576) then -- CRUSHING
  277. RemoveSkill(Spawn, 2638198038)
  278. end
  279. --SLASHING
  280. if GetClass (Spawn) == FIGHTER or
  281. GetClass (Spawn) == WARRIOR or
  282. GetClass (Spawn) == GUARDIAN or
  283. GetClass (Spawn) == BERZERKER or
  284. GetClass (Spawn) == BRAWLER or
  285. GetClass (Spawn) == MONK or
  286. GetClass (Spawn) == BRUISER or
  287. GetClass (Spawn) == CRUSADER or
  288. GetClass (Spawn) == PALADIN or
  289. GetClass (Spawn) == SHADOWKNIGHT or
  290. GetClass (Spawn) == DRUID or
  291. GetClass (Spawn) == WARDEN or
  292. GetClass (Spawn) == FURY or
  293. GetClass (Spawn) == SCOUT or
  294. GetClass (Spawn) == ROGUE or
  295. GetClass (Spawn) == SWASHBUCKLER or
  296. GetClass (Spawn) == BRIGAND or
  297. GetClass (Spawn) == BARD or
  298. GetClass (Spawn) == TROUBADOR or
  299. GetClass (Spawn) == DIRGE or
  300. GetClass (Spawn) == PREDATOR or
  301. GetClass (Spawn) == RANGER or
  302. GetClass (Spawn) == ASSASSIN then
  303. if not HasSkill(Spawn, 418532101) then -- SLASHING
  304. AddSkill(Spawn, 418532101,1,level)
  305. SendMessage(Spawn, "You have learned the Slashing skill")
  306. end
  307. elseif HasSkill(Spawn, 418532101) then -- CRUSHING
  308. RemoveSkill(Spawn, 418532101)
  309. end
  310. --PIERCING
  311. if GetClass (Spawn) == FIGHTER or
  312. GetClass (Spawn) == WARRIOR or
  313. GetClass (Spawn) == GUARDIAN or
  314. GetClass (Spawn) == BERZERKER or
  315. GetClass (Spawn) == BRAWLER or
  316. GetClass (Spawn) == MONK or
  317. GetClass (Spawn) == BRUISER or
  318. GetClass (Spawn) == SHAMAN or
  319. GetClass (Spawn) == MYSTIC or
  320. GetClass (Spawn) == DEFILER or
  321. GetClass (Spawn) == MAGE or
  322. GetClass (Spawn) == SORCERER or
  323. GetClass (Spawn) == WIZARD or
  324. GetClass (Spawn) == WARLOCK or
  325. GetClass (Spawn) == ENCHANTER or
  326. GetClass (Spawn) == ILLUSIONIST or
  327. GetClass (Spawn) == COERCER or
  328. GetClass (Spawn) == SUMMONER or
  329. GetClass (Spawn) == CONJUROR or
  330. GetClass (Spawn) == NECROMANCER or
  331. GetClass (Spawn) == SCOUT or
  332. GetClass (Spawn) == ROGUE or
  333. GetClass (Spawn) == SWASHBUCKLER or
  334. GetClass (Spawn) == BRIGAND or
  335. GetClass (Spawn) == BARD or
  336. GetClass (Spawn) == TROUBADOR or
  337. GetClass (Spawn) == DIRGE or
  338. GetClass (Spawn) == PREDATOR or
  339. GetClass (Spawn) == RANGER or
  340. GetClass (Spawn) == ASSASSIN then
  341. if not HasSkill(Spawn, 3048574950) then -- Piercing
  342. AddSkill(Spawn, 3048574950,1,level)
  343. SendMessage(Spawn, "You have learned the Piercing skill")
  344. end
  345. elseif HasSkill(Spawn, 3048574950) then -- Piercing
  346. RemoveSkill(Spawn, 3048574950)
  347. end
  348. --RANGED
  349. if GetClass (Spawn) == WARRIOR or
  350. GetClass (Spawn) == GUARDIAN or
  351. GetClass (Spawn) == BERZERKER or
  352. GetClass (Spawn) == BRAWLER or
  353. GetClass (Spawn) == MONK or
  354. GetClass (Spawn) == BRUISER or
  355. GetClass (Spawn) == SCOUT or
  356. GetClass (Spawn) == ROGUE or
  357. GetClass (Spawn) == SWASHBUCKLER or
  358. GetClass (Spawn) == BRIGAND or
  359. GetClass (Spawn) == BARD or
  360. GetClass (Spawn) == TROUBADOR or
  361. GetClass (Spawn) == DIRGE or
  362. GetClass (Spawn) == PREDATOR or
  363. GetClass (Spawn) == RANGER or
  364. GetClass (Spawn) == ASSASSIN then
  365. if not HasSkill(Spawn, 1756482397) then -- Ranged
  366. AddSkill(Spawn, 1756482397,1,level)
  367. SendMessage(Spawn, "You have learned the Ranged skill")
  368. end
  369. elseif HasSkill(Spawn, 1756482397) then -- Ranged
  370. RemoveSkill(Spawn, 1756482397)
  371. end
  372. end
  373. function GearSkills(NPC,Spawn)
  374. local level = GetLevel(Spawn)*5
  375. -- DEFENSE TYPE SKILLS --
  376. --Light Armor
  377. if GetClass (Spawn) == FIGHTER or
  378. GetClass (Spawn) == WARRIOR or
  379. GetClass (Spawn) == GUARDIAN or
  380. GetClass (Spawn) == BERZERKER or
  381. GetClass (Spawn) == BRAWLER or
  382. GetClass (Spawn) == MONK or
  383. GetClass (Spawn) == BRUISER or
  384. GetClass (Spawn) == CRUSADER or
  385. GetClass (Spawn) == PALADIN or
  386. GetClass (Spawn) == SHADOWKNIGHT or
  387. GetClass (Spawn) == PRIEST or
  388. GetClass (Spawn) == CLERIC or
  389. GetClass (Spawn) == TEMPLAR or
  390. GetClass (Spawn) == INQUISITOR or
  391. GetClass (Spawn) == DRUID or
  392. GetClass (Spawn) == WARDEN or
  393. GetClass (Spawn) == FURY or
  394. GetClass (Spawn) == SHAMAN or
  395. GetClass (Spawn) == MYSTIC or
  396. GetClass (Spawn) == DEFILER or
  397. GetClass (Spawn) == SCOUT or
  398. GetClass (Spawn) == ROGUE or
  399. GetClass (Spawn) == SWASHBUCKLER or
  400. GetClass (Spawn) == BRIGAND or
  401. GetClass (Spawn) == BARD or
  402. GetClass (Spawn) == TROUBADOR or
  403. GetClass (Spawn) == DIRGE or
  404. GetClass (Spawn) == PREDATOR or
  405. GetClass (Spawn) == RANGER or
  406. GetClass (Spawn) == ASSASSIN then
  407. if not HasSkill(Spawn, 2897193374) then -- Light Armor
  408. AddSkill(Spawn, 2897193374,1,level)
  409. SendMessage(Spawn, "You are now more proficient with Light Armor")
  410. end
  411. elseif HasSkill(Spawn, 2897193374) then -- Light Armor
  412. RemoveSkill(Spawn, 2897193374)
  413. end
  414. --Medium Armor
  415. if GetClass (Spawn) == WARRIOR or
  416. GetClass (Spawn) == GUARDIAN or
  417. GetClass (Spawn) == BERZERKER or
  418. GetClass (Spawn) == CRUSADER or
  419. GetClass (Spawn) == PALADIN or
  420. GetClass (Spawn) == SHADOWKNIGHT or
  421. GetClass (Spawn) == TEMPLAR or
  422. GetClass (Spawn) == INQUISITOR or
  423. GetClass (Spawn) == MYSTIC or
  424. GetClass (Spawn) == DEFILER or
  425. GetClass (Spawn) == SWASHBUCKLER or
  426. GetClass (Spawn) == BRIGAND or
  427. GetClass (Spawn) == TROUBADOR or
  428. GetClass (Spawn) == DIRGE or
  429. GetClass (Spawn) == RANGER or
  430. GetClass (Spawn) == ASSASSIN then
  431. if not HasSkill(Spawn, 2246237129) then -- Medium Armor
  432. AddSkill(Spawn, 2246237129,1,level)
  433. SendMessage(Spawn, "You are now more proficient with Medium Armor")
  434. end
  435. elseif HasSkill(Spawn, 2246237129) then -- Medium Armor
  436. RemoveSkill(Spawn, 2246237129)
  437. end
  438. --Heavy Armor
  439. if GetClass (Spawn) == GUARDIAN or
  440. GetClass (Spawn) == BERZERKER or
  441. GetClass (Spawn) == PALADIN or
  442. GetClass (Spawn) == SHADOWKNIGHT or
  443. GetClass (Spawn) == TEMPLAR or
  444. GetClass (Spawn) == INQUISITOR then
  445. if not HasSkill(Spawn, 241174330) then -- Heavy Armor
  446. AddSkill(Spawn, 241174330,1,level)
  447. SendMessage(Spawn, "You are now more proficient with Heavy Armor")
  448. end
  449. elseif HasSkill(Spawn, 241174330) then -- Heavy Armor
  450. RemoveSkill(Spawn, 241174330)
  451. end
  452. -- SHIELDS --
  453. --Buckler (small)
  454. if GetClass (Spawn) == FIGHTER or
  455. GetClass (Spawn) == WARRIOR or
  456. GetClass (Spawn) == GUARDIAN or
  457. GetClass (Spawn) == BERZERKER or
  458. GetClass (Spawn) == BRAWLER or
  459. GetClass (Spawn) == MONK or
  460. GetClass (Spawn) == BRUISER or
  461. GetClass (Spawn) == CRUSADER or
  462. GetClass (Spawn) == PALADIN or
  463. GetClass (Spawn) == SHADOWKNIGHT or
  464. GetClass (Spawn) == PRIEST or
  465. GetClass (Spawn) == CLERIC or
  466. GetClass (Spawn) == TEMPLAR or
  467. GetClass (Spawn) == INQUISITOR or
  468. GetClass (Spawn) == DRUID or
  469. GetClass (Spawn) == WARDEN or
  470. GetClass (Spawn) == FURY or
  471. GetClass (Spawn) == SHAMAN or
  472. GetClass (Spawn) == MYSTIC or
  473. GetClass (Spawn) == DEFILER or
  474. GetClass (Spawn) == SCOUT or
  475. GetClass (Spawn) == ROGUE or
  476. GetClass (Spawn) == SWASHBUCKLER or
  477. GetClass (Spawn) == BRIGAND or
  478. GetClass (Spawn) == BARD or
  479. GetClass (Spawn) == TROUBADOR or
  480. GetClass (Spawn) == DIRGE or
  481. GetClass (Spawn) == PREDATOR or
  482. GetClass (Spawn) == RANGER or
  483. GetClass (Spawn) == ASSASSIN then
  484. if not HasSkill(Spawn, 4037812502) then -- Buckler
  485. AddSkill(Spawn, 4037812502,1,level)
  486. SendMessage(Spawn, "You are now more proficient with Bucklers")
  487. end
  488. elseif HasSkill(Spawn, 4037812502) then -- Buckler
  489. RemoveSkill(Spawn, 4037812502)
  490. end
  491. --Round Shield (medium)
  492. if GetClass (Spawn) == FIGHTER or
  493. GetClass (Spawn) == WARRIOR or
  494. GetClass (Spawn) == GUARDIAN or
  495. GetClass (Spawn) == BERZERKER or
  496. GetClass (Spawn) == CRUSADER or
  497. GetClass (Spawn) == PALADIN or
  498. GetClass (Spawn) == SHADOWKNIGHT or
  499. GetClass (Spawn) == SCOUT or
  500. GetClass (Spawn) == ROGUE or
  501. GetClass (Spawn) == SWASHBUCKLER or
  502. GetClass (Spawn) == BRIGAND or
  503. GetClass (Spawn) == BARD or
  504. GetClass (Spawn) == TROUBADOR or
  505. GetClass (Spawn) == DIRGE or
  506. GetClass (Spawn) == PREDATOR or
  507. GetClass (Spawn) == RANGER or
  508. GetClass (Spawn) == ASSASSIN then
  509. if not HasSkill(Spawn, 3173504370) then -- Round Shield
  510. AddSkill(Spawn, 3173504370,1,level)
  511. SendMessage(Spawn, "You are now more proficient with Round Shields")
  512. end
  513. elseif HasSkill(Spawn, 3173504370) then -- Round Shield
  514. RemoveSkill(Spawn, 3173504370)
  515. end
  516. --Kite Shield (large)
  517. if GetClass (Spawn) == WARRIOR or
  518. GetClass (Spawn) == GUARDIAN or
  519. GetClass (Spawn) == BERZERKER or
  520. GetClass (Spawn) == CRUSADER or
  521. GetClass (Spawn) == PALADIN or
  522. GetClass (Spawn) == SHADOWKNIGHT then
  523. if not HasSkill(Spawn, 570458645) then -- Kite Shield
  524. AddSkill(Spawn, 570458645,1,level)
  525. SendMessage(Spawn, "You are now more proficient with Kite Shields")
  526. end
  527. elseif HasSkill(Spawn, 570458645) then -- Kite Shield
  528. RemoveSkill(Spawn, 570458645)
  529. end
  530. --Tower Shield (very large)
  531. if GetClass (Spawn) == WARRIOR or
  532. GetClass (Spawn) == GUARDIAN or
  533. GetClass (Spawn) == BERZERKER then
  534. if not HasSkill(Spawn, 570458645) then -- Tower Shield
  535. AddSkill(Spawn, 570458645,1,level)
  536. SendMessage(Spawn, "You are now more proficient with Tower Shields")
  537. end
  538. elseif HasSkill(Spawn, 570458645) then -- Tower Shield
  539. RemoveSkill(Spawn, 570458645)
  540. end
  541. --Symbols
  542. if GetClass (Spawn) == PRIEST or
  543. GetClass (Spawn) == CLERIC or
  544. GetClass (Spawn) == TEMPLAR or
  545. GetClass (Spawn) == INQUISITOR or
  546. GetClass (Spawn) == DRUID or
  547. GetClass (Spawn) == WARDEN or
  548. GetClass (Spawn) == FURY or
  549. GetClass (Spawn) == SHAMAN or
  550. GetClass (Spawn) == MYSTIC or
  551. GetClass (Spawn) == DEFILER or
  552. GetClass (Spawn) == MAGE or
  553. GetClass (Spawn) == SORCERER or
  554. GetClass (Spawn) == WIZARD or
  555. GetClass (Spawn) == WARLOCK or
  556. GetClass (Spawn) == ENCHANTER or
  557. GetClass (Spawn) == ILLUSIONIST or
  558. GetClass (Spawn) == COERCER or
  559. GetClass (Spawn) == SUMMONER or
  560. GetClass (Spawn) == CONJUROR or
  561. GetClass (Spawn) == NECROMANCER then
  562. if not HasSkill(Spawn, 545043066) then -- Symbols
  563. AddSkill(Spawn, 545043066,1,level)
  564. SendMessage(Spawn, "You are now more proficient with Symbols")
  565. end
  566. elseif HasSkill(Spawn, 545043066) then -- Symbols
  567. RemoveSkill(Spawn, 545043066)
  568. end
  569. -- WEAPON SKILLS --
  570. -- Axe (1-H axes)
  571. if GetClass (Spawn) == FIGHTER or
  572. GetClass (Spawn) == WARRIOR or
  573. GetClass (Spawn) == BERZERKER or
  574. GetClass (Spawn) == GUARDIAN or
  575. GetClass (Spawn) == SCOUT or
  576. GetClass (Spawn) == ROGUE or
  577. GetClass (Spawn) == SWASHBUCKLER or
  578. GetClass (Spawn) == BRIGAND or
  579. GetClass (Spawn) == BARD or
  580. GetClass (Spawn) == TROUBADOR or
  581. GetClass (Spawn) == DIRGE or
  582. GetClass (Spawn) == PREDATOR or
  583. GetClass (Spawn) == RANGER or
  584. GetClass (Spawn) == ASSASSIN then
  585. if not HasSkill(Spawn, 545043066) then -- Axe
  586. AddSkill(Spawn, 2476073427,1,level)
  587. SendMessage(Spawn, "You are now more proficient with Axes")
  588. end
  589. elseif HasSkill(Spawn, 2476073427) then -- Axe
  590. RemoveSkill(Spawn, 2476073427)
  591. end
  592. -- Great Axe (2-H axes)
  593. if GetClass (Spawn) == FIGHTER or
  594. GetClass (Spawn) == WARRIOR or
  595. GetClass (Spawn) == BERZERKER or
  596. GetClass (Spawn) == GUARDIAN then
  597. if not HasSkill(Spawn, 2954459351) then -- Great Axe
  598. AddSkill(Spawn, 2954459351,1,level)
  599. SendMessage(Spawn, "You are now more proficient with Great Axes")
  600. end
  601. elseif HasSkill(Spawn, 2954459351) then -- Great Axe
  602. RemoveSkill(Spawn, 2954459351)
  603. end
  604. -- Bow (short & long bows)
  605. if GetClass (Spawn) == WARRIOR or
  606. GetClass (Spawn) == BERZERKER or
  607. GetClass (Spawn) == GUARDIAN or
  608. GetClass (Spawn) == SCOUT or
  609. GetClass (Spawn) == ROGUE or
  610. GetClass (Spawn) == SWASHBUCKLER or
  611. GetClass (Spawn) == BRIGAND or
  612. GetClass (Spawn) == BARD or
  613. GetClass (Spawn) == TROUBADOR or
  614. GetClass (Spawn) == DIRGE or
  615. GetClass (Spawn) == PREDATOR or
  616. GetClass (Spawn) == RANGER or
  617. GetClass (Spawn) == ASSASSIN then
  618. if not HasSkill(Spawn, 1743366740) then -- Bow
  619. AddSkill(Spawn, 1743366740,1,level)
  620. SendMessage(Spawn, "You are now more proficient with Bows")
  621. end
  622. elseif HasSkill(Spawn, 1743366740) then -- Bow
  623. RemoveSkill(Spawn, 1743366740)
  624. end
  625. -- Dagger
  626. if GetClass (Spawn) == WARRIOR or
  627. GetClass (Spawn) == BERZERKER or
  628. GetClass (Spawn) == GUARDIAN or
  629. GetClass (Spawn) == MAGE or
  630. GetClass (Spawn) == SORCERER or
  631. GetClass (Spawn) == WIZARD or
  632. GetClass (Spawn) == WARLOCK or
  633. GetClass (Spawn) == ENCHANTER or
  634. GetClass (Spawn) == ILLUSIONIST or
  635. GetClass (Spawn) == COERCER or
  636. GetClass (Spawn) == SUMMONER or
  637. GetClass (Spawn) == CONJUROR or
  638. GetClass (Spawn) == NECROMANCER or
  639. GetClass (Spawn) == SCOUT or
  640. GetClass (Spawn) == ROGUE or
  641. GetClass (Spawn) == SWASHBUCKLER or
  642. GetClass (Spawn) == BRIGAND or
  643. GetClass (Spawn) == BARD or
  644. GetClass (Spawn) == TROUBADOR or
  645. GetClass (Spawn) == DIRGE or
  646. GetClass (Spawn) == PREDATOR or
  647. GetClass (Spawn) == RANGER or
  648. GetClass (Spawn) == ASSASSIN then
  649. if not HasSkill(Spawn, 887279616) then -- Dagger
  650. AddSkill(Spawn, 887279616,1,level)
  651. SendMessage(Spawn, "You are now more proficient with Daggers")
  652. end
  653. elseif HasSkill(Spawn, 887279616) then -- Dagger
  654. RemoveSkill(Spawn, 887279616)
  655. end
  656. -- Fists
  657. if GetClass (Spawn) == BRAWLER or
  658. GetClass (Spawn) == MONK or
  659. GetClass (Spawn) == BRUISER then
  660. if not HasSkill(Spawn, 3177806075) then -- Fists
  661. AddSkill(Spawn, 3177806075,1,level)
  662. SendMessage(Spawn, "You are now more proficient with your Fists")
  663. end
  664. elseif HasSkill(Spawn, 3177806075) then -- Fists
  665. RemoveSkill(Spawn, 3177806075)
  666. end
  667. -- Hammer (1-H hammers)
  668. if GetClass (Spawn) == FIGHTER or
  669. GetClass (Spawn) == WARRIOR or
  670. GetClass (Spawn) == GUARDIAN or
  671. GetClass (Spawn) == BERZERKER or
  672. GetClass (Spawn) == BRAWLER or
  673. GetClass (Spawn) == MONK or
  674. GetClass (Spawn) == BRUISER or
  675. GetClass (Spawn) == CRUSADER or
  676. GetClass (Spawn) == PALADIN or
  677. GetClass (Spawn) == SHADOWKNIGHT or
  678. GetClass (Spawn) == PRIEST or
  679. GetClass (Spawn) == CLERIC or
  680. GetClass (Spawn) == TEMPLAR or
  681. GetClass (Spawn) == INQUISITOR or
  682. GetClass (Spawn) == DRUID or
  683. GetClass (Spawn) == WARDEN or
  684. GetClass (Spawn) == FURY or
  685. GetClass (Spawn) == SHAMAN or
  686. GetClass (Spawn) == MYSTIC or
  687. GetClass (Spawn) == DEFILER then
  688. if not HasSkill(Spawn, 554333641) then -- Hammer
  689. AddSkill(Spawn, 554333641,1,level)
  690. SendMessage(Spawn, "You are now more proficient with Hammers")
  691. end
  692. elseif HasSkill(Spawn, 554333641) then -- Hammer
  693. RemoveSkill(Spawn, 554333641)
  694. end
  695. -- Great Hammer (2-H hammers)
  696. if GetClass (Spawn) == FIGHTER or
  697. GetClass (Spawn) == WARRIOR or
  698. GetClass (Spawn) == GUARDIAN or
  699. GetClass (Spawn) == BERZERKER or
  700. GetClass (Spawn) == BRAWLER or
  701. GetClass (Spawn) == MONK or
  702. GetClass (Spawn) == BRUISER or
  703. GetClass (Spawn) == CRUSADER or
  704. GetClass (Spawn) == PALADIN or
  705. GetClass (Spawn) == SHADOWKNIGHT or
  706. GetClass (Spawn) == PRIEST or
  707. GetClass (Spawn) == CLERIC or
  708. GetClass (Spawn) == TEMPLAR or
  709. GetClass (Spawn) == INQUISITOR or
  710. GetClass (Spawn) == DRUID or
  711. GetClass (Spawn) == WARDEN or
  712. GetClass (Spawn) == FURY or
  713. GetClass (Spawn) == SHAMAN or
  714. GetClass (Spawn) == MYSTIC or
  715. GetClass (Spawn) == DEFILER then
  716. if not HasSkill(Spawn, 1653482350) then -- Great Hammer
  717. AddSkill(Spawn, 1653482350,1,level)
  718. SendMessage(Spawn, "You are now more proficient with Great Hammers")
  719. end
  720. elseif HasSkill(Spawn, 1653482350) then -- Great Hammer
  721. RemoveSkill(Spawn, 1653482350)
  722. end
  723. -- Mace
  724. if GetClass (Spawn) == FIGHTER or
  725. GetClass (Spawn) == WARRIOR or
  726. GetClass (Spawn) == GUARDIAN or
  727. GetClass (Spawn) == BERZERKER or
  728. GetClass (Spawn) == BRAWLER or
  729. GetClass (Spawn) == MONK or
  730. GetClass (Spawn) == BRUISER or
  731. GetClass (Spawn) == CRUSADER or
  732. GetClass (Spawn) == PALADIN or
  733. GetClass (Spawn) == SHADOWKNIGHT or
  734. GetClass (Spawn) == PRIEST or
  735. GetClass (Spawn) == CLERIC or
  736. GetClass (Spawn) == TEMPLAR or
  737. GetClass (Spawn) == INQUISITOR or
  738. GetClass (Spawn) == DRUID or
  739. GetClass (Spawn) == WARDEN or
  740. GetClass (Spawn) == FURY or
  741. GetClass (Spawn) == SHAMAN or
  742. GetClass (Spawn) == MYSTIC or
  743. GetClass (Spawn) == DEFILER then
  744. if not HasSkill(Spawn, 770311065) then -- Mace
  745. AddSkill(Spawn, 770311065,1,level)
  746. SendMessage(Spawn, "You are now more proficient with Maces")
  747. end
  748. elseif HasSkill(Spawn, 770311065) then -- Mace
  749. RemoveSkill(Spawn, 770311065)
  750. end
  751. -- Rapier
  752. if GetClass (Spawn) == WARRIOR or
  753. GetClass (Spawn) == BERZERKER or
  754. GetClass (Spawn) == GUARDIAN or
  755. GetClass (Spawn) == SCOUT or
  756. GetClass (Spawn) == ROGUE or
  757. GetClass (Spawn) == SWASHBUCKLER or
  758. GetClass (Spawn) == BRIGAND or
  759. GetClass (Spawn) == BARD or
  760. GetClass (Spawn) == TROUBADOR or
  761. GetClass (Spawn) == DIRGE or
  762. GetClass (Spawn) == PREDATOR or
  763. GetClass (Spawn) == RANGER or
  764. GetClass (Spawn) == ASSASSIN then
  765. if not HasSkill(Spawn, 641561514) then -- Rapier
  766. AddSkill(Spawn, 641561514,1,level)
  767. SendMessage(Spawn, "You are now more proficient with Rapiers")
  768. end
  769. elseif HasSkill(Spawn, 641561514) then -- Rapier
  770. RemoveSkill(Spawn, 641561514)
  771. end
  772. -- Spear
  773. if GetClass (Spawn) == WARRIOR or
  774. GetClass (Spawn) == BERZERKER or
  775. GetClass (Spawn) == GUARDIAN or
  776. GetClass (Spawn) == SHAMAN or
  777. GetClass (Spawn) == MYSTIC or
  778. GetClass (Spawn) == DEFILER or
  779. GetClass (Spawn) == SCOUT or
  780. GetClass (Spawn) == ROGUE or
  781. GetClass (Spawn) == SWASHBUCKLER or
  782. GetClass (Spawn) == BRIGAND or
  783. GetClass (Spawn) == BARD or
  784. GetClass (Spawn) == TROUBADOR or
  785. GetClass (Spawn) == DIRGE or
  786. GetClass (Spawn) == PREDATOR or
  787. GetClass (Spawn) == RANGER or
  788. GetClass (Spawn) == ASSASSIN then
  789. if not HasSkill(Spawn, 1616998748) then -- Spear
  790. AddSkill(Spawn, 1616998748,1,level)
  791. SendMessage(Spawn, "You are now more proficient with Spears")
  792. end
  793. elseif HasSkill(Spawn, 1616998748) then -- Spear
  794. RemoveSkill(Spawn, 1616998748)
  795. end
  796. -- Great Spear (large polearms)
  797. if GetClass (Spawn) == WARRIOR or
  798. GetClass (Spawn) == BERZERKER or
  799. GetClass (Spawn) == GUARDIAN then
  800. if not HasSkill(Spawn, 2380184628) then -- Great Spear
  801. AddSkill(Spawn, 2380184628,1,level)
  802. SendMessage(Spawn, "You are now more proficient with Great Spears")
  803. end
  804. elseif HasSkill(Spawn, 2380184628) then -- Great Spear
  805. RemoveSkill(Spawn, 2380184628)
  806. end
  807. -- Staff (2-H staves)
  808. if GetClass (Spawn) == FIGHTER or
  809. GetClass (Spawn) == WARRIOR or
  810. GetClass (Spawn) == GUARDIAN or
  811. GetClass (Spawn) == BERZERKER or
  812. GetClass (Spawn) == BRAWLER or
  813. GetClass (Spawn) == MONK or
  814. GetClass (Spawn) == BRUISER or
  815. GetClass (Spawn) == PRIEST or
  816. GetClass (Spawn) == CLERIC or
  817. GetClass (Spawn) == TEMPLAR or
  818. GetClass (Spawn) == INQUISITOR or
  819. GetClass (Spawn) == DRUID or
  820. GetClass (Spawn) == WARDEN or
  821. GetClass (Spawn) == FURY or
  822. GetClass (Spawn) == SHAMAN or
  823. GetClass (Spawn) == MYSTIC or
  824. GetClass (Spawn) == DEFILER or
  825. GetClass (Spawn) == MAGE or
  826. GetClass (Spawn) == SORCERER or
  827. GetClass (Spawn) == WIZARD or
  828. GetClass (Spawn) == WARLOCK or
  829. GetClass (Spawn) == ENCHANTER or
  830. GetClass (Spawn) == ILLUSIONIST or
  831. GetClass (Spawn) == COERCER or
  832. GetClass (Spawn) == SUMMONER or
  833. GetClass (Spawn) == CONJUROR or
  834. GetClass (Spawn) == NECROMANCER then
  835. if not HasSkill(Spawn, 3180399725) then -- Staff
  836. AddSkill(Spawn, 3180399725,1,level)
  837. SendMessage(Spawn, "You are now more proficient with a Staff")
  838. end
  839. elseif HasSkill(Spawn, 3180399725) then -- Staff
  840. RemoveSkill(Spawn, 3180399725)
  841. end
  842. -- Sword (1-H swords)
  843. if GetClass (Spawn) == FIGHTER or
  844. GetClass (Spawn) == WARRIOR or
  845. GetClass (Spawn) == GUARDIAN or
  846. GetClass (Spawn) == BERZERKER or
  847. GetClass (Spawn) == CRUSADER or
  848. GetClass (Spawn) == PALADIN or
  849. GetClass (Spawn) == SHADOWKNIGHT or
  850. GetClass (Spawn) == DRUID or
  851. GetClass (Spawn) == WARDEN or
  852. GetClass (Spawn) == FURY or
  853. GetClass (Spawn) == SCOUT or
  854. GetClass (Spawn) == ROGUE or
  855. GetClass (Spawn) == SWASHBUCKLER or
  856. GetClass (Spawn) == BRIGAND or
  857. GetClass (Spawn) == BARD or
  858. GetClass (Spawn) == TROUBADOR or
  859. GetClass (Spawn) == DIRGE or
  860. GetClass (Spawn) == PREDATOR or
  861. GetClass (Spawn) == RANGER or
  862. GetClass (Spawn) == ASSASSIN then
  863. if not HasSkill(Spawn, 1696217328) then -- Sword
  864. AddSkill(Spawn, 1696217328,1,level)
  865. SendMessage(Spawn, "You are now more proficient with Swords")
  866. end
  867. elseif HasSkill(Spawn, 1696217328) then -- Sword
  868. RemoveSkill(Spawn, 1696217328)
  869. end
  870. -- Great Sword (2-H swords)
  871. if GetClass (Spawn) == FIGHTER or
  872. GetClass (Spawn) == WARRIOR or
  873. GetClass (Spawn) == GUARDIAN or
  874. GetClass (Spawn) == BERZERKER or
  875. GetClass (Spawn) == CRUSADER or
  876. GetClass (Spawn) == PALADIN or
  877. GetClass (Spawn) == SHADOWKNIGHT then
  878. if not HasSkill(Spawn, 2292577688) then -- Great Sword
  879. AddSkill(Spawn, 2292577688,1,level)
  880. SendMessage(Spawn, "You are now more proficient with Great Swords")
  881. end
  882. elseif HasSkill(Spawn, 2292577688) then -- Great Sword
  883. RemoveSkill(Spawn, 2292577688)
  884. end
  885. -- Thrown Weapon (knives & shuriken)
  886. if GetClass (Spawn) == WARRIOR or
  887. GetClass (Spawn) == GUARDIAN or
  888. GetClass (Spawn) == BERZERKER or
  889. GetClass (Spawn) == BRAWLER or
  890. GetClass (Spawn) == MONK or
  891. GetClass (Spawn) == BRUISER or
  892. GetClass (Spawn) == SCOUT or
  893. GetClass (Spawn) == ROGUE or
  894. GetClass (Spawn) == SWASHBUCKLER or
  895. GetClass (Spawn) == BRIGAND or
  896. GetClass (Spawn) == BARD or
  897. GetClass (Spawn) == TROUBADOR or
  898. GetClass (Spawn) == DIRGE or
  899. GetClass (Spawn) == PREDATOR or
  900. GetClass (Spawn) == RANGER or
  901. GetClass (Spawn) == ASSASSIN then
  902. if not HasSkill(Spawn, 2650425026) then -- Thrown Weapon
  903. AddSkill(Spawn, 2650425026,1,level)
  904. SendMessage(Spawn, "You are now more proficient with Thrown Weapons")
  905. end
  906. elseif HasSkill(Spawn, 2650425026) then -- Thrown Weapon
  907. RemoveSkill(Spawn, 2650425026)
  908. end
  909. end
  910. function ClassSkills(NPC, Spawn)
  911. local level = GetLevel(Spawn)*5
  912. -- FIGHTER SKILLS --
  913. -- Martial/Fighter
  914. if GetClass (Spawn) == FIGHTER or
  915. GetClass (Spawn) == WARRIOR or
  916. GetClass (Spawn) == GUARDIAN or
  917. GetClass (Spawn) == BERZERKER or
  918. GetClass (Spawn) == BRAWLER or
  919. GetClass (Spawn) == MONK or
  920. GetClass (Spawn) == BRUISER or
  921. GetClass (Spawn) == CRUSADER or
  922. GetClass (Spawn) == PALADIN or
  923. GetClass (Spawn) == SHADOWKNIGHT then
  924. if not HasSkill(Spawn, 1408356869) then -- Martial skill
  925. AddSkill(Spawn, 1408356869,1,level)
  926. SendMessage(Spawn, "You have learned the Martial skill")
  927. elseif HasSkill(Spawn,1408356869) then
  928. RemoveSkill(Spawn, 1408356869)
  929. end
  930. end
  931. -- Tactics/Warrior
  932. if GetClass (Spawn) == WARRIOR or
  933. GetClass (Spawn) == GUARDIAN or
  934. GetClass (Spawn) == BERZERKER then
  935. if not HasSkill(Spawn, 1124719197) then -- Martial skill
  936. AddSkill(Spawn, 1124719197,1,level)
  937. SendMessage(Spawn, "You have learned the Tactics skill")
  938. elseif HasSkill(Spawn,1124719197) then
  939. RemoveSkill(Spawn, 1124719197)
  940. end
  941. end
  942. -- Berserk/Berserker
  943. if GetClass (Spawn) == BERZERKER then
  944. if not HasSkill(Spawn, 433335062) then -- Berserk skill
  945. AddSkill(Spawn, 433335062,1,level)
  946. SendMessage(Spawn, "You have learned the Berserk skill")
  947. elseif HasSkill(Spawn,433335062) then
  948. RemoveSkill(Spawn, 433335062)
  949. end
  950. end
  951. -- Protection/Guardian
  952. if GetClass (Spawn) == BERZERKER then
  953. if not HasSkill(Spawn, 1209716810) then -- Protection skill
  954. AddSkill(Spawn, 1209716810,1,level)
  955. SendMessage(Spawn, "You have learned the Protection skill")
  956. elseif HasSkill(Spawn,1209716810) then
  957. RemoveSkill(Spawn, 1209716810)
  958. end
  959. end
  960. -- Brawl/Brawling
  961. if GetClass (Spawn) == BRAWLER or
  962. GetClass (Spawn) == MONK or
  963. GetClass (Spawn) == BRUISER then
  964. if not HasSkill(Spawn, 3856706740) then -- Brawl skill
  965. AddSkill(Spawn, 3856706740,1,level)
  966. SendMessage(Spawn, "You have learned the Brawl skill")
  967. elseif HasSkill(Spawn,3856706740) then
  968. RemoveSkill(Spawn, 3856706740)
  969. end
  970. end
  971. -- Tranquility/Monk
  972. if GetClass (Spawn) == MONK then
  973. if not HasSkill(Spawn, 2011726342) then -- Tranquility skill
  974. AddSkill(Spawn, 2011726342,1,level)
  975. SendMessage(Spawn, "You have learned the Tranquility skill")
  976. elseif HasSkill(Spawn,2011726342) then
  977. RemoveSkill(Spawn, 2011726342)
  978. end
  979. end
  980. -- Physicality/Bruiser
  981. if GetClass (Spawn) == BRUISER then
  982. if not HasSkill(Spawn, 3067436248) then -- Physicality skill
  983. AddSkill(Spawn, 3067436248,1,level)
  984. SendMessage(Spawn, "You have learned the Physicality skill")
  985. elseif HasSkill(Spawn,3067436248) then
  986. RemoveSkill(Spawn, 3067436248)
  987. end
  988. end
  989. -- Faith/Crusader
  990. if GetClass (Spawn) == CRUSADER or
  991. GetClass (Spawn) == PALADIN or
  992. GetClass (Spawn) == SHADOWKNIGHT then
  993. if not HasSkill(Spawn, 3809066846) then -- Faith skill
  994. AddSkill(Spawn, 3809066846,1,level)
  995. SendMessage(Spawn, "You have learned the Faith skill")
  996. elseif HasSkill(Spawn,3809066846) then
  997. RemoveSkill(Spawn, 3809066846)
  998. end
  999. end
  1000. -- Determined Faith/Paladin
  1001. if GetClass (Spawn) == PALADIN then
  1002. if not HasSkill(Spawn, 90523872) then -- Determined Faith skill
  1003. AddSkill(Spawn, 90523872,1,level)
  1004. SendMessage(Spawn, "You have learned the Determined Faith skill")
  1005. elseif HasSkill(Spawn,90523872) then
  1006. RemoveSkill(Spawn, 90523872)
  1007. end
  1008. end
  1009. -- Determined Zeal/Shadowknight
  1010. if GetClass (Spawn) == SHADOWKNIGHT then
  1011. if not HasSkill(Spawn, 2741805322) then -- Determined Zeal skill
  1012. AddSkill(Spawn, 2741805322,1,level)
  1013. SendMessage(Spawn, "You have learned the Determined Zeal skill")
  1014. elseif HasSkill(Spawn,2741805322) then
  1015. RemoveSkill(Spawn, 2741805322)
  1016. end
  1017. end
  1018. -- SCOUT SKILLS --
  1019. --Reconnaissance/Scout
  1020. if GetClass (Spawn) == SCOUT or
  1021. GetClass (Spawn) == ROGUE or
  1022. GetClass (Spawn) == SWASHBUCKLER or
  1023. GetClass (Spawn) == BRIGAND or
  1024. GetClass (Spawn) == BARD or
  1025. GetClass (Spawn) == TROUBADOR or
  1026. GetClass (Spawn) == DIRGE or
  1027. GetClass (Spawn) == PREDATOR or
  1028. GetClass (Spawn) == RANGER or
  1029. GetClass (Spawn) == ASSASSIN then
  1030. if not HasSkill(Spawn, 1921433074) then -- Reconnaissance skill
  1031. AddSkill(Spawn, 1921433074,1,level)
  1032. SendMessage(Spawn, "You have learned the Reconnaissance skill")
  1033. elseif HasSkill(Spawn,1921433074) then
  1034. RemoveSkill(Spawn, 1921433074)
  1035. end
  1036. end
  1037. -- Melodies/Bard
  1038. if GetClass (Spawn) == BARD or
  1039. GetClass (Spawn) == TROUBADOR or
  1040. GetClass (Spawn) == DIRGE then
  1041. if not HasSkill(Spawn, 1311635100) then -- Melodies skill
  1042. AddSkill(Spawn, 1311635100,1,level)
  1043. SendMessage(Spawn, "You have learned the Melodies skill")
  1044. elseif HasSkill(Spawn,1311635100) then
  1045. RemoveSkill(Spawn, 1311635100)
  1046. end
  1047. end
  1048. -- Ballads/Troubador
  1049. if GetClass (Spawn) == TROUBADOR then
  1050. if not HasSkill(Spawn, 296246391) then -- Ballads skill
  1051. AddSkill(Spawn, 296246391,1,level)
  1052. SendMessage(Spawn, "You have learned the Ballads skill")
  1053. elseif HasSkill(Spawn,296246391) then
  1054. RemoveSkill(Spawn, 296246391)
  1055. end
  1056. end
  1057. -- Dirges/Dirge
  1058. if GetClass (Spawn) == DIRGE then
  1059. if not HasSkill(Spawn, 340921594) then -- Dirges skill
  1060. AddSkill(Spawn, 340921594,1,level)
  1061. SendMessage(Spawn, "You have learned the Dirges skill")
  1062. elseif HasSkill(Spawn,340921594) then
  1063. RemoveSkill(Spawn, 340921594)
  1064. end
  1065. end
  1066. -- Skulldugery/Rogue
  1067. if GetClass (Spawn) == ROGUE or
  1068. GetClass (Spawn) == SWASHBUCKLER or
  1069. GetClass (Spawn) == BRIGAND then
  1070. if not HasSkill(Spawn, 1514256692) then -- Skulldugery skill
  1071. AddSkill(Spawn, 1514256692,1,level)
  1072. SendMessage(Spawn, "You have learned the Skulldugery skill")
  1073. elseif HasSkill(Spawn,1514256692) then
  1074. RemoveSkill(Spawn, 1514256692)
  1075. end
  1076. end
  1077. -- Swashbuckling/Swashbuckler
  1078. if GetClass (Spawn) == SWASHBUCKLER then
  1079. if not HasSkill(Spawn, 2663054519) then -- Swashbuckling skill
  1080. AddSkill(Spawn, 2663054519,1,level)
  1081. SendMessage(Spawn, "You have learned the Swashbuckling skill")
  1082. elseif HasSkill(Spawn,2663054519) then
  1083. RemoveSkill(Spawn, 2663054519)
  1084. end
  1085. end
  1086. -- Banditry/Brigand
  1087. if GetClass (Spawn) == BRIGAND then
  1088. if not HasSkill(Spawn, 1519965519) then -- Banditry skill
  1089. AddSkill(Spawn, 1519965519,1,level)
  1090. SendMessage(Spawn, "You have learned the Banditry skill")
  1091. elseif HasSkill(Spawn,1519965519) then
  1092. RemoveSkill(Spawn, 1519965519)
  1093. end
  1094. end
  1095. -- Stalking/Predator
  1096. if GetClass (Spawn) == PREDATOR or
  1097. GetClass (Spawn) == RANGER or
  1098. GetClass (Spawn) == ASSASSIN then
  1099. if not HasSkill(Spawn, 3167106577) then -- Stalking skill
  1100. AddSkill(Spawn, 3167106577,1,level)
  1101. SendMessage(Spawn, "You have learned the Stalking skill")
  1102. elseif HasSkill(Spawn,3167106577) then
  1103. RemoveSkill(Spawn, 3167106577)
  1104. end
  1105. end
  1106. -- Archery/Ranger
  1107. if GetClass (Spawn) == RANGER then
  1108. if not HasSkill(Spawn, 1400160844) then -- Archery skill
  1109. AddSkill(Spawn, 1400160844,1,level)
  1110. SendMessage(Spawn, "You have learned the Archery skill")
  1111. elseif HasSkill(Spawn,1400160844) then
  1112. RemoveSkill(Spawn, 1400160844)
  1113. end
  1114. end
  1115. -- Assassination Zeal/Assassin
  1116. if GetClass (Spawn) == ASSASSIN then
  1117. if not HasSkill(Spawn, 2711101135) then -- Assassination skill
  1118. AddSkill(Spawn, 2711101135,1,level)
  1119. SendMessage(Spawn, "You have learned the Assassination skill")
  1120. elseif HasSkill(Spawn,2711101135) then
  1121. RemoveSkill(Spawn, 2711101135)
  1122. end
  1123. end
  1124. -- MAGE SKILLS --
  1125. -- Evocations/Mage
  1126. if GetClass (Spawn) == MAGE or
  1127. GetClass (Spawn) == SORCERER or
  1128. GetClass (Spawn) == WIZARD or
  1129. GetClass (Spawn) == WARLOCK or
  1130. GetClass (Spawn) == ENCHANTER or
  1131. GetClass (Spawn) == ILLUSIONIST or
  1132. GetClass (Spawn) == COERCER or
  1133. GetClass (Spawn) == SUMMONER or
  1134. GetClass (Spawn) == CONJUROR or
  1135. GetClass (Spawn) == NECROMANCER then
  1136. if not HasSkill(Spawn, 3820670534) then -- Evocations skill
  1137. AddSkill(Spawn, 3820670534,1,level)
  1138. SendMessage(Spawn, "You have learned the Evocations skill")
  1139. elseif HasSkill(Spawn,3820670534) then
  1140. RemoveSkill(Spawn, 3820670534)
  1141. end
  1142. end
  1143. -- Sorcery/Sorcerer
  1144. if GetClass (Spawn) == SORCERER or
  1145. GetClass (Spawn) == WIZARD or
  1146. GetClass (Spawn) == WARLOCK then
  1147. if not HasSkill(Spawn, 2533124061) then -- Sorcery skill
  1148. AddSkill(Spawn, 2533124061,1,level)
  1149. SendMessage(Spawn, "You have learned the Sorcery skill")
  1150. elseif HasSkill(Spawn,2533124061) then
  1151. RemoveSkill(Spawn, 2533124061)
  1152. end
  1153. end
  1154. -- Elemental Mastery/Wizard
  1155. if GetClass (Spawn) == WIZARD then
  1156. if not HasSkill(Spawn, 2662430630) then -- Elemental Mastery skill
  1157. AddSkill(Spawn, 2662430630,1,level)
  1158. SendMessage(Spawn, "You have learned the Elemental Mastery skill")
  1159. elseif HasSkill(Spawn,2662430630) then
  1160. RemoveSkill(Spawn, 2662430630)
  1161. end
  1162. end
  1163. -- Noctivagance/Warlock
  1164. if GetClass (Spawn) == WARLOCK then
  1165. if not HasSkill(Spawn, 193411854) then -- Noctivagance skill
  1166. AddSkill(Spawn, 193411854,1,level)
  1167. SendMessage(Spawn, "You have learned the Noctivagance skill")
  1168. elseif HasSkill(Spawn,193411854) then
  1169. RemoveSkill(Spawn, 193411854)
  1170. end
  1171. end
  1172. -- Enchantments/Enchanter
  1173. if GetClass (Spawn) == ENCHANTER or
  1174. GetClass (Spawn) == ILLUSIONIST or
  1175. GetClass (Spawn) == COERCER then
  1176. if not HasSkill(Spawn, 287643040) then -- Enchantments skill
  1177. AddSkill(Spawn, 287643040,1,level)
  1178. SendMessage(Spawn, "You have learned the Enchantments skill")
  1179. elseif HasSkill(Spawn,287643040) then
  1180. RemoveSkill(Spawn, 287643040)
  1181. end
  1182. end
  1183. -- Hallucinations/Illusionist
  1184. if GetClass (Spawn) == ILLUSIONIST then
  1185. if not HasSkill(Spawn, 2898101972) then -- Hallucinations skill
  1186. AddSkill(Spawn, 2898101972,1,level)
  1187. SendMessage(Spawn, "You have learned the Hallucinations skill")
  1188. elseif HasSkill(Spawn,2898101972) then
  1189. RemoveSkill(Spawn, 2898101972)
  1190. end
  1191. end
  1192. -- Protean/Coecerer
  1193. if GetClass (Spawn) == COERCER then
  1194. if not HasSkill(Spawn, 3067436248) then -- Protean skill
  1195. AddSkill(Spawn, 3067436248,1,level)
  1196. SendMessage(Spawn, "You have learned the Protean skill")
  1197. elseif HasSkill(Spawn,3067436248) then
  1198. RemoveSkill(Spawn, 3067436248)
  1199. end
  1200. end
  1201. -- Legerdemain/Summoner
  1202. if GetClass (Spawn) == SUMMONER or
  1203. GetClass (Spawn) == CONJUROR or
  1204. GetClass (Spawn) == NECROMANCER then
  1205. if not HasSkill(Spawn, 2120065377) then -- Legerdemain skill
  1206. AddSkill(Spawn, 2120065377,1,level)
  1207. SendMessage(Spawn, "You have learned the Legerdemain skill")
  1208. elseif HasSkill(Spawn,2120065377) then
  1209. RemoveSkill(Spawn, 2120065377)
  1210. end
  1211. end
  1212. -- Conjurations/Conjuror
  1213. if GetClass (Spawn) == CONJUROR then
  1214. if not HasSkill(Spawn, 2042842194) then -- Conjurations skill
  1215. AddSkill(Spawn, 2042842194,1,level)
  1216. SendMessage(Spawn, "You have learned the Conjurations skill")
  1217. elseif HasSkill(Spawn,2042842194) then
  1218. RemoveSkill(Spawn, 2042842194)
  1219. end
  1220. end
  1221. -- Sepulchers/Necromancer
  1222. if GetClass (Spawn) == NECROMANCER then
  1223. if not HasSkill(Spawn, 289471519) then -- Sepulchers skill
  1224. AddSkill(Spawn, 289471519,1,level)
  1225. SendMessage(Spawn, "You have learned the Sepulchers skill")
  1226. elseif HasSkill(Spawn,289471519) then
  1227. RemoveSkill(Spawn, 289471519)
  1228. end
  1229. end
  1230. -- PRIEST SKILLS --
  1231. -- Inspirations/Priest
  1232. if GetClass (Spawn) == PRIEST or
  1233. GetClass (Spawn) == CLERIC or
  1234. GetClass (Spawn) == TEMPLAR or
  1235. GetClass (Spawn) == INQUISITOR or
  1236. GetClass (Spawn) == DRUID or
  1237. GetClass (Spawn) == WARDEN or
  1238. GetClass (Spawn) == FURY or
  1239. GetClass (Spawn) == SHAMAN or
  1240. GetClass (Spawn) == MYSTIC or
  1241. GetClass (Spawn) == DEFILER then
  1242. if not HasSkill(Spawn, 2463145248) then -- Inspirations skill
  1243. AddSkill(Spawn, 2463145248,1,level)
  1244. SendMessage(Spawn, "You have learned the Inspirations skill")
  1245. elseif HasSkill(Spawn,2463145248) then
  1246. RemoveSkill(Spawn, 2463145248)
  1247. end
  1248. end
  1249. -- Theurgy/Cleric
  1250. if GetClass (Spawn) == CLERIC or
  1251. GetClass (Spawn) == TEMPLAR or
  1252. GetClass (Spawn) == INQUISITOR then
  1253. if not HasSkill(Spawn, 2533124061) then -- Theurgy skill
  1254. AddSkill(Spawn, 2533124061,1,level)
  1255. SendMessage(Spawn, "You have learned the Theurgy skill")
  1256. elseif HasSkill(Spawn,2533124061) then
  1257. RemoveSkill(Spawn, 2533124061)
  1258. end
  1259. end
  1260. -- Regimens/Templar
  1261. if GetClass (Spawn) == TEMPLAR then
  1262. if not HasSkill(Spawn, 2581053277) then -- Regimens skill
  1263. AddSkill(Spawn, 2581053277,1,level)
  1264. SendMessage(Spawn, "You have learned the Regimens skill")
  1265. elseif HasSkill(Spawn,2581053277) then
  1266. RemoveSkill(Spawn, 2581053277)
  1267. end
  1268. end
  1269. -- Inquisitions/Inquisitor
  1270. if GetClass (Spawn) == INQUISITOR then
  1271. if not HasSkill(Spawn, 1829443087) then -- Inquisitions skill
  1272. AddSkill(Spawn, 1829443087,1,level)
  1273. SendMessage(Spawn, "You have learned the Inquisitions skill")
  1274. elseif HasSkill(Spawn,1829443087) then
  1275. RemoveSkill(Spawn, 1829443087)
  1276. end
  1277. end
  1278. -- Archegenesis/Druid
  1279. if GetClass (Spawn) == DRUID or
  1280. GetClass (Spawn) == WARDEN or
  1281. GetClass (Spawn) == FURY then
  1282. if not HasSkill(Spawn, 3282420779) then -- Archegenesis skill
  1283. AddSkill(Spawn, 3282420779,1,level)
  1284. SendMessage(Spawn, "You have learned the Archegenesis skill")
  1285. elseif HasSkill(Spawn,3282420779) then
  1286. RemoveSkill(Spawn, 3282420779)
  1287. end
  1288. end
  1289. -- Nature's Refuge/Warden
  1290. if GetClass (Spawn) == WARDEN then
  1291. if not HasSkill(Spawn, 1040683335) then -- Nature's Refuge skill
  1292. AddSkill(Spawn, 1040683335,1,level)
  1293. SendMessage(Spawn, "You have learned the Nature's Refuge skill")
  1294. elseif HasSkill(Spawn,1040683335) then
  1295. RemoveSkill(Spawn, 1040683335)
  1296. end
  1297. end
  1298. -- Nature's Reckoning/Fury
  1299. if GetClass (Spawn) == FURY then
  1300. if not HasSkill(Spawn, 1624274802) then -- Nature's Reckoning skill
  1301. AddSkill(Spawn, 1624274802,1,level)
  1302. SendMessage(Spawn, "You have learned the Nature's Reckoning skill")
  1303. elseif HasSkill(Spawn,1624274802) then
  1304. RemoveSkill(Spawn, 1624274802)
  1305. end
  1306. end
  1307. -- Talismans/Shaman
  1308. if GetClass (Spawn) == SHAMAN or
  1309. GetClass (Spawn) == MYSTIC or
  1310. GetClass (Spawn) == DEFILER then
  1311. if not HasSkill(Spawn, 2120065377) then -- Talismans skill
  1312. AddSkill(Spawn, 2120065377,1,level)
  1313. SendMessage(Spawn, "You have learned the Talismans skill")
  1314. elseif HasSkill(Spawn,2120065377) then
  1315. RemoveSkill(Spawn, 2120065377)
  1316. end
  1317. end
  1318. -- Fetichisms/Mystic
  1319. if GetClass (Spawn) == MYSTIC then
  1320. if not HasSkill(Spawn, 3467160477) then -- Fetichisms skill
  1321. AddSkill(Spawn, 3467160477,1,level)
  1322. SendMessage(Spawn, "You have learned the Fetichisms skill")
  1323. elseif HasSkill(Spawn,3467160477) then
  1324. RemoveSkill(Spawn, 3467160477)
  1325. end
  1326. end
  1327. -- Vehemence/Defiler
  1328. if GetClass (Spawn) == DEFILER then
  1329. if not HasSkill(Spawn, 3191839982) then -- Vehemence skill
  1330. AddSkill(Spawn, 3191839982,1,level)
  1331. SendMessage(Spawn, "You have learned the Vehemence skill")
  1332. elseif HasSkill(Spawn,3191839982) then
  1333. RemoveSkill(Spawn, 3191839982)
  1334. end
  1335. end
  1336. end
  1337. --[[
  1338. if not HasSkill(Spawn, 1852383242) then -- Dual Wield
  1339. AddSkill(Spawn, 1852383242,1,level)
  1340. SendMessage(Spawn, "You have learned the Dual Wield skill")
  1341. end]]--