SubClassToCommoner.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. --[[
  2. Script Name : SpawnScripts/Generic/SubClassToCommoner.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.11 04:09:45
  5. Script Purpose : For converting to a Commoner (naked) from a starting character's subclass. Newer clients start as subclasses.
  6. :
  7. --]]
  8. function RemoveGear(NPC,player)
  9. if HasItem(player,20903) then
  10. RemoveItem(player,20903,1)
  11. end
  12. if HasItem(player,20921) then
  13. RemoveItem(player,20921,1)
  14. end
  15. UnequipSlot(player,0)
  16. UnequipSlot(player,1)
  17. UnequipSlot(player,3)
  18. UnequipSlot(player,6)
  19. UnequipSlot(player,7)
  20. UnequipSlot(player,8)
  21. UnequipSlot(player,16)
  22. UnequipSlot(player,17)
  23. UnequipSlot(player,20)
  24. UnequipSlot(player,22)
  25. UnequipSlot(player, 23)
  26. Qeynos = GetFactionAmount(player, 11)
  27. Freeport = GetFactionAmount(player, 12)
  28. Neriak = GetFactionAmount(player, 13)
  29. Kelethin = GetFactionAmount(player, 14)
  30. Halas = GetFactionAmount(player, 16)
  31. Gorowyn = GetFactionAmount(player, 17)
  32. alignment = GetAlignment(player)
  33. if GetRace(player) == 0 or GetRace(player) == 3 or GetRace(player) == 5 or GetRace(player) == 6 or GetRace(player) == 9 or GetRace(player) == 11 or GetRace(player) == 20 then
  34. SetAlignment(player, 2)
  35. end
  36. DeleteSpellBook(player, 6)
  37. if Qeynos >0 then ChangeFaction(player, 11, -Qeynos)
  38. elseif Qeynos <0 then ChangeFaction(player, 11, (Qeynos*-1))
  39. end
  40. if Freeport >0 then ChangeFaction(player, 12, -Freeport)
  41. elseif Freeport <0 then ChangeFaction(player, 12, (Freeport*-1))
  42. end
  43. if Neriak >0 then ChangeFaction(player, 13, -Neriak)
  44. elseif Neriak <0 then ChangeFaction(player, 13, (Neriak*-1))
  45. end
  46. if Kelethin >0 then ChangeFaction(player, 14, -Kelethin)
  47. elseif Kelethin <0 then ChangeFaction(player, 14, (Kelethin*-1))
  48. end
  49. if Halas >0 then ChangeFaction(player, 16, -Halas)
  50. elseif Halas <0 then ChangeFaction(player, 16, (Halas*-1))
  51. end
  52. if Gorowyn >0 then ChangeFaction(player, 17, -Gorowyn)
  53. elseif Gorowyn <0 then ChangeFaction(player, 17, (Gorowyn*-1))
  54. end
  55. --[[
  56. Qfighters = GetFactionAmount(player,214)
  57. Qpriests = GetFactionAmount(player,155)
  58. Qscouts = GetFactionAmount(player, 243)
  59. Qmages = GetFactionAmount(player, 136)
  60. FPfighters = GetFactionAmount(player,102)
  61. FPpriests = GetFactionAmount(player,105)
  62. FPscouts = GetFactionAmount(player, 103)
  63. FPmages = GetFactionAmount(player, 104)
  64. if Qfighters >0 then ChangeFaction(player, 214, -Qfighters)
  65. else ChangeFaction(player, 214, (Qfighters*-1))
  66. end
  67. if Qpriests >0 then ChangeFaction(player, 155, -Qpriests)
  68. else ChangeFaction(player, 155, (Qpriests*-1))
  69. end
  70. if Qscouts >0 then ChangeFaction(player, 243, -Qscouts)
  71. else ChangeFaction(player, 243, (Qscouts*-1))
  72. end
  73. if Qmages >0 then ChangeFaction(player, 102, -Qmages)
  74. else ChangeFaction(player, 102, (Qmages*-1))
  75. end
  76. if FPfighters >0 then ChangeFaction(player, 16, -FPfighters)
  77. else ChangeFaction(player, 16, (FPfighters*-1))
  78. end
  79. if FPpriests >0 then ChangeFaction(player, 105, -FPpriests)
  80. else ChangeFaction(player, 105, (FPpriests*-1))
  81. end
  82. if FPscouts >0 then ChangeFaction(player, 103, -FPscouts)
  83. else ChangeFaction(player, 103, (FPscouts*-1))
  84. end
  85. if FPmages >0 then ChangeFaction(player, 104, -FPmages)
  86. else ChangeFaction(player, 104, (FPmages*-1))
  87. end
  88. ]]--
  89. AddTimer(NPC,500,"Removal",1,player)
  90. AddTimer(NPC,1000,"SkillSwitch",1,player)
  91. end
  92. function Removal(NPC,player)
  93. if HasItem(player,134899) then
  94. RemoveItem(player,134899,1)
  95. end
  96. if HasItem(player,71041) then
  97. RemoveItem(player,71041,1)
  98. end
  99. if HasItem(player,134900) then
  100. RemoveItem(player,134900,1)
  101. end
  102. if HasItem(player,134901) then
  103. RemoveItem(player,134901,1)
  104. end
  105. if HasItem(player,186964) then
  106. RemoveItem(player,186964,1)
  107. end
  108. if HasItem(player,89436) then
  109. RemoveItem(player,89436,1)
  110. end
  111. if HasItem(player,36211) then
  112. RemoveItem(player,36211,20)
  113. end
  114. if HasItem(player,144517) then
  115. RemoveItem(player,144517,1)
  116. end
  117. if HasItem(player,144516) then
  118. RemoveItem(player,144516,1)
  119. end
  120. if HasItem(player,184887) then
  121. RemoveItem(player,184887,1)
  122. end
  123. if HasItem(player,184889) then
  124. RemoveItem(player,184889,1)
  125. end
  126. if HasItem(player,184886) then
  127. RemoveItem(player,184886,1)
  128. end
  129. if HasItem(player,88905) then
  130. RemoveItem(player,88905,1)
  131. end
  132. if HasItem(player,154403) then
  133. RemoveItem(player,154403,1)
  134. end
  135. if HasItem(player,154402) then
  136. RemoveItem(player,154402,1)
  137. end
  138. if HasItem(player,154401) then
  139. RemoveItem(player,154401,1)
  140. end
  141. if HasItem(player,79258) then
  142. RemoveItem(player,79258,1)
  143. end
  144. if HasItem(player,160641) then
  145. RemoveItem(player,160641,1)
  146. end
  147. if HasItem(player,20921) then
  148. RemoveItem(player,20921,1)
  149. end
  150. if HasItem(player,160638) then
  151. RemoveItem(player,160638,1)
  152. end
  153. if HasItem(player,83260) then
  154. RemoveItem(player,83260,1)
  155. end
  156. if HasItem(player,189954) then
  157. RemoveItem(player,189954,1)
  158. end
  159. if HasItem(player,189955) then
  160. RemoveItem(player,189955,1)
  161. end
  162. if HasItem(player,189953) then
  163. RemoveItem(player,189953,1)
  164. end
  165. if HasItem(player,90087) then
  166. RemoveItem(player,90087,1)
  167. end
  168. if HasItem(player,139787) then
  169. RemoveItem(player,139787,1)
  170. end
  171. if HasItem(player,139788) then
  172. RemoveItem(player,139788,1)
  173. end
  174. if HasItem(player,139789) then
  175. RemoveItem(player,139789,1)
  176. end
  177. if HasItem(player,73251) then
  178. RemoveItem(player,73251,1)
  179. end
  180. if HasItem(player,158994) then
  181. RemoveItem(player,158994,1)
  182. end
  183. if HasItem(player,158995) then
  184. RemoveItem(player,158995,1)
  185. end
  186. if HasItem(player,158996) then
  187. RemoveItem(player,158996,1)
  188. end
  189. if HasItem(player,80159) then
  190. RemoveItem(player,80159,1)
  191. end
  192. if HasItem(player,164838) then
  193. RemoveItem(player,164838,1)
  194. end
  195. if HasItem(player,164839) then
  196. RemoveItem(player,164839,1)
  197. end
  198. if HasItem(player,164841) then
  199. RemoveItem(player,164841,1)
  200. end
  201. if HasItem(player,43203) then
  202. RemoveItem(player,43203,1)
  203. end
  204. if HasItem(player,84307) then
  205. RemoveItem(player,84307,1)
  206. end
  207. if HasItem(player,84307) then
  208. RemoveItem(player,84307,1)
  209. end
  210. if HasItem(player,20530) then
  211. RemoveItem(player,20530,1)
  212. end
  213. if HasItem(player,160639) then
  214. RemoveItem(player,160639,1)
  215. end
  216. if HasItem(player,86297) then
  217. RemoveItem(player,86297,1)
  218. end
  219. if HasItem(player,176518) then
  220. RemoveItem(player,176518,1)
  221. end
  222. if HasItem(player,176519) then
  223. RemoveItem(player,176519,1)
  224. end
  225. if HasItem(player,176520) then
  226. RemoveItem(player,176520,1)
  227. end
  228. if HasItem(player,54189) then
  229. RemoveItem(player,54189,1)
  230. end
  231. if HasItem(player,36684) then
  232. RemoveItem(player,36684,1)
  233. end
  234. if HasItem(player,157226) then
  235. RemoveItem(player,157226,1)
  236. end
  237. if HasItem(player,157229) then
  238. RemoveItem(player,157229,1)
  239. end
  240. if HasItem(player,157225) then
  241. RemoveItem(player,157225,1)
  242. end
  243. if HasItem(player,79782) then
  244. RemoveItem(player,79782,1)
  245. end
  246. if HasItem(player,52601) then
  247. RemoveItem(player,52601,1)
  248. end
  249. if HasItem(player,137308) then
  250. RemoveItem(player,137308,1)
  251. end
  252. if HasItem(player,137307) then
  253. RemoveItem(player,137307,1)
  254. end
  255. if HasItem(player,137306) then
  256. RemoveItem(player,137306,1)
  257. end
  258. if HasItem(player,40228) then
  259. RemoveItem(player,40228,1)
  260. end
  261. if HasItem(player,20538) then
  262. RemoveItem(player,20538,1)
  263. end
  264. if HasItem(player,72751) then
  265. RemoveItem(player,72751,1)
  266. end
  267. if HasItem(player,135223) then
  268. RemoveItem(player,135223,1)
  269. end
  270. if HasItem(player,135225) then
  271. RemoveItem(player,135225,1)
  272. end
  273. if HasItem(player,135227) then
  274. RemoveItem(player,135227,1)
  275. end
  276. if HasItem(player,71059) then
  277. RemoveItem(player,71059,1)
  278. end
  279. if HasItem(player,43528) then
  280. RemoveItem(player,43528,1)
  281. end
  282. if HasItem(player,20527) then
  283. RemoveItem(player,20527,1)
  284. end
  285. if HasItem(player,168902) then
  286. RemoveItem(player,168902,1)
  287. end
  288. if HasItem(player,168903) then
  289. RemoveItem(player,168903,1)
  290. end
  291. if HasItem(player,168904) then
  292. RemoveItem(player,168904,1)
  293. end
  294. if HasItem(player,85113) then
  295. RemoveItem(player,85113,1)
  296. end
  297. if HasItem(player,53700) then
  298. RemoveItem(player,53700,1)
  299. end
  300. if HasItem(player,144058) then
  301. RemoveItem(player,144058,1)
  302. end
  303. if HasItem(player,144059) then
  304. RemoveItem(player,144059,1)
  305. end
  306. if HasItem(player,144060) then
  307. RemoveItem(player,144060,1)
  308. end
  309. if HasItem(player,75400) then
  310. RemoveItem(player,75400,1)
  311. end
  312. if HasItem(player,165131) then
  313. RemoveItem(player,165131,1)
  314. end
  315. if HasItem(player,165132) then
  316. RemoveItem(player,165132,1)
  317. end
  318. if HasItem(player,165135) then
  319. RemoveItem(player,165135,1)
  320. end
  321. if HasItem(player,84347) then
  322. RemoveItem(player,84347,1)
  323. end
  324. if HasItem(player,191144) then
  325. RemoveItem(player,191144,1)
  326. end
  327. if HasItem(player,191145) then
  328. RemoveItem(player,191145,1)
  329. end
  330. if HasItem(player,191146) then
  331. RemoveItem(player,191146,1)
  332. end
  333. if HasItem(player,90320) then
  334. RemoveItem(player,90320,1)
  335. end
  336. if HasItem(player,165457) then
  337. RemoveItem(player,165457,1)
  338. end
  339. if HasItem(player,84367) then
  340. RemoveItem(player,84367,1)
  341. end
  342. if HasItem(player,189973) then
  343. RemoveItem(player,189973,1)
  344. end
  345. if HasItem(player,189974) then
  346. RemoveItem(player,189974,1)
  347. end
  348. if HasItem(player,189975) then
  349. RemoveItem(player,189975,1)
  350. end
  351. if HasItem(player,90096) then
  352. RemoveItem(player,90096,1)
  353. end
  354. if HasItem(player,140141) then
  355. RemoveItem(player,140141,1)
  356. end
  357. if HasItem(player,140142) then
  358. RemoveItem(player,140142,1)
  359. end
  360. if HasItem(player,140143) then
  361. RemoveItem(player,140143,1)
  362. end
  363. if HasItem(player,73663) then
  364. RemoveItem(player,73663,1)
  365. end
  366. if HasItem(player,183463) then
  367. RemoveItem(player,183463,1)
  368. end
  369. if HasItem(player,183464) then
  370. RemoveItem(player,183464,1)
  371. end
  372. if HasItem(player,183465) then
  373. RemoveItem(player,183465,1)
  374. end
  375. if HasItem(player,88681) then
  376. RemoveItem(player,88681,1)
  377. end
  378. if HasItem(player,43534) then
  379. RemoveItem(player,43534,1)
  380. end
  381. if HasItem(player,20535) then
  382. RemoveItem(player,20535,1)
  383. end
  384. if HasItem(player,75509) then
  385. RemoveItem(player,75509,1)
  386. end
  387. if HasItem(player,43528) then
  388. RemoveItem(player,43528,1)
  389. end
  390. if HasItem(player,43528) then
  391. RemoveItem(player,43528,1)
  392. end
  393. if HasItem(player,20527) then
  394. RemoveItem(player,20527,1)
  395. end
  396. if HasItem(player,133757) then
  397. RemoveItem(player,133757,1)
  398. end
  399. if HasItem(player,133760) then
  400. RemoveItem(player,133760,1)
  401. end
  402. if HasItem(player,133761) then
  403. RemoveItem(player,133761,1)
  404. end
  405. if HasItem(player,70875) then
  406. RemoveItem(player,70875,1)
  407. end
  408. if HasItem(player,40189) then
  409. RemoveItem(player,40189,1)
  410. end
  411. if HasItem(player,20527) then
  412. RemoveItem(player,20527,1)
  413. end
  414. if HasItem(player,47635) then
  415. RemoveItem(player,47635,1)
  416. end
  417. if HasItem(player,47836) then
  418. RemoveItem(player,47836,1)
  419. end
  420. if HasItem(player,137128) then
  421. RemoveItem(player,137128,1)
  422. end
  423. if HasItem(player,137129) then
  424. RemoveItem(player,137129,1)
  425. end
  426. if HasItem(player,137130) then
  427. RemoveItem(player,137130,1)
  428. end
  429. if HasItem(player,72648) then
  430. RemoveItem(player,72648,1)
  431. end
  432. if HasItem(player,172484) then
  433. RemoveItem(player,172484,1)
  434. end
  435. if HasItem(player,172486) then
  436. RemoveItem(player,172486,1)
  437. end
  438. if HasItem(player,172487) then
  439. RemoveItem(player,172487,1)
  440. end
  441. if HasItem(player,85697) then
  442. RemoveItem(player,85697,1)
  443. end
  444. if HasItem(player,42288) then
  445. RemoveItem(player,42288,1)
  446. end
  447. end
  448. function SkillSwitch(NPC,player)
  449. if HasSkill(player, 366253016) then --Ministration
  450. RemoveSkill(player, 366253016)
  451. end
  452. if HasSkill(player, 613995491) then -- Disruption
  453. RemoveSkill(player, 613995491)
  454. end
  455. if HasSkill(player, 882983852) then -- Subjigation
  456. RemoveSkill(player, 882983852)
  457. end
  458. if HasSkill(player, 3587918036) then -- Ordination
  459. RemoveSkill(player, 3587918036)
  460. end
  461. if HasSkill(player, 2638198038) then -- Focus
  462. RemoveSkill(player, 2638198038)
  463. end
  464. if HasSkill(player, 723762198) then -- Aggression
  465. RemoveSkill(player, 723762198)
  466. end
  467. if HasSkill(player, 540022425) then -- Parry
  468. RemoveSkill(player, 540022425)
  469. end
  470. if HasSkill(player, 1852383242) then -- Dual Wield
  471. RemoveSkill(player, 1852383242)
  472. end
  473. if HasSkill(player, 3421494576) then -- Crushing
  474. RemoveSkill(player, 3421494576)
  475. end
  476. if HasSkill(player, 1756482397) then -- Ranged
  477. RemoveSkill(player, 1756482397)
  478. end
  479. if HasSkill(player, 3048574950) then -- Piercing
  480. RemoveSkill(player, 3048574950)
  481. end
  482. if HasSkill(player, 418532101) then -- Slashing
  483. RemoveSkill(player, 418532101)
  484. end
  485. if HasSkill(player, 1553857724) then -- Investigation
  486. RemoveSkill(player, 1553857724)
  487. end
  488. --Fighter
  489. if HasSkill(player, 1408356869) then -- Martial/Fighter
  490. RemoveSkill(player, 1408356869)
  491. end
  492. if HasSkill(player, 1124719197) then -- Tactics/Warrior
  493. RemoveSkill(player, 1124719197)
  494. end
  495. if HasSkill(player, 433335062) then -- Berserk/Berserker
  496. RemoveSkill(player, 433335062)
  497. end
  498. if HasSkill(player, 1209716810) then -- Protection/Guardian
  499. RemoveSkill(player, 1209716810)
  500. end
  501. if HasSkill(player, 3856706740) then -- Brawl/Brawling
  502. RemoveSkill(player, 3856706740)
  503. end
  504. if HasSkill(player, 2011726342) then -- Tranquility/Monk
  505. RemoveSkill(player, 2011726342)
  506. end
  507. if HasSkill(player, 3067436248) then -- Physicality/Bruiser
  508. RemoveSkill(player, 3067436248)
  509. end
  510. if HasSkill(player, 3809066846) then -- Faith/Crusader
  511. RemoveSkill(player, 3809066846)
  512. end
  513. if HasSkill(player, 90523872) then -- Determined Faith/Paladin
  514. RemoveSkill(player, 90523872)
  515. end
  516. if HasSkill(player, 2741805322) then -- Determined Zeal/Shadowknight
  517. RemoveSkill(player, 2741805322)
  518. end
  519. --Scout
  520. if HasSkill(player, 1921433074) then -- Reconnaissance/Scout
  521. RemoveSkill(player, 1921433074)
  522. end
  523. if HasSkill(player, 1311635100) then -- Melodies/Bard
  524. RemoveSkill(player, 1311635100)
  525. end
  526. if HasSkill(player, 296246391) then -- Ballads/Troubador
  527. RemoveSkill(player, 296246391)
  528. end
  529. if HasSkill(player, 340921594) then -- Dirges/Dirge
  530. RemoveSkill(player, 340921594)
  531. end
  532. if HasSkill(player, 1514256692) then -- Skulldugery/Rogue
  533. RemoveSkill(player, 1514256692)
  534. end
  535. if HasSkill(player, 2663054519) then -- Swashbuckling/Swashbuckler
  536. RemoveSkill(player, 2663054519)
  537. end
  538. if HasSkill(player, 1519965519) then -- Banditry/Brigand
  539. RemoveSkill(player, 1519965519)
  540. end
  541. if HasSkill(player, 3167106577) then -- Stalking/Predator
  542. RemoveSkill(player, 3167106577)
  543. end
  544. if HasSkill(player, 1400160844) then -- Archery/Ranger
  545. RemoveSkill(player, 1400160844)
  546. end
  547. if HasSkill(player, 2711101135) then -- Assassination/Assassin
  548. RemoveSkill(player, 2711101135)
  549. end
  550. --Priest
  551. if HasSkill(player, 2463145248) then -- Inspirations/Priest
  552. RemoveSkill(player, 2463145248)
  553. end
  554. if HasSkill(player, 3341842907) then -- Theurgy/Cleric
  555. RemoveSkill(player, 3341842907)
  556. end
  557. if HasSkill(player, 2581053277) then -- Regimens/Templar
  558. RemoveSkill(player, 2581053277)
  559. end
  560. if HasSkill(player, 1829443087) then -- Inquisitions/Inquisitor
  561. RemoveSkill(player, 1829443087)
  562. end
  563. if HasSkill(player, 3282420779) then -- Archegenesis/Druid
  564. RemoveSkill(player, 3282420779)
  565. end
  566. if HasSkill(player, 1624274802) then -- Nature's Reckoning/Fury
  567. RemoveSkill(player, 1624274802)
  568. end
  569. if HasSkill(player, 1040683335) then -- Nature's Refuge/Warden
  570. RemoveSkill(player, 1040683335)
  571. end
  572. if HasSkill(player, 3343700951) then -- Talismans/Shaman
  573. RemoveSkill(player, 3343700951)
  574. end
  575. if HasSkill(player, 3467160477) then -- Fetichisms/Mystic
  576. RemoveSkill(player, 3467160477)
  577. end
  578. if HasSkill(player, 3191839982) then -- Vehemence/Defiler
  579. RemoveSkill(player, 3191839982)
  580. end
  581. --Mage
  582. if HasSkill(player, 3820670534) then -- Evocations/Mage
  583. RemoveSkill(player, 3820670534)
  584. end
  585. if HasSkill(player, 287643040) then -- Enchantments/Enchanter
  586. RemoveSkill(player, 287643040)
  587. end
  588. if HasSkill(player, 2898101972) then -- Hallucinations/Illusionist
  589. RemoveSkill(player, 2898101972)
  590. end
  591. if HasSkill(player, 2950599749) then -- Protean/Coecerer
  592. RemoveSkill(player, 2950599749)
  593. end
  594. if HasSkill(player, 2533124061) then -- Sorcery/Sorcerer
  595. RemoveSkill(player, 2533124061)
  596. end
  597. if HasSkill(player, 2662430630) then -- Elemental Mastery/Wizard
  598. RemoveSkill(player, 2662430630)
  599. end
  600. if HasSkill(player, 193411854) then -- Noctivagance/Warlock
  601. RemoveSkill(player, 193411854)
  602. end
  603. if HasSkill(player, 2120065377) then -- Legerdemain/Summoner
  604. RemoveSkill(player, 2120065377)
  605. end
  606. if HasSkill(player, 2042842194) then -- Conjurations/Conjurer
  607. RemoveSkill(player, 2042842194)
  608. end
  609. if HasSkill(player, 289471519) then -- Sepulchers/Necromancer
  610. RemoveSkill(player, 289471519)
  611. end
  612. if HasSkill(player, 887279616) then -- Dagger
  613. RemoveSkill(player, 887279616)
  614. end
  615. if HasSkill(player, 1696217328) then -- Sword
  616. RemoveSkill(player, 1696217328)
  617. end
  618. if HasSkill(player, 2476073427) then -- Axe
  619. RemoveSkill(player, 2476073427)
  620. end
  621. if HasSkill(player, 2954459351) then -- Great Axe
  622. RemoveSkill(player, 2954459351)
  623. end
  624. if HasSkill(player, 2292577688) then -- Great Sword
  625. RemoveSkill(player, 2292577688)
  626. end
  627. if HasSkill(player, 1653482350) then -- Great Hammer
  628. RemoveSkill(player, 1653482350)
  629. end
  630. if HasSkill(player, 1653482350) then -- Great Spear
  631. RemoveSkill(player, 1653482350)
  632. end
  633. if HasSkill(player, 1616998748) then -- Spear
  634. RemoveSkill(player, 1616998748)
  635. end
  636. if HasSkill(player, 554333641) then -- Hammer
  637. RemoveSkill(player, 554333641)
  638. end
  639. if HasSkill(player, 1743366740) then -- Bow
  640. RemoveSkill(player, 1743366740)
  641. end
  642. if HasSkill(player, 2650425026) then -- Thrown Weapon
  643. RemoveSkill(player, 2650425026)
  644. end
  645. if HasSkill(player, 4037812502) then -- Buckler
  646. RemoveSkill(player, 4037812502)
  647. end
  648. if HasSkill(player, 3173504370) then -- Roundshield
  649. RemoveSkill(player, 3173504370)
  650. end
  651. if HasSkill(player, 2608320658) then -- Kite Shield
  652. RemoveSkill(player, 2608320658)
  653. end
  654. if HasSkill(player, 570458645) then -- Tower Shield
  655. RemoveSkill(player, 570458645)
  656. end
  657. if HasSkill(player, 609880714) then -- Defense
  658. RemoveSkill(player, 609880714)
  659. end
  660. if HasSkill(player, 540022425) then -- Parry
  661. RemoveSkill(player, 540022425)
  662. end
  663. if HasSkill(player, 2897193374) then -- Light Armor
  664. RemoveSkill(player, 2897193374)
  665. end
  666. if HasSkill(player, 2246237129) then -- Medium Armor
  667. RemoveSkill(player, 2246237129)
  668. end
  669. if HasSkill(player, 241174330) then -- Heavy Armor
  670. RemoveSkill(player, 241174330)
  671. end
  672. if HasSkill(player, 3659699625) then -- Mining
  673. RemoveSkill(player, 3659699625)
  674. end
  675. if HasSkill(player, 688591146) then -- Foresting
  676. RemoveSkill(player, 688591146)
  677. end
  678. if HasSkill(player, 1048513601) then -- Gathering
  679. RemoveSkill(player, 1048513601)
  680. end
  681. if HasSkill(player, 4158365743) then -- Trapping
  682. RemoveSkill(player, 4158365743)
  683. end
  684. if HasSkill(player, 2319450178) then -- Fishing
  685. RemoveSkill(player, 2319450178)
  686. end
  687. if HasSkill(player, 1970131346) then -- Transmuting
  688. RemoveSkill(player, 1970131346)
  689. end
  690. if HasSkill(player, 3429135390) then -- Mystical Destruction
  691. RemoveSkill(player, 3429135390)
  692. end
  693. --COMMONER GAINED SKILLS
  694. if not HasSkill(player, 2072844078) then -- Magic Affinity
  695. AddSkill(player, 2072844078,1,5)
  696. end
  697. if not HasSkill(player, 3539032716) then -- Very Light Armor
  698. AddSkill(player, 3539032716,1,5)
  699. end
  700. if not HasSkill(player, 2383540775) then -- Spell Avoidance
  701. AddSkill(player, 2383540775,30,30)
  702. end
  703. if not HasSkill(player, 609880714) then -- Defense
  704. AddSkill(player, 609880714,30,30)
  705. end
  706. end