Advertisement
Guest User

Untitled

a guest
Feb 16th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.20 KB | None | 0 0
  1. local keywordHandler = KeywordHandler:new()
  2. local npcHandler = NpcHandler:new(keywordHandler)
  3. NpcSystem.parseParameters(npcHandler)
  4.  
  5. function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
  6. function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
  7. function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
  8. function onThink() npcHandler:onThink() end
  9.  
  10. -- Storage IDs --
  11. citizen = 22001
  12. hunter = 22003
  13. mage = 22005
  14. knight = 22007
  15. nobleman = 22009
  16. summoner = 22011
  17. warrior = 22013
  18. barbarian = 22015
  19. druid = 22017
  20. wizard = 22019
  21. oriental = 22021
  22. pirate = 22023
  23. assassin = 22025
  24. beggar = 22027
  25. shaman = 22029
  26. norseman = 22031
  27. nightmare = 22033
  28. jester = 22035
  29. brotherhood = 22037
  30. yalaharian = 22039
  31.  
  32.  
  33. newaddon = 'Here you are, enjoy your brand new addon!'
  34. noitems = 'You do not have all the required items.'
  35. noitems2 = 'You do not have all the required items or you do not have the first addon, which by the way, is a requirement for this addon.'
  36. already = 'It seems you already have this addon, don\'t you try to mock me son!'
  37.  
  38. -- CITIZEN START --
  39. function CitizenFirst(cid, message, keywords, parameters, node)
  40.  
  41. if(not npcHandler:isFocused(cid)) then
  42. return false
  43. end
  44.  
  45. if isPremium(cid) then
  46. addon = getPlayerStorageValue(cid,citizen)
  47. if addon == -1 then
  48. if getPlayerItemCount(cid,5878) >= 100 then
  49. if doPlayerRemoveItem(cid,5878,100) then
  50. selfSay(newaddon, cid)
  51.  
  52. doSendMagicEffect(getCreaturePosition(cid), 13)
  53. doPlayerAddOutfit(cid, 128, 1)
  54. doPlayerAddOutfit(cid, 136, 1)
  55. setPlayerStorageValue(cid,citizen,1)
  56. end
  57. else
  58. selfSay(noitems, cid)
  59. end
  60. else
  61. selfSay(already, cid)
  62. end
  63. end
  64.  
  65. end
  66.  
  67. function CitizenSecond(cid, message, keywords, parameters, node)
  68.  
  69. if(not npcHandler:isFocused(cid)) then
  70. return false
  71. end
  72.  
  73. if isPremium(cid) then
  74. addon = getPlayerStorageValue(cid,citizen+1)
  75. if addon == -1 then
  76. if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
  77. if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) then
  78. selfSay(newaddon, cid)
  79.  
  80. doSendMagicEffect(getCreaturePosition(cid), 13)
  81. doPlayerAddOutfit(cid, 128, 2)
  82. doPlayerAddOutfit(cid, 136, 2)
  83. setPlayerStorageValue(cid,citizen+1,1)
  84. end
  85. else
  86. selfSay(noitems, cid)
  87. end
  88. else
  89. selfSay(already, cid)
  90. end
  91. end
  92.  
  93. end
  94. -- CITIZEN END --
  95.  
  96. -- HUNTER START --
  97. function HunterFirst(cid, message, keywords, parameters, node)
  98.  
  99. if(not npcHandler:isFocused(cid)) then
  100. return false
  101. end
  102.  
  103. if isPremium(cid) then
  104. addon = getPlayerStorageValue(cid,hunter)
  105. if addon == -1 then
  106. if getPlayerItemCount(cid,5947) >= 1 and getPlayerItemCount(cid,5876) >= 100 and getPlayerItemCount(cid,5948) >= 100 and getPlayerItemCount(cid,5891) >= 5 and getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5888) >= 1 and getPlayerItemCount(cid,5889) >= 1 then
  107. if doPlayerRemoveItem(cid,5947,1) and doPlayerRemoveItem(cid,5876,100) and doPlayerRemoveItem(cid,5948,100) and doPlayerRemoveItem(cid,5891,5) and doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5888,1) and doPlayerRemoveItem(cid,5889,1) then
  108. selfSay(newaddon, cid)
  109.  
  110. doSendMagicEffect(getCreaturePosition(cid), 13)
  111. doPlayerAddOutfit(cid, 129, 1)
  112. doPlayerAddOutfit(cid, 137, 1)
  113. setPlayerStorageValue(cid,hunter,1)
  114. end
  115. else
  116. selfSay(noitems, cid)
  117. end
  118. else
  119. selfSay(already, cid)
  120. end
  121. end
  122.  
  123. end
  124.  
  125. function HunterSecond(cid, message, keywords, parameters, node)
  126.  
  127. if(not npcHandler:isFocused(cid)) then
  128. return false
  129. end
  130.  
  131. if isPremium(cid) then
  132. addon = getPlayerStorageValue(cid,hunter+1)
  133. if addon == -1 then
  134. if getPlayerItemCount(cid,5875) >= 1 then
  135. if doPlayerRemoveItem(cid,5875,1) then
  136. selfSay(newaddon, cid)
  137.  
  138. doSendMagicEffect(getCreaturePosition(cid), 13)
  139. doPlayerAddOutfit(cid, 129, 2)
  140. doPlayerAddOutfit(cid, 137, 2)
  141. setPlayerStorageValue(cid,hunter+1,1)
  142. end
  143. else
  144. selfSay(noitems, cid)
  145. end
  146. else
  147. selfSay(already, cid)
  148. end
  149. end
  150.  
  151. end
  152. -- HUNTER END --
  153.  
  154. -- MAGE START --
  155. function MageFirst(cid, message, keywords, parameters, node)
  156.  
  157. if(not npcHandler:isFocused(cid)) then
  158. return false
  159. end
  160.  
  161. if isPremium(cid) then
  162. addon = getPlayerStorageValue(cid,mage)
  163. if addon == -1 then
  164. if getPlayerSex(cid) == 0 then
  165. if getPlayerItemCount(cid,5958) >= 1 then
  166. if doPlayerRemoveItem(cid,5958,1) then
  167. selfSay(newaddon, cid)
  168.  
  169. doSendMagicEffect(getCreaturePosition(cid), 13)
  170. doPlayerAddOutfit(cid, 138, 1)
  171. doPlayerAddOutfit(cid, 130, 1)
  172. setPlayerStorageValue(cid,mage,1)
  173. end
  174. else
  175. selfSay(noitems, cid)
  176. end
  177. elseif getPlayerSex(cid) == 1 then
  178. if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then
  179. if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then
  180. selfSay(newaddon, cid)
  181.  
  182. doSendMagicEffect(getCreaturePosition(cid), 13)
  183. doPlayerAddOutfit(cid, 130, 1)
  184. doPlayerAddOutfit(cid, 138, 1)
  185. setPlayerStorageValue(cid,mage,1)
  186. end
  187. else
  188. selfSay(noitems, cid)
  189. end
  190. end
  191. else
  192. selfSay(already, cid)
  193. end
  194. end
  195.  
  196. end
  197.  
  198. function MageSecond(cid, message, keywords, parameters, node)
  199.  
  200. if(not npcHandler:isFocused(cid)) then
  201. return false
  202. end
  203.  
  204. if isPremium(cid) then
  205. addon = getPlayerStorageValue(cid,mage+1)
  206. if addon == -1 then
  207. if getPlayerSex(cid) == 0 then
  208. if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then
  209. if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then
  210. selfSay(newaddon, cid)
  211.  
  212. doSendMagicEffect(getCreaturePosition(cid), 13)
  213. doPlayerAddOutfit(cid, 138, 2)
  214. doPlayerAddOutfit(cid, 130, 2)
  215. setPlayerStorageValue(cid,mage+1,1)
  216. end
  217. else
  218. selfSay(noitems, cid)
  219. end
  220. elseif getPlayerSex(cid) == 1 then
  221. if getPlayerItemCount(cid,5903) >= 1 then
  222. if doPlayerRemoveItem(cid,5903,1) then
  223. selfSay(newaddon, cid)
  224.  
  225. doSendMagicEffect(getCreaturePosition(cid), 13)
  226. doPlayerAddOutfit(cid, 130, 2)
  227. doPlayerAddOutfit(cid, 138, 2)
  228. setPlayerStorageValue(cid,mage+1,1)
  229. end
  230. else
  231. selfSay(noitems, cid)
  232. end
  233. end
  234. else
  235. selfSay(already, cid)
  236. end
  237. end
  238.  
  239. end
  240. -- MAGE END --
  241.  
  242. -- KNIGHT START --
  243. function KnightFirst(cid, message, keywords, parameters, node)
  244.  
  245. if(not npcHandler:isFocused(cid)) then
  246. return false
  247. end
  248.  
  249. if isPremium(cid) then
  250. addon = getPlayerStorageValue(cid,knight)
  251. if addon == -1 then
  252. if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
  253. if doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5880,100) then
  254. selfSay(newaddon, cid)
  255.  
  256. doSendMagicEffect(getCreaturePosition(cid), 13)
  257. doPlayerAddOutfit(cid, 131, 1)
  258. doPlayerAddOutfit(cid, 139, 1)
  259. setPlayerStorageValue(cid,knight,1)
  260. end
  261. else
  262. selfSay(noitems, cid)
  263. end
  264. else
  265. selfSay(already, cid)
  266. end
  267. end
  268.  
  269. end
  270.  
  271. function KnightSecond(cid, message, keywords, parameters, node)
  272.  
  273. if(not npcHandler:isFocused(cid)) then
  274. return false
  275. end
  276.  
  277. if isPremium(cid) then
  278. addon = getPlayerStorageValue(cid,knight+1)
  279. if addon == -1 then
  280. if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
  281. if doPlayerRemoveItem(cid,5893,100) and doPlayerRemoveItem(cid,5924,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5887,1) then
  282. selfSay(newaddon, cid)
  283.  
  284. doSendMagicEffect(getCreaturePosition(cid), 13)
  285. doPlayerAddOutfit(cid, 131, 2)
  286. doPlayerAddOutfit(cid, 139, 2)
  287. setPlayerStorageValue(cid,knight+1,1)
  288. end
  289. else
  290. selfSay(noitems, cid)
  291. end
  292. else
  293. selfSay(already, cid)
  294. end
  295. end
  296.  
  297. end
  298. -- KNIGHT END --
  299.  
  300. -- NOBLEMAN START --
  301. function NoblemanFirst(cid, message, keywords, parameters, node)
  302.  
  303. if(not npcHandler:isFocused(cid)) then
  304. return false
  305. end
  306.  
  307. local player_gold = getPlayerItemCount(cid,2148)
  308. local player_plat = getPlayerItemCount(cid,2152)*100
  309. local player_crys = getPlayerItemCount(cid,2160)*10000
  310. local player_money = player_gold + player_plat + player_crys
  311.  
  312. if isPremium(cid) then
  313. addon = getPlayerStorageValue(cid,nobleman)
  314. if addon == -1 then
  315. if player_money >= 150000 then
  316. if doPlayerRemoveMoney(cid,150000) then
  317. selfSay(newaddon, cid)
  318.  
  319. doSendMagicEffect(getCreaturePosition(cid), 13)
  320. doPlayerAddOutfit(cid, 132, 1)
  321. doPlayerAddOutfit(cid, 140, 1)
  322. setPlayerStorageValue(cid,nobleman,1)
  323. end
  324. else
  325. selfSay(noitems, cid)
  326. end
  327. else
  328. selfSay(already, cid)
  329. end
  330. end
  331.  
  332. end
  333.  
  334. function NoblemanSecond(cid, message, keywords, parameters, node)
  335.  
  336. if(not npcHandler:isFocused(cid)) then
  337. return false
  338. end
  339.  
  340. local player_gold = getPlayerItemCount(cid,2148)
  341. local player_plat = getPlayerItemCount(cid,2152)*100
  342. local player_crys = getPlayerItemCount(cid,2160)*10000
  343. local player_money = player_gold + player_plat + player_crys
  344.  
  345. if isPremium(cid) then
  346. addon = getPlayerStorageValue(cid,nobleman+1)
  347. if addon == -1 then
  348. if player_money >= 150000 then
  349. if doPlayerRemoveMoney(cid,150000) then
  350. selfSay(newaddon, cid)
  351.  
  352. doSendMagicEffect(getCreaturePosition(cid), 13)
  353. doPlayerAddOutfit(cid, 132, 2)
  354. doPlayerAddOutfit(cid, 140, 2)
  355. setPlayerStorageValue(cid,nobleman+1,1)
  356. end
  357. else
  358. selfSay(noitems, cid)
  359. end
  360. else
  361. selfSay(already, cid)
  362. end
  363. end
  364.  
  365. end
  366. -- NOBLEMAN END --
  367.  
  368. -- SUMMONER START --
  369. function SummonerFirst(cid, message, keywords, parameters, node)
  370.  
  371. if(not npcHandler:isFocused(cid)) then
  372. return false
  373. end
  374.  
  375. if isPremium(cid) then
  376. addon = getPlayerStorageValue(cid,summoner)
  377. if addon == -1 then
  378. if getPlayerSex(cid) == 1 then
  379. if getPlayerItemCount(cid,5958) >= 1 then
  380. if doPlayerRemoveItem(cid,5958,1) then
  381. selfSay(newaddon, cid)
  382.  
  383. doSendMagicEffect(getCreaturePosition(cid), 13)
  384. doPlayerAddOutfit(cid, 133, 1)
  385. doPlayerAddOutfit(cid, 141, 1)
  386. setPlayerStorageValue(cid,summoner,1)
  387. end
  388. else
  389. selfSay(noitems, cid)
  390. end
  391. elseif getPlayerSex(cid) == 0 then
  392. if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then
  393. if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then
  394. selfSay(newaddon, cid)
  395.  
  396. doSendMagicEffect(getCreaturePosition(cid), 13)
  397. doPlayerAddOutfit(cid, 133, 1)
  398. doPlayerAddOutfit(cid, 141, 1)
  399. setPlayerStorageValue(cid,summoner,1)
  400. end
  401. else
  402. selfSay(noitems, cid)
  403. end
  404. end
  405. else
  406. selfSay(already, cid)
  407. end
  408. end
  409.  
  410. end
  411.  
  412. function SummonerSecond(cid, message, keywords, parameters, node)
  413.  
  414. if(not npcHandler:isFocused(cid)) then
  415. return false
  416. end
  417.  
  418. if isPremium(cid) then
  419. addon = getPlayerStorageValue(cid,summoner+1)
  420. if addon == -1 then
  421. if getPlayerSex(cid) == 1 then
  422. if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then
  423. if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then
  424. selfSay(newaddon, cid)
  425.  
  426. doSendMagicEffect(getCreaturePosition(cid), 13)
  427. doPlayerAddOutfit(cid, 133, 2)
  428. doPlayerAddOutfit(cid, 141, 2)
  429. setPlayerStorageValue(cid,summoner+1,1)
  430. end
  431. else
  432. selfSay(noitems, cid)
  433. end
  434. elseif getPlayerSex(cid) == 0 then
  435. if getPlayerItemCount(cid,5903) >= 1 then
  436. if doPlayerRemoveItem(cid,5903,1) then
  437. selfSay(newaddon, cid)
  438.  
  439. doSendMagicEffect(getCreaturePosition(cid), 13)
  440. doPlayerAddOutfit(cid, 133, 2)
  441. doPlayerAddOutfit(cid, 141, 2)
  442. setPlayerStorageValue(cid,summoner+1,1)
  443. end
  444. else
  445. selfSay(noitems, cid)
  446. end
  447. end
  448. else
  449. selfSay(already, cid)
  450. end
  451. end
  452.  
  453. end
  454. -- SUMMONER END --
  455.  
  456. -- WARRIOR START --
  457. function WarriorFirst(cid, message, keywords, parameters, node)
  458.  
  459. if(not npcHandler:isFocused(cid)) then
  460. return false
  461. end
  462.  
  463. if isPremium(cid) then
  464. addon = getPlayerStorageValue(cid,warrior)
  465. if addon == -1 then
  466. if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
  467. if doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5919,1) then
  468. selfSay(newaddon, cid)
  469.  
  470. doSendMagicEffect(getCreaturePosition(cid), 13)
  471. doPlayerAddOutfit(cid, 134, 1)
  472. doPlayerAddOutfit(cid, 142, 1)
  473. setPlayerStorageValue(cid,warrior,1)
  474. end
  475. else
  476. selfSay(noitems, cid)
  477. end
  478. else
  479. selfSay(already, cid)
  480. end
  481. end
  482.  
  483. end
  484.  
  485. function WarriorSecond(cid, message, keywords, parameters, node)
  486.  
  487. if(not npcHandler:isFocused(cid)) then
  488. return false
  489. end
  490.  
  491. if isPremium(cid) then
  492. addon = getPlayerStorageValue(cid,warrior+1)
  493. if addon == -1 then
  494. if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
  495. if doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5880,100) then
  496. selfSay(newaddon, cid)
  497.  
  498. doSendMagicEffect(getCreaturePosition(cid), 13)
  499. doPlayerAddOutfit(cid, 134, 2)
  500. doPlayerAddOutfit(cid, 142, 2)
  501. setPlayerStorageValue(cid,warrior+1,1)
  502. end
  503. else
  504. selfSay(noitems, cid)
  505. end
  506. else
  507. selfSay(already, cid)
  508. end
  509. end
  510.  
  511. end
  512. -- WARRIOR END --
  513.  
  514. -- BARBARIAN START --
  515. function BarbarianFirst(cid, message, keywords, parameters, node)
  516.  
  517. if(not npcHandler:isFocused(cid)) then
  518. return false
  519. end
  520.  
  521. if isPremium(cid) then
  522. addon = getPlayerStorageValue(cid,barbarian)
  523. if addon == -1 then
  524. if getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5886) >= 10 then
  525. if doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5886,10) then
  526. selfSay(newaddon, cid)
  527.  
  528. doSendMagicEffect(getCreaturePosition(cid), 13)
  529. doPlayerAddOutfit(cid, 143, 1)
  530. doPlayerAddOutfit(cid, 147, 1)
  531. setPlayerStorageValue(cid,barbarian,1)
  532. end
  533. else
  534. selfSay(noitems, cid)
  535. end
  536. else
  537. selfSay(already, cid)
  538. end
  539. end
  540.  
  541. end
  542.  
  543. function BarbarianSecond(cid, message, keywords, parameters, node)
  544.  
  545. if(not npcHandler:isFocused(cid)) then
  546. return false
  547. end
  548.  
  549. if isPremium(cid) then
  550. addon = getPlayerStorageValue(cid,barbarian+1)
  551. if addon == -1 then
  552. if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 and getPlayerStorageValue(cid,barbarian) then
  553. if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5876,50) then
  554. selfSay(newaddon, cid)
  555.  
  556. doSendMagicEffect(getCreaturePosition(cid), 13)
  557. doPlayerAddOutfit(cid, 143, 2)
  558. doPlayerAddOutfit(cid, 147, 2)
  559. setPlayerStorageValue(cid,barbarian+1,1)
  560. end
  561. else
  562. selfSay(noitems, cid)
  563. end
  564. else
  565. selfSay(already, cid)
  566. end
  567. end
  568.  
  569. end
  570. -- BARBARIAN END --
  571.  
  572. -- DRUID START --
  573. function DruidFirst(cid, message, keywords, parameters, node)
  574.  
  575. if(not npcHandler:isFocused(cid)) then
  576. return false
  577. end
  578.  
  579. if isPremium(cid) then
  580. addon = getPlayerStorageValue(cid,druid)
  581. if addon == -1 then
  582. if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
  583. if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then
  584. selfSay(newaddon, cid)
  585.  
  586. doSendMagicEffect(getCreaturePosition(cid), 13)
  587. doPlayerAddOutfit(cid, 144, 1)
  588. doPlayerAddOutfit(cid, 148, 1)
  589. setPlayerStorageValue(cid,druid,1)
  590. end
  591. else
  592. selfSay(noitems, cid)
  593. end
  594. else
  595. selfSay(already, cid)
  596. end
  597. end
  598.  
  599. end
  600.  
  601. function DruidSecond(cid, message, keywords, parameters, node)
  602.  
  603. if(not npcHandler:isFocused(cid)) then
  604. return false
  605. end
  606.  
  607. if isPremium(cid) then
  608. addon = getPlayerStorageValue(cid,druid+1)
  609. if addon == -1 then
  610. if getPlayerItemCount(cid,5937) >= 1 and getPlayerItemCount(cid,5938) >= 1 and getPlayerItemCount(cid,5906) >= 100 and getPlayerItemCount(cid,5942) >= 1 and getPlayerItemCount(cid,5940) >= 1 then
  611. if doPlayerRemoveItem(cid,5937,1) and doPlayerRemoveItem(cid,5938,1) and doPlayerRemoveItem(cid,5906,100) and doPlayerRemoveItem(cid,5942,1) and doPlayerRemoveItem(cid,5940,1) then
  612. selfSay(newaddon, cid)
  613.  
  614. doSendMagicEffect(getCreaturePosition(cid), 13)
  615. doPlayerAddOutfit(cid, 144, 2)
  616. doPlayerAddOutfit(cid, 148, 2)
  617. setPlayerStorageValue(cid,druid+1,1)
  618. end
  619. else
  620. selfSay(noitems, cid)
  621. end
  622. else
  623. selfSay(already, cid)
  624. end
  625. end
  626.  
  627. end
  628. -- DRUID END --
  629.  
  630. -- WIZARD START --
  631. function WizardFirst(cid, message, keywords, parameters, node)
  632.  
  633. if(not npcHandler:isFocused(cid)) then
  634. return false
  635. end
  636.  
  637. if isPremium(cid) then
  638. addon = getPlayerStorageValue(cid,wizard)
  639. if addon == -1 then
  640. if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
  641. if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2536,1) then
  642. selfSay(newaddon, cid)
  643. doSendMagicEffect(getCreaturePosition(cid), 13)
  644. doPlayerAddOutfit(cid, 145, 1)
  645. doPlayerAddOutfit(cid, 149, 1)
  646. setPlayerStorageValue(cid,wizard,1)
  647. end
  648. else
  649. selfSay(noitems, cid)
  650. end
  651. else
  652. selfSay(already, cid)
  653. end
  654. end
  655.  
  656. end
  657.  
  658. function WizardSecond(cid, message, keywords, parameters, node)
  659.  
  660. if(not npcHandler:isFocused(cid)) then
  661. return false
  662. end
  663.  
  664. if isPremium(cid) then
  665. addon = getPlayerStorageValue(cid,wizard+1)
  666. if addon == -1 then
  667. if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,wizard) then
  668. if doPlayerRemoveItem(cid,5922,50) and getPlayerStorageValue(cid,wizard) then
  669. selfSay(newaddon, cid)
  670.  
  671. doSendMagicEffect(getCreaturePosition(cid), 13)
  672. doPlayerAddOutfit(cid, 145, 2)
  673. doPlayerAddOutfit(cid, 149, 2)
  674. setPlayerStorageValue(cid,wizard+1,1)
  675. end
  676. else
  677. selfSay(noitems2, cid)
  678. end
  679. else
  680. selfSay(already, cid)
  681. end
  682. end
  683.  
  684. end
  685. -- WIZARD END --
  686.  
  687. -- ORIENTAL START --
  688. function OrientalFirst(cid, message, keywords, parameters, node)
  689.  
  690. if(not npcHandler:isFocused(cid)) then
  691. return false
  692. end
  693.  
  694. if isPremium(cid) then
  695. addon = getPlayerStorageValue(cid,oriental)
  696. if addon == -1 then
  697. if getPlayerItemCount(cid,5945) >= 1 then
  698. if doPlayerRemoveItem(cid,5945,1) then
  699. selfSay(newaddon, cid)
  700.  
  701. doSendMagicEffect(getCreaturePosition(cid), 13)
  702. doPlayerAddOutfit(cid, 146, 1)
  703. doPlayerAddOutfit(cid, 150, 1)
  704. setPlayerStorageValue(cid,oriental,1)
  705. end
  706. else
  707. selfSay(noitems, cid)
  708. end
  709. else
  710. selfSay(already, cid)
  711. end
  712. end
  713.  
  714. end
  715.  
  716. function OrientalSecond(cid, message, keywords, parameters, node)
  717.  
  718. if(not npcHandler:isFocused(cid)) then
  719. return false
  720. end
  721.  
  722. if isPremium(cid) then
  723. addon = getPlayerStorageValue(cid,oriental+1)
  724. if addon == -1 then
  725. if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
  726. if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveItem(cid,5895,100) and doPlayerRemoveItem(cid,5891,2) and doPlayerRemoveItem(cid,5912,100) then
  727. selfSay(newaddon, cid)
  728.  
  729. doSendMagicEffect(getCreaturePosition(cid), 13)
  730. doPlayerAddOutfit(cid, 146, 2)
  731. doPlayerAddOutfit(cid, 150, 2)
  732. setPlayerStorageValue(cid,oriental+1,1)
  733. end
  734. else
  735. selfSay(noitems, cid)
  736. end
  737. else
  738. selfSay(already, cid)
  739. end
  740. end
  741.  
  742. end
  743. -- ORIENTAL END --
  744.  
  745. -- PIRATE START --
  746. function PirateFirst(cid, message, keywords, parameters, node)
  747.  
  748. if(not npcHandler:isFocused(cid)) then
  749. return false
  750. end
  751.  
  752. if isPremium(cid) then
  753. addon = getPlayerStorageValue(cid,pirate)
  754. if addon == -1 then
  755. if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
  756. if doPlayerRemoveItem(cid,6126,100) and doPlayerRemoveItem(cid,6097,100) and doPlayerRemoveItem(cid,6098,100) then
  757. selfSay(newaddon, cid)
  758.  
  759. doSendMagicEffect(getCreaturePosition(cid), 13)
  760. doPlayerAddOutfit(cid, 151, 1)
  761. doPlayerAddOutfit(cid, 155, 1)
  762. setPlayerStorageValue(cid,pirate,1)
  763. end
  764. else
  765. selfSay(noitems, cid)
  766. end
  767. else
  768. selfSay(already, cid)
  769. end
  770. end
  771.  
  772. end
  773.  
  774. function PirateSecond(cid, message, keywords, parameters, node)
  775.  
  776. if(not npcHandler:isFocused(cid)) then
  777. return false
  778. end
  779.  
  780. if isPremium(cid) then
  781. addon = getPlayerStorageValue(cid,pirate+1)
  782. if addon == -1 then
  783. if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
  784. if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then
  785. selfSay(newaddon, cid)
  786.  
  787. doSendMagicEffect(getCreaturePosition(cid), 13)
  788. doPlayerAddOutfit(cid, 151, 2)
  789. doPlayerAddOutfit(cid, 155, 2)
  790. setPlayerStorageValue(cid,pirate+1,1)
  791. end
  792. else
  793. selfSay(noitems, cid)
  794. end
  795. else
  796. selfSay(already, cid)
  797. end
  798. end
  799.  
  800. end
  801. -- PIRATE END --
  802.  
  803. -- ASSASSIN START --
  804. function AssassinFirst(cid, message, keywords, parameters, node)
  805.  
  806. if(not npcHandler:isFocused(cid)) then
  807. return false
  808. end
  809.  
  810. if isPremium(cid) then
  811. addon = getPlayerStorageValue(cid,assassin)
  812. if addon == -1 then
  813. if getPlayerItemCount(cid,5912) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5913) >= 50 and getPlayerItemCount(cid,5914) >= 50 and getPlayerItemCount(cid,5909) >= 50 and getPlayerItemCount(cid,5886) >= 10 then
  814. if doPlayerRemoveItem(cid,5912,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5913,50) and doPlayerRemoveItem(cid,5914,50) and doPlayerRemoveItem(cid,5909,50) and doPlayerRemoveItem(cid,5886,10) then
  815. selfSay(newaddon, cid)
  816.  
  817. doSendMagicEffect(getCreaturePosition(cid), 13)
  818. doPlayerAddOutfit(cid, 152, 1)
  819. doPlayerAddOutfit(cid, 156, 1)
  820. setPlayerStorageValue(cid,assassin,1)
  821. end
  822. else
  823. selfSay(noitems, cid)
  824. end
  825. else
  826. selfSay(already, cid)
  827. end
  828. end
  829.  
  830. end
  831.  
  832. function AssassinSecond(cid, message, keywords, parameters, node)
  833.  
  834. if(not npcHandler:isFocused(cid)) then
  835. return false
  836. end
  837.  
  838. if isPremium(cid) then
  839. addon = getPlayerStorageValue(cid,assassin+1)
  840. if addon == -1 then
  841. if getPlayerItemCount(cid,5930) >= 1 and getPlayerItemCount(cid,5804) >= 1 then
  842. if doPlayerRemoveItem(cid,5930,1) and doPlayerRemoveItem(cid,5804,1) then
  843. selfSay(newaddon, cid)
  844.  
  845. doSendMagicEffect(getCreaturePosition(cid), 13)
  846. doPlayerAddOutfit(cid, 152, 2)
  847. doPlayerAddOutfit(cid, 156, 2)
  848. setPlayerStorageValue(cid,assassin+1,1)
  849. end
  850. else
  851. selfSay(noitems, cid)
  852. end
  853. else
  854. selfSay(already, cid)
  855. end
  856. end
  857.  
  858. end
  859. -- ASSASSIN END --
  860.  
  861. -- BEGGAR START --
  862. function BeggarFirst(cid, message, keywords, parameters, node)
  863.  
  864. if(not npcHandler:isFocused(cid)) then
  865. return false
  866. end
  867.  
  868. local player_gold = getPlayerItemCount(cid,2148)
  869. local player_plat = getPlayerItemCount(cid,2152)*100
  870. local player_crys = getPlayerItemCount(cid,2160)*10000
  871. local player_money = player_gold + player_plat + player_crys
  872.  
  873. if isPremium(cid) then
  874. addon = getPlayerStorageValue(cid,beggar)
  875. if addon == -1 then
  876. if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
  877. if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveMoney(cid,20000) then
  878. selfSay(newaddon, cid)
  879.  
  880. doSendMagicEffect(getCreaturePosition(cid), 13)
  881. doPlayerAddOutfit(cid, 153, 1)
  882. doPlayerAddOutfit(cid, 157, 1)
  883. setPlayerStorageValue(cid,beggar,1)
  884. end
  885. else
  886. selfSay(noitems, cid)
  887. end
  888. else
  889. selfSay(already, cid)
  890. end
  891. end
  892.  
  893. end
  894.  
  895. function BeggarSecond(cid, message, keywords, parameters, node)
  896.  
  897. if(not npcHandler:isFocused(cid)) then
  898. return false
  899. end
  900.  
  901. if isPremium(cid) then
  902. addon = getPlayerStorageValue(cid,beggar+1)
  903. if addon == -1 then
  904. if getPlayerItemCount(cid,6107) >= 1 then
  905. if doPlayerRemoveItem(cid,6107,1) then
  906. selfSay(newaddon, cid)
  907.  
  908. doSendMagicEffect(getCreaturePosition(cid), 13)
  909. doPlayerAddOutfit(cid, 153, 2)
  910. doPlayerAddOutfit(cid, 157, 2)
  911. setPlayerStorageValue(cid,beggar+1,1)
  912. end
  913. else
  914. selfSay(noitems, cid)
  915. end
  916. else
  917. selfSay(already, cid)
  918. end
  919. end
  920.  
  921. end
  922. -- BEGGAR END --
  923.  
  924. -- SHAMAN START --
  925. function ShamanSecond(cid, message, keywords, parameters, node)
  926.  
  927. if(not npcHandler:isFocused(cid)) then
  928. return false
  929. end
  930.  
  931. if isPremium(cid) then
  932. addon = getPlayerStorageValue(cid,shaman)
  933. if addon == -1 then
  934. if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
  935. if doPlayerRemoveItem(cid,3955,5) and doPlayerRemoveItem(cid,5015,1) then
  936. selfSay(newaddon, cid)
  937.  
  938. doSendMagicEffect(getCreaturePosition(cid), 13)
  939. doPlayerAddOutfit(cid, 154, 2)
  940. doPlayerAddOutfit(cid, 158, 2)
  941. setPlayerStorageValue(cid,shaman,1)
  942. end
  943. else
  944. selfSay(noitems, cid)
  945. end
  946. else
  947. selfSay(already, cid)
  948. end
  949. end
  950.  
  951. end
  952.  
  953. function ShamanFirst(cid, message, keywords, parameters, node)
  954.  
  955. if(not npcHandler:isFocused(cid)) then
  956. return false
  957. end
  958.  
  959. if isPremium(cid) then
  960. addon = getPlayerStorageValue(cid,shaman+1)
  961. if addon == -1 then
  962. if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
  963. if doPlayerRemoveItem(cid,3966,5) and doPlayerRemoveItem(cid,3967,5) then
  964. selfSay(newaddon, cid)
  965.  
  966. doSendMagicEffect(getCreaturePosition(cid), 13)
  967. doPlayerAddOutfit(cid, 154, 1)
  968. doPlayerAddOutfit(cid, 158, 1)
  969. setPlayerStorageValue(cid,shaman+1,1)
  970. end
  971. else
  972. selfSay(noitems, cid)
  973. end
  974. else
  975. selfSay(already, cid)
  976. end
  977. end
  978.  
  979. end
  980. -- SHAMAN END --
  981.  
  982. -- NORSEMAN START --
  983. function NorsemanFirst(cid, message, keywords, parameters, node)
  984.  
  985. if(not npcHandler:isFocused(cid)) then
  986. return false
  987. end
  988.  
  989. if isPremium(cid) then
  990. addon = getPlayerStorageValue(cid,norseman)
  991. if addon == -1 then
  992. if getPlayerItemCount(cid,7290) >= 5 then
  993. if doPlayerRemoveItem(cid,7290,5) then
  994. selfSay(newaddon, cid)
  995.  
  996. doSendMagicEffect(getCreaturePosition(cid), 13)
  997. doPlayerAddOutfit(cid, 251, 1)
  998. doPlayerAddOutfit(cid, 252, 1)
  999. setPlayerStorageValue(cid,norseman,1)
  1000. end
  1001. else
  1002. selfSay(noitems, cid)
  1003. end
  1004. else
  1005. selfSay(already, cid)
  1006. end
  1007. end
  1008.  
  1009. end
  1010.  
  1011. function NorsemanSecond(cid, message, keywords, parameters, node)
  1012.  
  1013. if(not npcHandler:isFocused(cid)) then
  1014. return false
  1015. end
  1016.  
  1017. if isPremium(cid) then
  1018. addon = getPlayerStorageValue(cid,norseman+1)
  1019. if addon == -1 then
  1020. if getPlayerItemCount(cid,7290) >= 10 then
  1021. if doPlayerRemoveItem(cid,7290,10) then
  1022. selfSay(newaddon, cid)
  1023.  
  1024. doSendMagicEffect(getCreaturePosition(cid), 13)
  1025. doPlayerAddOutfit(cid, 251, 2)
  1026. doPlayerAddOutfit(cid, 252, 2)
  1027. setPlayerStorageValue(cid,norseman+1,1)
  1028. end
  1029. else
  1030. selfSay(noitems, cid)
  1031. end
  1032. else
  1033. selfSay(already, cid)
  1034. end
  1035. end
  1036.  
  1037. end
  1038. -- NORSEMAN END --
  1039.  
  1040. -- NIGHTMARE START --
  1041. function NightmareFirst(cid, message, keywords, parameters, node)
  1042.  
  1043. if(not npcHandler:isFocused(cid)) then
  1044. return false
  1045. end
  1046.  
  1047. if isPremium(cid) then
  1048. addon = getPlayerStorageValue(cid,nightmare)
  1049. if addon == -1 then
  1050. if getPlayerItemCount(cid,6500) >= 500 then
  1051. if doPlayerRemoveItem(cid,6500,500) then
  1052. selfSay(newaddon, cid)
  1053.  
  1054. doSendMagicEffect(getCreaturePosition(cid), 13)
  1055. doPlayerAddOutfit(cid, 268, 1)
  1056. doPlayerAddOutfit(cid, 269, 1)
  1057. setPlayerStorageValue(cid,nightmare,1)
  1058. end
  1059. else
  1060. selfSay(noitems, cid)
  1061. end
  1062. else
  1063. selfSay(already, cid)
  1064. end
  1065. end
  1066.  
  1067. end
  1068.  
  1069. function NightmareSecond(cid, message, keywords, parameters, node)
  1070.  
  1071. if(not npcHandler:isFocused(cid)) then
  1072. return false
  1073. end
  1074.  
  1075. if isPremium(cid) then
  1076. addon = getPlayerStorageValue(cid,nightmare+1)
  1077. if addon == -1 then
  1078. if getPlayerItemCount(cid,6500) >= 1500 then
  1079. if doPlayerRemoveItem(cid,6500,1500) then
  1080. selfSay(newaddon, cid)
  1081.  
  1082. doSendMagicEffect(getCreaturePosition(cid), 13)
  1083. doPlayerAddOutfit(cid, 268, 2)
  1084. doPlayerAddOutfit(cid, 269, 2)
  1085. setPlayerStorageValue(cid,nightmare+1,1)
  1086. end
  1087. else
  1088. selfSay(noitems, cid)
  1089. end
  1090. else
  1091. selfSay(already, cid)
  1092. end
  1093. end
  1094.  
  1095. end
  1096. -- NIGHTMARE END --
  1097.  
  1098. -- JESTER START --
  1099. function JesterFirst(cid, message, keywords, parameters, node)
  1100.  
  1101. if(not npcHandler:isFocused(cid)) then
  1102. return false
  1103. end
  1104.  
  1105. if isPremium(cid) then
  1106. addon = getPlayerStorageValue(cid,jester)
  1107. if addon == -1 then
  1108. if getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then
  1109. if doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then
  1110. selfSay(newaddon, cid)
  1111.  
  1112. doSendMagicEffect(getCreaturePosition(cid), 13)
  1113. doPlayerAddOutfit(cid, 273, 1)
  1114. doPlayerAddOutfit(cid, 270, 1)
  1115. setPlayerStorageValue(cid,jester,1)
  1116. end
  1117. else
  1118. selfSay(noitems, cid)
  1119. end
  1120. else
  1121. selfSay(already, cid)
  1122. end
  1123. end
  1124.  
  1125. end
  1126.  
  1127. function JesterSecond(cid, message, keywords, parameters, node)
  1128.  
  1129. if(not npcHandler:isFocused(cid)) then
  1130. return false
  1131. end
  1132.  
  1133. if isPremium(cid) then
  1134. addon = getPlayerStorageValue(cid,jester+1)
  1135. if addon == -1 then
  1136. if getPlayerItemCount(cid,5909) >= 5 then
  1137. if doPlayerRemoveItem(cid,5909,5) then
  1138. selfSay(newaddon, cid)
  1139.  
  1140. doSendMagicEffect(getCreaturePosition(cid), 13)
  1141. doPlayerAddOutfit(cid, 273, 2)
  1142. doPlayerAddOutfit(cid, 270, 2)
  1143. setPlayerStorageValue(cid,jester+1,1)
  1144. end
  1145. else
  1146. selfSay(noitems, cid)
  1147. end
  1148. else
  1149. selfSay(already, cid)
  1150. end
  1151. end
  1152.  
  1153. end
  1154. -- JESTER END --
  1155.  
  1156. -- BROTHERHOOD START --
  1157. function BrotherhoodFirst(cid, message, keywords, parameters, node)
  1158.  
  1159. if(not npcHandler:isFocused(cid)) then
  1160. return false
  1161. end
  1162.  
  1163. if isPremium(cid) then
  1164. addon = getPlayerStorageValue(cid,brotherhood)
  1165. if addon == -1 then
  1166. if getPlayerItemCount(cid,6500) >= 500 then
  1167. if doPlayerRemoveItem(cid,6500,500) then
  1168. selfSay(newaddon, cid)
  1169.  
  1170. doSendMagicEffect(getCreaturePosition(cid), 13)
  1171. doPlayerAddOutfit(cid, 278, 1)
  1172. doPlayerAddOutfit(cid, 279, 1)
  1173. setPlayerStorageValue(cid,brotherhood,1)
  1174. end
  1175. else
  1176. selfSay(noitems, cid)
  1177. end
  1178. else
  1179. selfSay(already, cid)
  1180. end
  1181. end
  1182.  
  1183. end
  1184.  
  1185. function BrotherhoodSecond(cid, message, keywords, parameters, node)
  1186.  
  1187. if(not npcHandler:isFocused(cid)) then
  1188. return false
  1189. end
  1190.  
  1191. if isPremium(cid) then
  1192. addon = getPlayerStorageValue(cid,brotherhood+1)
  1193. if addon == -1 then
  1194. if getPlayerItemCount(cid,6500) >= 100 then
  1195. if doPlayerRemoveItem(cid,6500,100) then
  1196. selfSay(newaddon, cid)
  1197.  
  1198. doSendMagicEffect(getCreaturePosition(cid), 13)
  1199. doPlayerAddOutfit(cid, 278, 2)
  1200. doPlayerAddOutfit(cid, 279, 2)
  1201. setPlayerStorageValue(cid,brotherhood+1,1)
  1202. end
  1203. else
  1204. selfSay(noitems, cid)
  1205. end
  1206. else
  1207. selfSay(already, cid)
  1208. end
  1209. end
  1210.  
  1211. end
  1212. -- BROTHERHOOD END --
  1213.  
  1214. -- YALAHARIAN START --
  1215. function YalaharianFirst(cid, message, keywords, parameters, node)
  1216.  
  1217. if(not npcHandler:isFocused(cid)) then
  1218. return false
  1219. end
  1220.  
  1221. if isPremium(cid) then
  1222. addon = getPlayerStorageValue(cid,yalaharian)
  1223. if addon == -1 then
  1224. if getPlayerItemCount(cid,9955) >= 1 then
  1225. if doPlayerRemoveItem(cid,9955,1) then
  1226. selfSay(newaddon, cid)
  1227.  
  1228. doSendMagicEffect(getCreaturePosition(cid), 13)
  1229. doPlayerAddOutfit(cid, 325, 1)
  1230. doPlayerAddOutfit(cid, 324, 1)
  1231. setPlayerStorageValue(cid,yalaharian,1)
  1232. end
  1233. else
  1234. selfSay(noitems, cid)
  1235. end
  1236. else
  1237. selfSay(already, cid)
  1238. end
  1239. end
  1240.  
  1241. end
  1242.  
  1243. function YalaharianSecond(cid, message, keywords, parameters, node)
  1244.  
  1245. if(not npcHandler:isFocused(cid)) then
  1246. return false
  1247. end
  1248.  
  1249. if isPremium(cid) then
  1250. addon = getPlayerStorageValue(cid,yalaharian+1)
  1251. if addon == -1 then
  1252. if getPlayerItemCount(cid,9955) >= 1 then
  1253. if doPlayerRemoveItem(cid,9955,1) then
  1254. selfSay(newaddon, cid)
  1255.  
  1256. doSendMagicEffect(getCreaturePosition(cid), 13)
  1257. doPlayerAddOutfit(cid, 325, 2)
  1258. doPlayerAddOutfit(cid, 324, 2)
  1259. setPlayerStorageValue(cid,yalaharian+1,1)
  1260. end
  1261. else
  1262. selfSay(noitems, cid)
  1263. end
  1264. else
  1265. selfSay(already, cid)
  1266. end
  1267. end
  1268.  
  1269. end
  1270. -- YALAHARIAN END --
  1271.  
  1272. -- DEMONHUNTER START --
  1273. function DemonhunterFirst(cid, message, keywords, parameters, node)
  1274.  
  1275. if(not npcHandler:isFocused(cid)) then
  1276. return false
  1277. end
  1278.  
  1279. if isPremium(cid) then
  1280. addon = getPlayerStorageValue(cid,demonhunter)
  1281. if addon == -1 then
  1282. if getPlayerItemCount(cid,5905) >= 30 and getPlayerItemCount(cid,5906) >= 40 and getPlayerItemCount(cid,5954) >= 50 and getPlayerItemCount(cid,6500) >= 50 and getPlayerItemCount(cid,2151) >= 100 then
  1283. if doPlayerRemoveItem(cid,5905,30) and doPlayerRemoveItem(cid,5906,40) and doPlayerRemoveItem(cid,5954,50) and doPlayerRemoveItem(cid,6500,50) and doPlayerRemoveItem(cid,2151,100) then
  1284. selfSay(newaddon, cid)
  1285.  
  1286. doSendMagicEffect(getCreaturePosition(cid), 13)
  1287. doPlayerAddOutfit(cid, 289, 1)
  1288. doPlayerAddOutfit(cid, 288, 1)
  1289. setPlayerStorageValue(cid,demonhunter,1)
  1290. end
  1291. else
  1292. selfSay(noitems, cid)
  1293. end
  1294. else
  1295. selfSay(already, cid)
  1296. end
  1297. end
  1298.  
  1299. end
  1300.  
  1301. function DemonhunterSecond(cid, message, keywords, parameters, node)
  1302.  
  1303. if(not npcHandler:isFocused(cid)) then
  1304. return false
  1305. end
  1306.  
  1307. if isPremium(cid) then
  1308. addon = getPlayerStorageValue(cid,demonhunter+1)
  1309. if addon == -1 then
  1310. if getPlayerItemCount(cid,5906) >= 50 and getPlayerItemCount(cid,6500) >= 200 and getPlayerItemCount(cid,2151) >= 100 then
  1311. if doPlayerRemoveItem(cid,5906,40) and doPlayerRemoveItem(cid,6500,200) and doPlayerRemoveItem(cid,2151,100) then
  1312. selfSay(newaddon, cid)
  1313.  
  1314. doSendMagicEffect(getCreaturePosition(cid), 13)
  1315. doPlayerAddOutfit(cid, 289, 2)
  1316. doPlayerAddOutfit(cid, 288, 2)
  1317. setPlayerStorageValue(cid,demonhunter+1,1)
  1318. end
  1319. else
  1320. selfSay(noitems, cid)
  1321. end
  1322. else
  1323. selfSay(already, cid)
  1324. end
  1325. end
  1326.  
  1327. end
  1328.  
  1329. function testAddon(cid, message, keywords, parameters, node)
  1330.  
  1331. if(not npcHandler:isFocused(cid)) then
  1332. return false
  1333. end
  1334.  
  1335. if isPremium(cid) then
  1336. addon = getPlayerStorageValue(cid,demonhunter+1)
  1337. if addon == -1 then
  1338. selfSay(newaddon, cid)
  1339.  
  1340. doSendMagicEffect(getCreaturePosition(cid), 13)
  1341. doPlayerAddOutfit(cid, 289, 2)
  1342. doPlayerAddOutfit(cid, 288, 2)
  1343. setPlayerStorageValue(cid,demonhunter+1,1)
  1344. end
  1345. end
  1346.  
  1347. end
  1348. -- DEMONHUNTER END --
  1349.  
  1350.  
  1351. keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can offer you first & second addons of the following outfits: Citizen, Hunter, Mage, Knight, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman, Nightmare, Jester, Brotherhood, Demonhunter & Yalaharian."})
  1352. keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "What you do is that you type 'first hunter addon' or 'second hunter addon' where you replace 'hunter' with whatever outfit you'd like to achieve the addons for. Assuming that you already collected all the required pieces, say 'yes' and voĆ­la - you got yourself an addon!"})
  1353.  
  1354. node1 = keywordHandler:addKeyword({'first citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first citizen addon you need to give me 100 minotaur leathers. Do you have them with you?'})
  1355. node1:addChildKeyword({'yes'}, CitizenFirst, {})
  1356. node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1357.  
  1358. node2 = keywordHandler:addKeyword({'second citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me 100 chicken feathers, 50 honeycombs and a legion helmet. Do you have them with you?'})
  1359. node2:addChildKeyword({'yes'}, CitizenSecond, {})
  1360. node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1361.  
  1362. node3 = keywordHandler:addKeyword({'first hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me Elane Crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, a piece of royal steel, a piece of hell steel and a piece of draconian steel. Do you have them with you?'})
  1363. node3:addChildKeyword({'yes'}, HunterFirst, {})
  1364. node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1365.  
  1366. node4 = keywordHandler:addKeyword({'second hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second hunter addon you need to give me a pair of sniper gloves. Do you have them with you?'})
  1367. node4:addChildKeyword({'yes'}, HunterSecond, {})
  1368. node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1369.  
  1370. node5 = keywordHandler:addKeyword({'first mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first mage addon you need to give me a winning lottery ticket if you are a female. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'})
  1371. node5:addChildKeyword({'yes'}, MageFirst, {})
  1372. node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1373.  
  1374. node6 = keywordHandler:addKeyword({'second mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second mage addon you need to give me 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts if you are a female. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'})
  1375. node6:addChildKeyword({'yes'}, MageSecond, {})
  1376. node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1377.  
  1378. node7 = keywordHandler:addKeyword({'first knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first knight addon you need to give me a chunk of crude iron and 100 iron ores. Do you have it with you?'})
  1379. node7:addChildKeyword({'yes'}, KnightFirst, {})
  1380. node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1381.  
  1382. node8 = keywordHandler:addKeyword({'second knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second knight addon you need to give me 100 perfect behemoth fangs, a damaged steel helmet, warrior\'s sweat and a royal steel. Do you have them with you?'})
  1383. node8:addChildKeyword({'yes'}, KnightSecond, {})
  1384. node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1385.  
  1386. node9 = keywordHandler:addKeyword({'first nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nobleman addon you need to give me 150,000 gold pieces. Do you have it with you?'})
  1387. node9:addChildKeyword({'yes'}, NoblemanFirst, {})
  1388. node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1389.  
  1390. node10 = keywordHandler:addKeyword({'second nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nobleman addon you need to give me 150,000 gold pieces. Do you have them with you?'})
  1391. node10:addChildKeyword({'yes'}, NoblemanSecond, {})
  1392. node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1393.  
  1394. node11 = keywordHandler:addKeyword({'first summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first summoner addon you need to give me a winning lottery ticket if you are a male. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'})
  1395. node11:addChildKeyword({'yes'}, SummonerFirst, {})
  1396. node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1397.  
  1398. node12 = keywordHandler:addKeyword({'second summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second summoner addon you need to give me 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts if you are a male. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'})
  1399. node12:addChildKeyword({'yes'}, SummonerSecond, {})
  1400. node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1401.  
  1402. node13 = keywordHandler:addKeyword({'first warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first warrior addon you need to give me 100 hardened bones, 100 turtle shells, a fighting spirit and a dragon claw. Do you have it with you?'})
  1403. node13:addChildKeyword({'yes'}, WarriorFirst, {})
  1404. node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1405.  
  1406. node14 = keywordHandler:addKeyword({'second warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second warrior addon you need to give me 100 iron ores and a piece of royal steel. Do you have them with you?'})
  1407. node14:addChildKeyword({'yes'}, WarriorSecond, {})
  1408. node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1409.  
  1410. node15 = keywordHandler:addKeyword({'first barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first barbarian addon you need to give me a fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns. Do you have them with you?'})
  1411. node15:addChildKeyword({'yes'}, BarbarianFirst, {})
  1412. node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1413.  
  1414. node16 = keywordHandler:addKeyword({'second barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second barbarian addon you need to give me 100 iron ore, a chunk of crude iron, 50 behemoth fangs and 50 lizard leathers. Do you have them with you?'})
  1415. node16:addChildKeyword({'yes'}, BarbarianSecond, {})
  1416. node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1417.  
  1418. node17 = keywordHandler:addKeyword({'first druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first druid addon you need to give me 50 wolf paws and 50 bear paws. Do you have them with you?'})
  1419. node17:addChildKeyword({'yes'}, DruidFirst, {})
  1420. node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1421.  
  1422. node18 = keywordHandler:addKeyword({'second druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second druid addon you need to give me Botanist Container, Ceirons waterskin, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain. Do you have them with you?'})
  1423. node18:addChildKeyword({'yes'}, DruidSecond, {})
  1424. node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1425.  
  1426. node19 = keywordHandler:addKeyword({'first wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first wizard addon you need to give me a dragon scale mail, a pair of crown legs, a medusa shield and a ring of the sky. Do you have them with you?'})
  1427. node19:addChildKeyword({'yes'}, WizardFirst, {})
  1428. node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1429.  
  1430. node20 = keywordHandler:addKeyword({'second wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second wizard addon you need to give me 50 holy orchids. Do you have them with you?'})
  1431. node20:addChildKeyword({'yes'}, WizardSecond, {})
  1432. node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1433.  
  1434. node21 = keywordHandler:addKeyword({'first oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first oriental addon you need to give me a mermaid comb. Do you have it with you?'})
  1435. node21:addChildKeyword({'yes'}, OrientalFirst, {})
  1436. node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1437.  
  1438. node22 = keywordHandler:addKeyword({'second oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second oriental addon you need to give me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth. Do you have them with you?'})
  1439. node22:addChildKeyword({'yes'}, OrientalSecond, {})
  1440. node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1441.  
  1442. node23 = keywordHandler:addKeyword({'first pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first pirate addon you need to give me 100 hooks, 100 peg legs and 100 eye patches. Do you have them with you?'})
  1443. node23:addChildKeyword({'yes'}, PirateFirst, {})
  1444. node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1445.  
  1446. node24 = keywordHandler:addKeyword({'second pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second pirate addon you need to give me brutus bloodbeard\'s hat, lethal lissy\'s shirt, ron the ripper\'s sabre and deadeye devious\' eye patch. Do you have them with you?'})
  1447. node24:addChildKeyword({'yes'}, PirateSecond, {})
  1448. node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1449.  
  1450. node25 = keywordHandler:addKeyword({'first assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first assassin addon you need to give me 50 Blue Piece of Cloths, 50 Green Piece of Cloths, 50 Red Piece of Cloths, 50 Brown Piece of Cloths, 50 Yellow Piece of Cloths, 50 White Piece of Cloths and 10 Spool of Yarns. Do you have them with you?'})
  1451. node25:addChildKeyword({'yes'}, AssassinFirst, {})
  1452. node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1453.  
  1454. node26 = keywordHandler:addKeyword({'second assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second assassin addon you need to give me 1 Behemoth Claw and 1 Nose Ring. Do you have them with you?'})
  1455. node26:addChildKeyword({'yes'}, AssassinSecond, {})
  1456. node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1457.  
  1458. node27 = keywordHandler:addKeyword({'first beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first beggar addon you need to give me 100 ape furs and 20,000 gold pieces. Do you have them with you?'})
  1459. node27:addChildKeyword({'yes'}, BeggarFirst, {})
  1460. node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1461.  
  1462. node28 = keywordHandler:addKeyword({'second beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second beggar addon you need to give me simon the beggar\'s staff. Do you have it with you?'})
  1463. node28:addChildKeyword({'yes'}, BeggarSecond, {})
  1464. node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1465.  
  1466. node29 = keywordHandler:addKeyword({'second shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first shaman addon you need to give me 5 dworf voodoo dolls and a mandrake. Do you have them with you?'})
  1467. node29:addChildKeyword({'yes'}, ShamanSecond, {})
  1468. node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1469.  
  1470. node30 = keywordHandler:addKeyword({'first shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second shaman addon you need to give me 5 banana staffs and 5 tribal masks. Do you have them with you?'})
  1471. node30:addChildKeyword({'yes'}, ShamanFirst, {})
  1472. node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1473.  
  1474. node31 = keywordHandler:addKeyword({'first norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first norseman addon you need to give me 5 shards. Do you have them with you?'})
  1475. node31:addChildKeyword({'yes'}, NorsemanFirst, {})
  1476. node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1477.  
  1478. node32 = keywordHandler:addKeyword({'second norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second norseman addon you need to give me 10 shards. Do you have them with you?'})
  1479. node32:addChildKeyword({'yes'}, NorsemanSecond, {})
  1480. node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1481.  
  1482. node33 = keywordHandler:addKeyword({'first nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nightmare addon you need to give me 500 demonic essences. Do you have them with you?'})
  1483. node33:addChildKeyword({'yes'}, NightmareFirst, {})
  1484. node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1485.  
  1486. node34 = keywordHandler:addKeyword({'second nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nightmare addon you need to give me 1500 demonic essences. Do you have them with you?'})
  1487. node34:addChildKeyword({'yes'}, NightmareSecond, {})
  1488. node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1489.  
  1490. node35 = keywordHandler:addKeyword({'first jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first jester addon you need to give me a giant spider silk and 4 minotaur leathers. Do you have them with you?'})
  1491. node35:addChildKeyword({'yes'}, JesterFirst, {})
  1492. node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1493.  
  1494. node36 = keywordHandler:addKeyword({'second jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second jester addon you need to give me 5 white piece of cloth. Do you have them with you?'})
  1495. node36:addChildKeyword({'yes'}, JesterSecond, {})
  1496. node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1497.  
  1498. node37 = keywordHandler:addKeyword({'first brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first brotherhood addon you need to give me 500 demonic essences. Do you have them with you?'})
  1499. node37:addChildKeyword({'yes'}, BrotherhoodFirst, {})
  1500. node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1501.  
  1502. node38 = keywordHandler:addKeyword({'second brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second brotherhood addon you need to give me 1000 demonic essences. Do you have them with you?'})
  1503. node38:addChildKeyword({'yes'}, BrotherhoodSecond, {})
  1504. node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1505.  
  1506. node39 = keywordHandler:addKeyword({'first yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first yalaharian addon you need to give me a vampiric crest. Do you have them with you?'})
  1507. node39:addChildKeyword({'yes'}, YalaharianFirst, {})
  1508. node39:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1509.  
  1510. node40 = keywordHandler:addKeyword({'second yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second yalaharian addon you need to give me a vampiric crest. Do you have them with you?'})
  1511. node40:addChildKeyword({'yes'}, YalaharianSecond, {})
  1512. node40:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1513.  
  1514. npcHandler:addModule(FocusModule:new())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement