Advertisement
Guest User

addon.lua

a guest
Apr 22nd, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 75.31 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        = 22004    
  13. mage        = 22056    
  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. wayfarer = 22039
  31. pumpkin = 22040
  32. yalaharian = 22041
  33. glooth = 22042
  34. rift = 22043
  35. elementalist = 22044
  36.  
  37. newaddon    = 'Here you are, enjoy your brand new addon!'
  38. noitems        = 'You do not have all the required items.'
  39. 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.'
  40. already        = 'It seems you already have this addon, don\'t you try to mock me son!'
  41.      
  42.      
  43.      
  44.      -- ELEMENTALIST START --
  45. function elementalistFirst(cid, message, keywords, parameters, node)
  46.  
  47.     if(not npcHandler:isFocused(cid)) then
  48.         return false
  49.     end
  50.  
  51.     if isPremium(cid) then
  52.     addon = getPlayerStorageValue(cid,elementalist)
  53.     if addon == -1 then
  54.         if getPlayerItemCount(cid,13940) >= 1 then
  55.         if doPlayerRemoveItem(cid,13940,1) then
  56.             selfSay(newaddon, cid)
  57.              
  58.             doSendMagicEffect(getCreaturePosition(cid), 13)
  59.             doPlayerAddOutfit(cid, 432, 2)
  60.             doPlayerAddOutfit(cid, 433, 2)
  61.             setPlayerStorageValue(cid,elementalist,1)
  62.         end
  63.         else
  64.             selfSay(noitems, cid)
  65.         end
  66.     else
  67.         selfSay(already, cid)
  68.     end
  69.     end
  70.  
  71. end
  72.  
  73. function elementalistSecond(cid, message, keywords, parameters, node)
  74.  
  75.     if(not npcHandler:isFocused(cid)) then
  76.         return false
  77.     end
  78.  
  79.     if isPremium(cid) then
  80.     addon = getPlayerStorageValue(cid,elementalist+1)
  81.     if addon == -1 then
  82.         if getPlayerItemCount(cid,13756) >= 1 then
  83.         if doPlayerRemoveItem(cid,13756,1) then
  84.             selfSay(newaddon, cid)
  85.              
  86.             doSendMagicEffect(getCreaturePosition(cid), 13)
  87.             doPlayerAddOutfit(cid, 432, 1)
  88.             doPlayerAddOutfit(cid, 433, 1)
  89.             setPlayerStorageValue(cid,elementalist+1,1)
  90.         end
  91.         else
  92.             selfSay(noitems, cid)
  93.         end
  94.     else
  95.         selfSay(already, cid)
  96.     end
  97.     end
  98.  
  99. end
  100. -- ELEMENTALIST END --
  101.  
  102.  
  103.      
  104.      
  105.      -- rift START --
  106. function riftFirst(cid, message, keywords, parameters, node)
  107.  
  108.     if(not npcHandler:isFocused(cid)) then
  109.         return false
  110.     end
  111.  
  112.     if isPremium(cid) then
  113.     addon = getPlayerStorageValue(cid,rift)
  114.     if addon == -1 then
  115.         if getPlayerItemCount(cid,25378) >= 3 then
  116.         if doPlayerRemoveItem(cid,25378,3) then
  117.             selfSay(newaddon, cid)
  118.              
  119.             doSendMagicEffect(getCreaturePosition(cid), 13)
  120.             doPlayerAddOutfit(cid, 845, 1)
  121.             doPlayerAddOutfit(cid, 846, 1)
  122.             setPlayerStorageValue(cid,rift,1)
  123.         end
  124.         else
  125.             selfSay(noitems, cid)
  126.         end
  127.     else
  128.         selfSay(already, cid)
  129.     end
  130.     end
  131.  
  132. end
  133.  
  134. function riftSecond(cid, message, keywords, parameters, node)
  135.  
  136.     if(not npcHandler:isFocused(cid)) then
  137.         return false
  138.     end
  139.  
  140.     if isPremium(cid) then
  141.     addon = getPlayerStorageValue(cid,rift+1)
  142.     if addon == -1 then
  143.         if getPlayerItemCount(cid,25172) >= 200 then
  144.         if doPlayerRemoveItem(cid,25172,200) then
  145.             selfSay(newaddon, cid)
  146.              
  147.             doSendMagicEffect(getCreaturePosition(cid), 13)
  148.             doPlayerAddOutfit(cid, 845, 2)
  149.             doPlayerAddOutfit(cid, 846, 2)
  150.             setPlayerStorageValue(cid,rift+1,1)
  151.         end
  152.         else
  153.             selfSay(noitems, cid)
  154.         end
  155.     else
  156.         selfSay(already, cid)
  157.     end
  158.     end
  159.  
  160. end
  161. -- rift END --
  162.      
  163.     -- GLOOTH START --
  164. function GloothFirst(cid, message, keywords, parameters, node)
  165.  
  166.     if(not npcHandler:isFocused(cid)) then
  167.         return false
  168.     end
  169.  
  170.     if isPremium(cid) then
  171.     addon = getPlayerStorageValue(cid,glooth)
  172.     if addon == -1 then
  173.         if getPlayerItemCount(cid,21400) >= 10 then
  174.         if doPlayerRemoveItem(cid,21400,10) then
  175.             selfSay(newaddon, cid)
  176.              
  177.             doSendMagicEffect(getCreaturePosition(cid), 13)
  178.             doPlayerAddOutfit(cid, 610, 1)
  179.             doPlayerAddOutfit(cid, 618, 1)
  180.             setPlayerStorageValue(cid,glooth,1)
  181.         end
  182.         else
  183.             selfSay(noitems, cid)
  184.         end
  185.     else
  186.         selfSay(already, cid)
  187.     end
  188.     end
  189.  
  190. end
  191.  
  192. function GloothSecond(cid, message, keywords, parameters, node)
  193.  
  194.     if(not npcHandler:isFocused(cid)) then
  195.         return false
  196.     end
  197.  
  198.     if isPremium(cid) then
  199.     addon = getPlayerStorageValue(cid,glooth+1)
  200.     if addon == -1 then
  201.         if getPlayerItemCount(cid,21400) >= 10 then
  202.         if doPlayerRemoveItem(cid,21400,10) then
  203.             selfSay(newaddon, cid)
  204.              
  205.             doSendMagicEffect(getCreaturePosition(cid), 13)
  206.             doPlayerAddOutfit(cid, 610, 2)
  207.             doPlayerAddOutfit(cid, 618, 2)
  208.             setPlayerStorageValue(cid,glooth+1,1)
  209.         end
  210.         else
  211.             selfSay(noitems, cid)
  212.         end
  213.     else
  214.         selfSay(already, cid)
  215.     end
  216.     end
  217.  
  218. end
  219. -- GLOOTH END --
  220.  
  221.  
  222.      
  223.     -- YALAHAR START --
  224. function YalaharianFirst(cid, message, keywords, parameters, node)
  225.  
  226.     if(not npcHandler:isFocused(cid)) then
  227.         return false
  228.     end
  229.  
  230.     if isPremium(cid) then
  231.     addon = getPlayerStorageValue(cid,yalaharian)
  232.     if addon == -1 then
  233.         if getPlayerItemCount(cid,21400) >= 10 then
  234.         if doPlayerRemoveItem(cid,21400,10) then
  235.             selfSay(newaddon, cid)
  236.              
  237.             doSendMagicEffect(getCreaturePosition(cid), 13)
  238.             doPlayerAddOutfit(cid, 324, 1)
  239.             doPlayerAddOutfit(cid, 325, 1)
  240.             setPlayerStorageValue(cid,yalaharian,1)
  241.         end
  242.         else
  243.             selfSay(noitems, cid)
  244.         end
  245.     else
  246.         selfSay(already, cid)
  247.     end
  248.     end
  249.  
  250. end
  251.  
  252. function YalaharianSecond(cid, message, keywords, parameters, node)
  253.  
  254.     if(not npcHandler:isFocused(cid)) then
  255.         return false
  256.     end
  257.  
  258.     if isPremium(cid) then
  259.     addon = getPlayerStorageValue(cid,yalaharian+1)
  260.     if addon == -1 then
  261.         if getPlayerItemCount(cid,21400) >= 10 then
  262.         if doPlayerRemoveItem(cid,21400,10) then
  263.             selfSay(newaddon, cid)
  264.              
  265.             doSendMagicEffect(getCreaturePosition(cid), 13)
  266.             doPlayerAddOutfit(cid, 324, 2)
  267.             doPlayerAddOutfit(cid, 325, 2)
  268.             setPlayerStorageValue(cid,yalaharian+1,1)
  269.         end
  270.         else
  271.             selfSay(noitems, cid)
  272.         end
  273.     else
  274.         selfSay(already, cid)
  275.     end
  276.     end
  277.  
  278. end
  279. -- YALAHAR END --
  280.  
  281.  
  282.     -- HALLOWEN START --
  283. function PumpkinFirst(cid, message, keywords, parameters, node)
  284.  
  285.     if(not npcHandler:isFocused(cid)) then
  286.         return false
  287.     end
  288.  
  289.     if isPremium(cid) then
  290.     addon = getPlayerStorageValue(cid,pumpkin)
  291.     if addon == -1 then
  292.         if getPlayerItemCount(cid,21400) >= 20 then
  293.         if doPlayerRemoveItem(cid,21400,20) then
  294.             selfSay(newaddon, cid)
  295.              
  296.             doSendMagicEffect(getCreaturePosition(cid), 13)
  297.             doPlayerAddOutfit(cid, 759, 1)
  298.             doPlayerAddOutfit(cid, 760, 1)
  299.             setPlayerStorageValue(cid,pumpkin,1)
  300.         end
  301.         else
  302.             selfSay(noitems, cid)
  303.         end
  304.     else
  305.         selfSay(already, cid)
  306.     end
  307.     end
  308.  
  309. end
  310.  
  311. function PumpkinSecond(cid, message, keywords, parameters, node)
  312.  
  313.     if(not npcHandler:isFocused(cid)) then
  314.         return false
  315.     end
  316.  
  317.     if isPremium(cid) then
  318.     addon = getPlayerStorageValue(cid,pumpkin+1)
  319.     if addon == -1 then
  320.         if getPlayerItemCount(cid,21400) >= 20 then
  321.         if doPlayerRemoveItem(cid,21400,20) then
  322.             selfSay(newaddon, cid)
  323.              
  324.             doSendMagicEffect(getCreaturePosition(cid), 13)
  325.             doPlayerAddOutfit(cid, 759, 2)
  326.             doPlayerAddOutfit(cid, 760, 2)
  327.             setPlayerStorageValue(cid,pumpkin+1,1)
  328.         end
  329.         else
  330.             selfSay(noitems, cid)
  331.         end
  332.     else
  333.         selfSay(already, cid)
  334.     end
  335.     end
  336.  
  337. end
  338. -- HALLOWEN END --
  339.  
  340.  
  341. -- CITIZEN START --
  342. function CitizenFirst(cid, message, keywords, parameters, node)
  343.  
  344.     if(not npcHandler:isFocused(cid)) then
  345.         return false
  346.     end
  347.  
  348.     if isPremium(cid) then
  349.     addon = getPlayerStorageValue(cid,citizen)
  350.     if addon == -1 then
  351.         if getPlayerItemCount(cid,5878) >= 100 then
  352.         if doPlayerRemoveItem(cid,5878,100) then
  353.             selfSay(newaddon, cid)
  354.              
  355.             doSendMagicEffect(getCreaturePosition(cid), 13)
  356.             doPlayerAddOutfit(cid, 128, 1)
  357.             doPlayerAddOutfit(cid, 136, 1)
  358.             setPlayerStorageValue(cid,citizen,1)
  359.         end
  360.         else
  361.             selfSay(noitems, cid)
  362.         end
  363.     else
  364.         selfSay(already, cid)
  365.     end
  366.     end
  367.  
  368. end
  369.  
  370. function CitizenSecond(cid, message, keywords, parameters, node)
  371.  
  372.     if(not npcHandler:isFocused(cid)) then
  373.         return false
  374.     end
  375.  
  376.     if isPremium(cid) then
  377.     addon = getPlayerStorageValue(cid,citizen+1)
  378.     if addon == -1 then
  379.         if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
  380.         if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) then
  381.             selfSay(newaddon, cid)
  382.              
  383.             doSendMagicEffect(getCreaturePosition(cid), 13)
  384.             doPlayerAddOutfit(cid, 128, 2)
  385.             doPlayerAddOutfit(cid, 136, 2)
  386.             setPlayerStorageValue(cid,citizen+1,1)
  387.         end
  388.         else
  389.             selfSay(noitems, cid)
  390.         end
  391.     else
  392.         selfSay(already, cid)
  393.     end
  394.     end
  395.  
  396. end
  397. -- CITIZEN END --
  398.  
  399. -- HUNTER START --
  400. function HunterFirst(cid, message, keywords, parameters, node)
  401.  
  402.     if(not npcHandler:isFocused(cid)) then
  403.         return false
  404.     end
  405.  
  406.     if isPremium(cid) then
  407.     addon = getPlayerStorageValue(cid,hunter)
  408.     if addon == -1 then
  409.         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
  410.         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
  411.             selfSay(newaddon, cid)
  412.              
  413.             doSendMagicEffect(getCreaturePosition(cid), 13)
  414.             doPlayerAddOutfit(cid, 129, 1)
  415. doPlayerAddOutfit(cid, 137, 1)          
  416.             setPlayerStorageValue(cid,hunter,1)
  417.         end
  418.         else
  419.             selfSay(noitems, cid)
  420.         end
  421.     else
  422.         selfSay(already, cid)
  423.     end
  424.     end
  425.  
  426. end
  427.  
  428. function HunterSecond(cid, message, keywords, parameters, node)
  429.  
  430.     if(not npcHandler:isFocused(cid)) then
  431.         return false
  432.     end
  433.  
  434.     if isPremium(cid) then
  435.     addon = getPlayerStorageValue(cid,hunter+1)
  436.     if addon == -1 then
  437.         if getPlayerItemCount(cid,5875) >= 1 then
  438.         if doPlayerRemoveItem(cid,5875,1) then
  439.             selfSay(newaddon, cid)
  440.              
  441.             doSendMagicEffect(getCreaturePosition(cid), 13)
  442.             doPlayerAddOutfit(cid, 129, 2)
  443.             doPlayerAddOutfit(cid, 137, 2)
  444.             setPlayerStorageValue(cid,hunter+1,1)
  445.         end
  446.         else
  447.             selfSay(noitems, cid)
  448.         end
  449.     else
  450.         selfSay(already, cid)
  451.     end
  452.     end
  453.  
  454. end
  455. -- HUNTER END --
  456.  
  457. -- MAGE START --
  458. function MageFirst(cid, message, keywords, parameters, node)
  459.  
  460.     if(not npcHandler:isFocused(cid)) then
  461.         return false
  462.     end
  463.  
  464.     if isPremium(cid) then
  465.     addon = getPlayerStorageValue(cid,mage)
  466.     if addon < 2 then
  467.         if getPlayerSex(cid) == 0 then
  468.         if getPlayerItemCount(cid,5958) >= 1 then
  469.         if doPlayerRemoveItem(cid,5958,1) then
  470.             selfSay(newaddon, cid)
  471.                  
  472.             doSendMagicEffect(getCreaturePosition(cid), 13)
  473.             doPlayerAddOutfit(cid, 138, 1)
  474.             --doPlayerAddOutfit(cid, 130, 1)
  475.             setPlayerStorageValue(cid,mage,1)
  476.         end
  477.         else
  478.             selfSay(noitems, cid)
  479.         end
  480.         elseif getPlayerSex(cid) == 1 then
  481.         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
  482.         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
  483.             selfSay(newaddon, cid)
  484.              
  485.             doSendMagicEffect(getCreaturePosition(cid), 13)
  486.             doPlayerAddOutfit(cid, 130, 1)
  487.             doPlayerAddOutfit(cid, 138, 1)
  488.             setPlayerStorageValue(cid,mage,1)
  489.         end
  490.         else
  491.             selfSay(noitems, cid)
  492.         end
  493.         end
  494.     else
  495.         selfSay(already, cid)
  496.     end
  497.     end
  498.  
  499. end
  500.  
  501. function MageSecond(cid, message, keywords, parameters, node)
  502.  
  503.     if(not npcHandler:isFocused(cid)) then
  504.         return false
  505.     end
  506.  
  507.     if isPremium(cid) then
  508.     addon = getPlayerStorageValue(cid,mage+1)  
  509.     if addon < 2 then
  510.         if getPlayerSex(cid) == 0 then
  511.         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
  512.         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
  513.             selfSay(newaddon, cid)
  514.              
  515.             doSendMagicEffect(getCreaturePosition(cid), 13)
  516.             doPlayerAddOutfit(cid, 138, 2)
  517.             --doPlayerAddOutfit(cid, 130, 2)
  518.             setPlayerStorageValue(cid,mage+1,1)
  519.         end
  520.         else
  521.             selfSay(noitems, cid)
  522.         end
  523.         elseif getPlayerSex(cid) == 1
  524.         if getPlayerItemCount(cid,5903) >= 1 then
  525.         if doPlayerRemoveItem(cid,5903,1) then
  526.             selfSay(newaddon, cid)
  527.              
  528.             doSendMagicEffect(getCreaturePosition(cid), 13)
  529.             doPlayerAddOutfit(cid, 130, 2)
  530.             doPlayerAddOutfit(cid, 138, 2)
  531.             setPlayerStorageValue(cid,mage+1,1)
  532.         end
  533.         else
  534.             selfSay(noitems, cid)
  535.         end
  536.         end
  537.     else
  538.         selfSay(already, cid)
  539.     end
  540.     end
  541.  
  542. end
  543. -- MAGE END --
  544.  
  545. -- KNIGHT START --
  546. function KnightFirst(cid, message, keywords, parameters, node)
  547.  
  548.     if(not npcHandler:isFocused(cid)) then
  549.         return false
  550.     end
  551.  
  552.     if isPremium(cid) then
  553.     addon = getPlayerStorageValue(cid,knight)
  554.     if addon == -1 then
  555.         if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
  556.         if doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5880,100) then
  557.             selfSay(newaddon, cid)
  558.              
  559.             doSendMagicEffect(getCreaturePosition(cid), 13)
  560.             doPlayerAddOutfit(cid, 131, 1)
  561.             doPlayerAddOutfit(cid, 139, 1)
  562.             setPlayerStorageValue(cid,knight,1)
  563.         end
  564.         else
  565.             selfSay(noitems, cid)
  566.         end
  567.     else
  568.         selfSay(already, cid)
  569.     end
  570.     end
  571.  
  572. end
  573.  
  574. function KnightSecond(cid, message, keywords, parameters, node)
  575.  
  576.     if(not npcHandler:isFocused(cid)) then
  577.         return false
  578.     end
  579.  
  580.     if isPremium(cid) then
  581.     addon = getPlayerStorageValue(cid,knight+1)
  582.     if addon == -1 then
  583.         if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
  584.         if doPlayerRemoveItem(cid,5893,100) and doPlayerRemoveItem(cid,5924,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5887,1) then
  585.             selfSay(newaddon, cid)
  586.              
  587.             doSendMagicEffect(getCreaturePosition(cid), 13)
  588.             doPlayerAddOutfit(cid, 131, 2)
  589.             doPlayerAddOutfit(cid, 139, 2)
  590.             setPlayerStorageValue(cid,knight+1,1)
  591.         end
  592.         else
  593.             selfSay(noitems, cid)
  594.         end
  595.     else
  596.         selfSay(already, cid)
  597.     end
  598.     end
  599.  
  600. end
  601. -- KNIGHT END --
  602.  
  603. -- NOBLEMAN START --
  604. function NoblemanFirst(cid, message, keywords, parameters, node)
  605.  
  606.     if(not npcHandler:isFocused(cid)) then
  607.         return false
  608.     end
  609.      
  610.     local player_gold     = getPlayerItemCount(cid,2148)
  611.     local player_plat     = getPlayerItemCount(cid,2152)*100
  612.     local player_crys     = getPlayerItemCount(cid,2160)*10000
  613.     local player_money     = player_gold + player_plat + player_crys
  614.  
  615.     if isPremium(cid) then
  616.     addon = getPlayerStorageValue(cid,nobleman)
  617.     if addon == -1 then
  618.         if player_money >= 150000 then
  619.         if doPlayerRemoveMoney(cid,150000) then
  620.             selfSay(newaddon, cid)
  621.              
  622.             doSendMagicEffect(getCreaturePosition(cid), 13)
  623.             doPlayerAddOutfit(cid, 132, 1)
  624.             doPlayerAddOutfit(cid, 140, 1)
  625.             setPlayerStorageValue(cid,nobleman,1)
  626.         end
  627.         else
  628.             selfSay(noitems, cid)
  629.         end
  630.     else
  631.         selfSay(already, cid)
  632.     end
  633.     end
  634.  
  635. end
  636.  
  637. function NoblemanSecond(cid, message, keywords, parameters, node)
  638.  
  639.     if(not npcHandler:isFocused(cid)) then
  640.         return false
  641.     end
  642.      
  643.     local player_gold     = getPlayerItemCount(cid,2148)
  644.     local player_plat     = getPlayerItemCount(cid,2152)*100
  645.     local player_crys     = getPlayerItemCount(cid,2160)*10000
  646.     local player_money     = player_gold + player_plat + player_crys
  647.  
  648.     if isPremium(cid) then
  649.     addon = getPlayerStorageValue(cid,nobleman+1)
  650.     if addon == -1 then
  651.         if player_money >= 150000 then
  652.         if doPlayerRemoveMoney(cid,150000) then
  653.             selfSay(newaddon, cid)
  654.              
  655.             doSendMagicEffect(getCreaturePosition(cid), 13)
  656.             doPlayerAddOutfit(cid, 132, 2)
  657.             doPlayerAddOutfit(cid, 140, 2)
  658.             setPlayerStorageValue(cid,nobleman+1,1)
  659.         end
  660.         else
  661.             selfSay(noitems, cid)
  662.         end
  663.     else
  664.         selfSay(already, cid)
  665.     end
  666.     end
  667.  
  668. end
  669. -- NOBLEMAN END --
  670.  
  671. -- SUMMONER START --
  672. function SummonerFirst(cid, message, keywords, parameters, node)
  673.  
  674.     if(not npcHandler:isFocused(cid)) then
  675.         return false
  676.     end
  677.  
  678.     if isPremium(cid) then
  679.     addon = getPlayerStorageValue(cid,summoner)
  680.     if addon == -1 then
  681.         if getPlayerSex(cid) == 1 then
  682.         if getPlayerItemCount(cid,5958) >= 1 then
  683.         if doPlayerRemoveItem(cid,5958,1) then
  684.             selfSay(newaddon, cid)
  685.              
  686.             doSendMagicEffect(getCreaturePosition(cid), 13)
  687.             doPlayerAddOutfit(cid, 133, 1)
  688.             doPlayerAddOutfit(cid, 141, 1)
  689.             setPlayerStorageValue(cid,summoner,1)
  690.         end
  691.         else
  692.             selfSay(noitems, cid)
  693.         end
  694.         elseif getPlayerSex(cid) == 0 then
  695.         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
  696.         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
  697.             selfSay(newaddon, cid)
  698.              
  699.             doSendMagicEffect(getCreaturePosition(cid), 13)
  700.             doPlayerAddOutfit(cid, 133, 1)
  701.             doPlayerAddOutfit(cid, 141, 1)
  702.             setPlayerStorageValue(cid,summoner,1)
  703.         end
  704.         else
  705.             selfSay(noitems, cid)
  706.         end
  707.         end
  708.     else
  709.         selfSay(already, cid)
  710.     end
  711.     end
  712.  
  713. end
  714.  
  715. function SummonerSecond(cid, message, keywords, parameters, node)
  716.  
  717.     if(not npcHandler:isFocused(cid)) then
  718.         return false
  719.     end
  720.  
  721.     if isPremium(cid) then
  722.     addon = getPlayerStorageValue(cid,summoner+2)
  723.     if addon == -1 then
  724.         if getPlayerSex(cid) == 1 then
  725.         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
  726.         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
  727.             selfSay(newaddon, cid)
  728.              
  729.             doSendMagicEffect(getCreaturePosition(cid), 13)
  730.             doPlayerAddOutfit(cid, 133, 2)
  731.             --doPlayerAddOutfit(cid, 141, 2)
  732.             setPlayerStorageValue(cid,summoner+1,1)
  733.         end
  734.         else
  735.             selfSay(noitems, cid)
  736.         end
  737.         elseif getPlayerSex(cid) == 0 then
  738.         if getPlayerItemCount(cid,5903) >= 1 then
  739.         if doPlayerRemoveItem(cid,5903,1) then
  740.             selfSay(newaddon, cid)
  741.              
  742.             doSendMagicEffect(getCreaturePosition(cid), 13)
  743.             doPlayerAddOutfit(cid, 133, 2)
  744.             doPlayerAddOutfit(cid, 141, 2)
  745.             setPlayerStorageValue(cid,summoner+1,1)
  746.         end
  747.         else
  748.             selfSay(noitems, cid)
  749.         end
  750.         end
  751.     else
  752.         selfSay(already, cid)
  753.     end
  754.     end
  755.  
  756. end
  757. -- SUMMONER END --
  758.  
  759. -- WARRIOR START --
  760. function WarriorFirst(cid, message, keywords, parameters, node)
  761.  
  762.     if(not npcHandler:isFocused(cid)) then
  763.         return false
  764.     end
  765.  
  766.     if isPremium(cid) then
  767.     addon = getPlayerStorageValue(cid,warrior)
  768.     if addon == -1 then
  769.         if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
  770.         if doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5919,1) then
  771.             selfSay(newaddon, cid)
  772.              
  773.             doSendMagicEffect(getCreaturePosition(cid), 13)
  774.             doPlayerAddOutfit(cid, 134, 1)
  775.             doPlayerAddOutfit(cid, 142, 1)
  776.             setPlayerStorageValue(cid,warrior,1)
  777.         end
  778.         else
  779.             selfSay(noitems, cid)
  780.         end
  781.     else
  782.         selfSay(already, cid)
  783.     end
  784.     end
  785.  
  786. end
  787.  
  788. function WarriorSecond(cid, message, keywords, parameters, node)
  789.  
  790.     if(not npcHandler:isFocused(cid)) then
  791.         return false
  792.     end
  793.  
  794.     if isPremium(cid) then
  795.     addon = getPlayerStorageValue(cid,warrior+1)
  796.     if addon == -1 then
  797.         if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
  798.         if doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5880,100) then
  799.             selfSay(newaddon, cid)
  800.              
  801.             doSendMagicEffect(getCreaturePosition(cid), 13)
  802.             doPlayerAddOutfit(cid, 134, 2)
  803.             doPlayerAddOutfit(cid, 142, 2)
  804.             setPlayerStorageValue(cid,warrior+1,1)
  805.         end
  806.         else
  807.             selfSay(noitems, cid)
  808.         end
  809.     else
  810.         selfSay(already, cid)
  811.     end
  812.     end
  813.  
  814. end
  815. -- WARRIOR END --
  816.  
  817. -- BARBARIAN START --
  818. function BarbarianFirst(cid, message, keywords, parameters, node)
  819.  
  820.     if(not npcHandler:isFocused(cid)) then
  821.         return false
  822.     end
  823.  
  824.     if isPremium(cid) then
  825.     addon = getPlayerStorageValue(cid,barbarian)
  826.     if addon == -1 then
  827.         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
  828.         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
  829.             selfSay(newaddon, cid)
  830.              
  831.             doSendMagicEffect(getCreaturePosition(cid), 13)
  832.             doPlayerAddOutfit(cid, 143, 1)
  833.             doPlayerAddOutfit(cid, 147, 1)
  834.             setPlayerStorageValue(cid,barbarian,1)
  835.         end
  836.         else
  837.             selfSay(noitems, cid)
  838.         end
  839.     else
  840.         selfSay(already, cid)
  841.     end
  842.     end
  843.  
  844. end
  845.  
  846. function BarbarianSecond(cid, message, keywords, parameters, node)
  847.  
  848.     if(not npcHandler:isFocused(cid)) then
  849.         return false
  850.     end
  851.  
  852.     if isPremium(cid) then
  853.     addon = getPlayerStorageValue(cid,barbarian+1)
  854.     if addon == -1 then
  855.         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
  856.         if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5876,50) then
  857.             selfSay(newaddon, cid)
  858.              
  859.             doSendMagicEffect(getCreaturePosition(cid), 13)
  860.             doPlayerAddOutfit(cid, 143, 2)
  861.             doPlayerAddOutfit(cid, 147, 2)
  862.             setPlayerStorageValue(cid,barbarian+1,1)
  863.         end
  864.         else
  865.             selfSay(noitems, cid)
  866.         end
  867.     else
  868.         selfSay(already, cid)
  869.     end
  870.     end
  871.  
  872. end
  873. -- BARBARIAN END --
  874.  
  875. -- DRUID START --
  876. function DruidFirst(cid, message, keywords, parameters, node)
  877.  
  878.     if(not npcHandler:isFocused(cid)) then
  879.         return false
  880.     end
  881.  
  882.     if isPremium(cid) then
  883.     addon = getPlayerStorageValue(cid,druid)
  884.     if addon == -1 then
  885.         if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
  886.         if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then
  887.             selfSay(newaddon, cid)
  888.              
  889.             doSendMagicEffect(getCreaturePosition(cid), 13)
  890.             doPlayerAddOutfit(cid, 144, 1)
  891.             doPlayerAddOutfit(cid, 148, 1)
  892.             setPlayerStorageValue(cid,druid,1)
  893.         end
  894.         else
  895.             selfSay(noitems, cid)
  896.         end
  897.     else
  898.         selfSay(already, cid)
  899.     end
  900.     end
  901.  
  902. end
  903.  
  904. function DruidSecond(cid, message, keywords, parameters, node)
  905.  
  906.     if(not npcHandler:isFocused(cid)) then
  907.         return false
  908.     end
  909.  
  910.     if isPremium(cid) then
  911.     addon = getPlayerStorageValue(cid,druid+1)
  912.     if addon == -1 then
  913.         if getPlayerItemCount(cid,5937) >= 1 and getPlayerItemCount(cid,5939) >= 1 and getPlayerItemCount(cid,5906) >= 100 and getPlayerItemCount(cid,5942) >= 1 and getPlayerItemCount(cid,5940) >= 1 then
  914.         if doPlayerRemoveItem(cid,5937,1) and doPlayerRemoveItem(cid,5939,1) and doPlayerRemoveItem(cid,5906,100) and doPlayerRemoveItem(cid,5942,1) and doPlayerRemoveItem(cid,5940,1) then
  915.             selfSay(newaddon, cid)
  916.              
  917.             doSendMagicEffect(getCreaturePosition(cid), 13)
  918.             doPlayerAddOutfit(cid, 144, 2)
  919.             doPlayerAddOutfit(cid, 148, 2)
  920.             setPlayerStorageValue(cid,druid+1,1)
  921.         end
  922.         else
  923.             selfSay(noitems, cid)
  924.         end
  925.     else
  926.         selfSay(already, cid)
  927.     end
  928.     end
  929.  
  930. end
  931. -- DRUID END --
  932.  
  933. -- WIZARD START --
  934. function WizardFirst(cid, message, keywords, parameters, node)
  935.  
  936.     if(not npcHandler:isFocused(cid)) then
  937.         return false
  938.     end
  939.  
  940.     if isPremium(cid) then
  941.     addon = getPlayerStorageValue(cid,wizard)
  942.     if addon == -1 then
  943.         if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
  944.         if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2536,1) then
  945.             selfSay(newaddon, cid)
  946.             doSendMagicEffect(getCreaturePosition(cid), 13)
  947.             doPlayerAddOutfit(cid, 145, 1)
  948.             doPlayerAddOutfit(cid, 149, 1)
  949.             setPlayerStorageValue(cid,wizard,1)
  950.         end
  951.         else
  952.             selfSay(noitems, cid)
  953.         end
  954.     else
  955.         selfSay(already, cid)
  956.     end
  957.     end
  958.  
  959. end
  960.  
  961. function WizardSecond(cid, message, keywords, parameters, node)
  962.  
  963.     if(not npcHandler:isFocused(cid)) then
  964.         return false
  965.     end
  966.  
  967.     if isPremium(cid) then
  968.     addon = getPlayerStorageValue(cid,wizard+1)
  969.     if addon == -1 then
  970.         if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,wizard) then
  971.         if doPlayerRemoveItem(cid,5922,50) and getPlayerStorageValue(cid,wizard) then
  972.             selfSay(newaddon, cid)
  973.              
  974.             doSendMagicEffect(getCreaturePosition(cid), 13)
  975.             doPlayerAddOutfit(cid, 145, 2)
  976.             doPlayerAddOutfit(cid, 149, 2)
  977.             setPlayerStorageValue(cid,wizard+1,1)
  978.         end
  979.         else
  980.             selfSay(noitems2, cid)
  981.         end
  982.     else
  983.         selfSay(already, cid)
  984.     end
  985.     end
  986.  
  987. end
  988. -- WIZARD END --
  989.  
  990. -- ORIENTAL START --
  991. function OrientalFirst(cid, message, keywords, parameters, node)
  992.  
  993.     if(not npcHandler:isFocused(cid)) then
  994.         return false
  995.     end
  996.  
  997.     if isPremium(cid) then
  998.     addon = getPlayerStorageValue(cid,oriental)
  999.     if addon == -1 then
  1000.         if getPlayerItemCount(cid,5945) >= 1 then
  1001.         if doPlayerRemoveItem(cid,5945,1) then
  1002.             selfSay(newaddon, cid)
  1003.              
  1004.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1005.             doPlayerAddOutfit(cid, 146, 1)
  1006.             doPlayerAddOutfit(cid, 150, 1)
  1007.             setPlayerStorageValue(cid,oriental,1)
  1008.         end
  1009.         else
  1010.             selfSay(noitems, cid)
  1011.         end
  1012.     else
  1013.         selfSay(already, cid)
  1014.     end
  1015.     end
  1016.  
  1017. end
  1018.  
  1019. function OrientalSecond(cid, message, keywords, parameters, node)
  1020.  
  1021.     if(not npcHandler:isFocused(cid)) then
  1022.         return false
  1023.     end
  1024.  
  1025.     if isPremium(cid) then
  1026.     addon = getPlayerStorageValue(cid,oriental+1)
  1027.     if addon == -1 then
  1028.         if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
  1029.         if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveItem(cid,5895,100) and doPlayerRemoveItem(cid,5891,2) and doPlayerRemoveItem(cid,5912,100) then
  1030.             selfSay(newaddon, cid)
  1031.              
  1032.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1033.             doPlayerAddOutfit(cid, 146, 2)
  1034.             doPlayerAddOutfit(cid, 150, 2)
  1035.             setPlayerStorageValue(cid,oriental+1,1)
  1036.         end
  1037.         else
  1038.             selfSay(noitems, cid)
  1039.         end
  1040.     else
  1041.         selfSay(already, cid)
  1042.     end
  1043.     end
  1044.  
  1045. end
  1046. -- ORIENTAL END --
  1047.  
  1048. -- PIRATE START --
  1049. function PirateFirst(cid, message, keywords, parameters, node)
  1050.  
  1051.     if(not npcHandler:isFocused(cid)) then
  1052.         return false
  1053.     end
  1054.  
  1055.     if isPremium(cid) then
  1056.     addon = getPlayerStorageValue(cid,pirate)
  1057.     if addon == -1 then
  1058.         if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
  1059.         if doPlayerRemoveItem(cid,6126,100) and doPlayerRemoveItem(cid,6097,100) and doPlayerRemoveItem(cid,6098,100) then
  1060.             selfSay(newaddon, cid)
  1061.              
  1062.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1063.             doPlayerAddOutfit(cid, 151, 1)
  1064.             doPlayerAddOutfit(cid, 155, 1)
  1065.             setPlayerStorageValue(cid,pirate,1)
  1066.         end
  1067.         else
  1068.             selfSay(noitems, cid)
  1069.         end
  1070.     else
  1071.         selfSay(already, cid)
  1072.     end
  1073.     end
  1074.  
  1075. end
  1076.  
  1077. function PirateSecond(cid, message, keywords, parameters, node)
  1078.  
  1079.     if(not npcHandler:isFocused(cid)) then
  1080.         return false
  1081.     end
  1082.  
  1083.     if isPremium(cid) then
  1084.     addon = getPlayerStorageValue(cid,pirate+1)
  1085.     if addon == -1 then
  1086.         if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
  1087.         if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then
  1088.             selfSay(newaddon, cid)
  1089.              
  1090.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1091.             doPlayerAddOutfit(cid, 151, 2)
  1092.             doPlayerAddOutfit(cid, 155, 2)
  1093.             setPlayerStorageValue(cid,pirate+1,1)
  1094.         end
  1095.         else
  1096.             selfSay(noitems, cid)
  1097.         end
  1098.     else
  1099.         selfSay(already, cid)
  1100.     end
  1101.     end
  1102.  
  1103. end
  1104. -- PIRATE END --
  1105.  
  1106. -- ASSASSIN START --
  1107. function AssassinFirst(cid, message, keywords, parameters, node)
  1108.  
  1109.     if(not npcHandler:isFocused(cid)) then
  1110.         return false
  1111.     end
  1112.  
  1113.     if isPremium(cid) then
  1114.     addon = getPlayerStorageValue(cid,assassin)
  1115.     if addon == -1 then
  1116.         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
  1117.         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
  1118.             selfSay(newaddon, cid)
  1119.              
  1120.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1121.             doPlayerAddOutfit(cid, 152, 1)
  1122.             doPlayerAddOutfit(cid, 156, 1)
  1123.             setPlayerStorageValue(cid,assassin,1)
  1124.         end
  1125.         else
  1126.             selfSay(noitems, cid)
  1127.         end
  1128.     else
  1129.         selfSay(already, cid)
  1130.     end
  1131.     end
  1132.  
  1133. end
  1134.  
  1135. function AssassinSecond(cid, message, keywords, parameters, node)
  1136.  
  1137.     if(not npcHandler:isFocused(cid)) then
  1138.         return false
  1139.     end
  1140.  
  1141.     if isPremium(cid) then
  1142.     addon = getPlayerStorageValue(cid,assassin+1)
  1143.     if addon == -1 then
  1144.         if getPlayerItemCount(cid,5930) >= 1 and getPlayerItemCount(cid,5804) >= 1 then
  1145.         if doPlayerRemoveItem(cid,5930,1) and doPlayerRemoveItem(cid,5804,1) then
  1146.             selfSay(newaddon, cid)
  1147.              
  1148.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1149.             doPlayerAddOutfit(cid, 152, 2)
  1150.             doPlayerAddOutfit(cid, 156, 2)
  1151.             setPlayerStorageValue(cid,assassin+1,1)
  1152.         end
  1153.         else
  1154.             selfSay(noitems, cid)
  1155.         end
  1156.     else
  1157.         selfSay(already, cid)
  1158.     end
  1159.     end
  1160.  
  1161. end
  1162. -- ASSASSIN END --
  1163.  
  1164. -- BEGGAR START --
  1165. function BeggarFirst(cid, message, keywords, parameters, node)
  1166.  
  1167.     if(not npcHandler:isFocused(cid)) then
  1168.         return false
  1169.     end
  1170.      
  1171.     local player_gold     = getPlayerItemCount(cid,2148)
  1172.     local player_plat     = getPlayerItemCount(cid,2152)*100
  1173.     local player_crys     = getPlayerItemCount(cid,2160)*10000
  1174.     local player_money     = player_gold + player_plat + player_crys
  1175.  
  1176.     if isPremium(cid) then
  1177.     addon = getPlayerStorageValue(cid,beggar)
  1178.     if addon == -1 then
  1179.         if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
  1180.         if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveMoney(cid,20000) then
  1181.             selfSay(newaddon, cid)
  1182.              
  1183.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1184.             doPlayerAddOutfit(cid, 153, 1)
  1185.             doPlayerAddOutfit(cid, 157, 1)
  1186.             setPlayerStorageValue(cid,beggar,1)
  1187.         end
  1188.         else
  1189.             selfSay(noitems, cid)
  1190.         end
  1191.     else
  1192.         selfSay(already, cid)
  1193.     end
  1194.     end
  1195.  
  1196. end
  1197.  
  1198. function BeggarSecond(cid, message, keywords, parameters, node)
  1199.  
  1200.     if(not npcHandler:isFocused(cid)) then
  1201.         return false
  1202.     end
  1203.  
  1204.     if isPremium(cid) then
  1205.     addon = getPlayerStorageValue(cid,beggar+1)
  1206.     if addon == -1 then
  1207.         if getPlayerItemCount(cid,6107) >= 1 then
  1208.         if doPlayerRemoveItem(cid,6107,1) then
  1209.             selfSay(newaddon, cid)
  1210.              
  1211.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1212.             doPlayerAddOutfit(cid, 153, 2)
  1213.             doPlayerAddOutfit(cid, 157, 2)
  1214.             setPlayerStorageValue(cid,beggar+1,1)
  1215.         end
  1216.         else
  1217.             selfSay(noitems, cid)
  1218.         end
  1219.     else
  1220.         selfSay(already, cid)
  1221.     end
  1222.     end
  1223.  
  1224. end
  1225. -- BEGGAR END --
  1226.  
  1227. -- SHAMAN START --
  1228. function ShamanSecond(cid, message, keywords, parameters, node)
  1229.  
  1230.     if(not npcHandler:isFocused(cid)) then
  1231.         return false
  1232.     end
  1233.  
  1234.     if isPremium(cid) then
  1235.     addon = getPlayerStorageValue(cid,shaman)
  1236.     if addon == -1 then
  1237.         if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
  1238.         if doPlayerRemoveItem(cid,3955,5) and doPlayerRemoveItem(cid,5015,1) then
  1239.             selfSay(newaddon, cid)
  1240.              
  1241.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1242.             doPlayerAddOutfit(cid, 154, 2)
  1243.             doPlayerAddOutfit(cid, 158, 2)
  1244.             setPlayerStorageValue(cid,shaman,1)
  1245.         end
  1246.         else
  1247.             selfSay(noitems, cid)
  1248.         end
  1249.     else
  1250.         selfSay(already, cid)
  1251.     end
  1252.     end
  1253.  
  1254. end
  1255.  
  1256. function ShamanFirst(cid, message, keywords, parameters, node)
  1257.  
  1258.     if(not npcHandler:isFocused(cid)) then
  1259.         return false
  1260.     end
  1261.  
  1262.     if isPremium(cid) then
  1263.     addon = getPlayerStorageValue(cid,shaman+1)
  1264.     if addon == -1 then
  1265.         if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
  1266.         if doPlayerRemoveItem(cid,3966,5) and doPlayerRemoveItem(cid,3967,5) then
  1267.             selfSay(newaddon, cid)
  1268.              
  1269.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1270.             doPlayerAddOutfit(cid, 154, 1)
  1271.             doPlayerAddOutfit(cid, 158, 1)
  1272.             setPlayerStorageValue(cid,shaman+1,1)
  1273.         end
  1274.         else
  1275.             selfSay(noitems, cid)
  1276.         end
  1277.     else
  1278.         selfSay(already, cid)
  1279.     end
  1280.     end
  1281.  
  1282. end
  1283. -- SHAMAN END --
  1284.  
  1285. -- NORSEMAN START --
  1286. function NorsemanFirst(cid, message, keywords, parameters, node)
  1287.  
  1288.     if(not npcHandler:isFocused(cid)) then
  1289.         return false
  1290.     end
  1291.  
  1292.     if isPremium(cid) then
  1293.     addon = getPlayerStorageValue(cid,norseman)
  1294.     if addon == -1 then
  1295.         if getPlayerItemCount(cid,7290) >= 5 then
  1296.         if doPlayerRemoveItem(cid,7290,5) then
  1297.             selfSay(newaddon, cid)
  1298.              
  1299.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1300.             doPlayerAddOutfit(cid, 251, 1)
  1301.             doPlayerAddOutfit(cid, 252, 1)
  1302.             setPlayerStorageValue(cid,norseman,1)
  1303.         end
  1304.         else
  1305.             selfSay(noitems, cid)
  1306.         end
  1307.     else
  1308.         selfSay(already, cid)
  1309.     end
  1310.     end
  1311.  
  1312. end
  1313.  
  1314. function NorsemanSecond(cid, message, keywords, parameters, node)
  1315.  
  1316.     if(not npcHandler:isFocused(cid)) then
  1317.         return false
  1318.     end
  1319.  
  1320.     if isPremium(cid) then
  1321.     addon = getPlayerStorageValue(cid,norseman+1)
  1322.     if addon == -1 then
  1323.         if getPlayerItemCount(cid,7290) >= 10 then
  1324.         if doPlayerRemoveItem(cid,7290,10) then
  1325.             selfSay(newaddon, cid)
  1326.              
  1327.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1328.             doPlayerAddOutfit(cid, 251, 2)
  1329.             doPlayerAddOutfit(cid, 252, 2)
  1330.             setPlayerStorageValue(cid,norseman+1,1)
  1331.         end
  1332.         else
  1333.             selfSay(noitems, cid)
  1334.         end
  1335.     else
  1336.         selfSay(already, cid)
  1337.     end
  1338.     end
  1339.  
  1340. end
  1341. -- NORSEMAN END --
  1342.  
  1343. -- NIGHTMARE START --
  1344. function NightmareFirst(cid, message, keywords, parameters, node)
  1345.  
  1346.     if(not npcHandler:isFocused(cid)) then
  1347.         return false
  1348.     end
  1349.  
  1350.     if isPremium(cid) then
  1351.     addon = getPlayerStorageValue(cid,nightmare)
  1352.     if addon == -1 then
  1353.         if getPlayerItemCount(cid,6500) >= 500 then
  1354.         if doPlayerRemoveItem(cid,6500,500) then
  1355.             selfSay(newaddon, cid)
  1356.              
  1357.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1358.             doPlayerAddOutfit(cid, 268, 1)
  1359.             doPlayerAddOutfit(cid, 269, 1)
  1360.             setPlayerStorageValue(cid,nightmare,1)
  1361.         end
  1362.         else
  1363.             selfSay(noitems, cid)
  1364.         end
  1365.     else
  1366.         selfSay(already, cid)
  1367.     end
  1368.     end
  1369.  
  1370. end
  1371.  
  1372. function NightmareSecond(cid, message, keywords, parameters, node)
  1373.  
  1374.     if(not npcHandler:isFocused(cid)) then
  1375.         return false
  1376.     end
  1377.  
  1378.     if isPremium(cid) then
  1379.     addon = getPlayerStorageValue(cid,nightmare+1)
  1380.     if addon == -1 then
  1381.         if getPlayerItemCount(cid,6500) >= 1500 then
  1382.         if doPlayerRemoveItem(cid,6500,1500) then
  1383.             selfSay(newaddon, cid)
  1384.              
  1385.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1386.             doPlayerAddOutfit(cid, 268, 2)
  1387.             doPlayerAddOutfit(cid, 269, 2)
  1388.             doPlayerAddItem(cid, 6391, 1)
  1389.             setPlayerStorageValue(cid,nightmare+1,1)
  1390.         end
  1391.         else
  1392.             selfSay(noitems, cid)
  1393.         end
  1394.     else
  1395.         selfSay(already, cid)
  1396.     end
  1397.     end
  1398.  
  1399. end
  1400. -- NIGHTMARE END --
  1401.  
  1402. -- JESTER START --
  1403. function JesterFirst(cid, message, keywords, parameters, node)
  1404.  
  1405.     if(not npcHandler:isFocused(cid)) then
  1406.         return false
  1407.     end
  1408.  
  1409.     if isPremium(cid) then
  1410.     addon = getPlayerStorageValue(cid,jester)
  1411.     if addon == -1 then
  1412.         if getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then
  1413.         if doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then
  1414.             selfSay(newaddon, cid)
  1415.              
  1416.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1417.             doPlayerAddOutfit(cid, 273, 1)
  1418.             doPlayerAddOutfit(cid, 270, 1)
  1419.             setPlayerStorageValue(cid,jester,1)
  1420.         end
  1421.         else
  1422.             selfSay(noitems, cid)
  1423.         end
  1424.     else
  1425.         selfSay(already, cid)
  1426.     end
  1427.     end
  1428.  
  1429. end
  1430.  
  1431. function JesterSecond(cid, message, keywords, parameters, node)
  1432.  
  1433.     if(not npcHandler:isFocused(cid)) then
  1434.         return false
  1435.     end
  1436.  
  1437.     if isPremium(cid) then
  1438.     addon = getPlayerStorageValue(cid,jester+1)
  1439.     if addon == -1 then
  1440.         if getPlayerItemCount(cid,5909) >= 5 then
  1441.         if doPlayerRemoveItem(cid,5909,5) then
  1442.             selfSay(newaddon, cid)
  1443.              
  1444.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1445.             doPlayerAddOutfit(cid, 273, 2)
  1446.             doPlayerAddOutfit(cid, 270, 2)
  1447.             setPlayerStorageValue(cid,jester+1,1)
  1448.         end
  1449.         else
  1450.             selfSay(noitems, cid)
  1451.         end
  1452.     else
  1453.         selfSay(already, cid)
  1454.     end
  1455.     end
  1456.  
  1457. end
  1458. -- JESTER END --
  1459.  
  1460. -- BROTHERHOOD START --
  1461. function BrotherhoodFirst(cid, message, keywords, parameters, node)
  1462.  
  1463.     if(not npcHandler:isFocused(cid)) then
  1464.         return false
  1465.     end
  1466.  
  1467.     if isPremium(cid) then
  1468.     addon = getPlayerStorageValue(cid,brotherhood)
  1469.     if addon == -1 then
  1470.         if getPlayerItemCount(cid,6500) >= 500 then
  1471.         if doPlayerRemoveItem(cid,6500,500) then
  1472.             selfSay(newaddon, cid)
  1473.              
  1474.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1475.             doPlayerAddOutfit(cid, 278, 1)
  1476.             doPlayerAddOutfit(cid, 279, 1)
  1477.             setPlayerStorageValue(cid,brotherhood,1)
  1478.         end
  1479.         else
  1480.             selfSay(noitems, cid)
  1481.         end
  1482.     else
  1483.         selfSay(already, cid)
  1484.     end
  1485.     end
  1486.  
  1487. end
  1488.  
  1489. function BrotherhoodSecond(cid, message, keywords, parameters, node)
  1490.  
  1491.     if(not npcHandler:isFocused(cid)) then
  1492.         return false
  1493.     end
  1494.  
  1495.     if isPremium(cid) then
  1496.     addon = getPlayerStorageValue(cid,brotherhood+1)
  1497.     if addon == -1 then
  1498.         if getPlayerItemCount(cid,6500) >= 1500 then
  1499.         if doPlayerRemoveItem(cid,6500,1500) then
  1500.             selfSay(newaddon, cid)
  1501.              
  1502.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1503.             doPlayerAddOutfit(cid, 278, 2)
  1504.             doPlayerAddOutfit(cid, 279, 2)
  1505.             doPlayerAddItem(cid, 6433, 1)
  1506.             setPlayerStorageValue(cid,brotherhood+1,1)
  1507.         end
  1508.         else
  1509.             selfSay(noitems, cid)
  1510.         end
  1511.     else
  1512.         selfSay(already, cid)
  1513.     end
  1514.     end
  1515.  
  1516. end
  1517. -- BROTHERHOOD END --
  1518.  
  1519. --WAYFARER START --
  1520. function WayfarerFirst(cid, message, keywords, parameters, node)
  1521.  
  1522.     if(not npcHandler:isFocused(cid)) then
  1523.         return false
  1524.     end
  1525.  
  1526.     if isPremium(cid) then
  1527.     addon = getPlayerStorageValue(cid,wayfarer)
  1528.     if addon == -1 then
  1529.         if getPlayerItemCount(cid,12657) >= 1 then
  1530.         if doPlayerRemoveItem(cid,12657,1) then
  1531.             selfSay(newaddon, cid)
  1532.              
  1533.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1534.             doPlayerAddOutfit(cid, 366, 1)
  1535.             doPlayerAddOutfit(cid, 367, 1)
  1536.             setPlayerStorageValue(cid,wayfarer,1)
  1537.         end
  1538.         else
  1539.             selfSay(noitems, cid)
  1540.         end
  1541.     else
  1542.         selfSay(already, cid)
  1543.     end
  1544.     end
  1545.  
  1546. end
  1547.  
  1548. function WayfarerSecond(cid, message, keywords, parameters, node)
  1549.  
  1550.     if(not npcHandler:isFocused(cid)) then
  1551.         return false
  1552.     end
  1553.  
  1554.     if isPremium(cid) then
  1555.     addon = getPlayerStorageValue(cid,wayfarer+1)
  1556.     if addon == -1 then
  1557.         if getPlayerItemCount(cid,12656) >= 1 then
  1558.         if doPlayerRemoveItem(cid,12656,1) then
  1559.             selfSay(newaddon, cid)
  1560.              
  1561.             doSendMagicEffect(getCreaturePosition(cid), 13)
  1562.             doPlayerAddOutfit(cid, 366, 2)
  1563.             doPlayerAddOutfit(cid, 367, 2)
  1564.             setPlayerStorageValue(cid,wayfarer+1,1)
  1565.         end
  1566.         else
  1567.             selfSay(noitems, cid)
  1568.         end
  1569.     else
  1570.         selfSay(already, cid)
  1571.     end
  1572.     end
  1573.  
  1574. end
  1575. -- WAYFARER END --
  1576.  
  1577.  
  1578. 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, Elementalist, Nightmare, Jester and Brotherhood."})
  1579. 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!"})
  1580.  
  1581.  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?'})
  1582.     node1:addChildKeyword({'yes'}, CitizenFirst, {})
  1583.     node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1584.  
  1585.  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?'})
  1586.     node2:addChildKeyword({'yes'}, CitizenSecond, {})
  1587.     node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1588.  
  1589.  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?'})
  1590.     node3:addChildKeyword({'yes'}, HunterFirst, {})
  1591.     node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1592.  
  1593.  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?'})
  1594.     node4:addChildKeyword({'yes'}, HunterSecond, {})
  1595.     node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1596.  
  1597.  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?'})
  1598.     node5:addChildKeyword({'yes'}, MageFirst, {})
  1599.     node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1600.  
  1601.  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?'})
  1602.     node6:addChildKeyword({'yes'}, MageSecond, {})
  1603.     node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1604.  
  1605.  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?'})
  1606.     node7:addChildKeyword({'yes'}, KnightFirst, {})
  1607.     node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1608.  
  1609.  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?'})
  1610.     node8:addChildKeyword({'yes'}, KnightSecond, {})
  1611.     node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1612.      
  1613.  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?'})
  1614.     node9:addChildKeyword({'yes'}, NoblemanFirst, {})
  1615.     node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1616.  
  1617.  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?'})
  1618.     node10:addChildKeyword({'yes'}, NoblemanSecond, {})
  1619.     node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1620.  
  1621.  node11 = keywordHandler:addKeyword({'first summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = '{[MALE]} To achieve the first summoner addon you need to give me a winning lottery ticket. {[FEMALE]} 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?'})
  1622.     node11:addChildKeyword({'yes'}, SummonerFirst, {})
  1623.     node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1624.  
  1625.  node12 = keywordHandler:addKeyword({'second summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = '{[MALE]} 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. {[FEMALE]} You need to give me a ferumbras\' hat. Do you have them with you?'})
  1626.     node12:addChildKeyword({'yes'}, SummonerSecond, {})
  1627.     node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1628.      
  1629.  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?'})
  1630.     node13:addChildKeyword({'yes'}, WarriorFirst, {})
  1631.     node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1632.  
  1633.  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?'})
  1634.     node14:addChildKeyword({'yes'}, WarriorSecond, {})
  1635.     node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1636.  
  1637.  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 spool of yarns. Do you have them with you?'})
  1638.     node15:addChildKeyword({'yes'}, BarbarianFirst, {})
  1639.     node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1640.  
  1641.  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?'})
  1642.     node16:addChildKeyword({'yes'}, BarbarianSecond, {})
  1643.     node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1644.  
  1645.  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?'})
  1646.     node17:addChildKeyword({'yes'}, DruidFirst, {})
  1647.     node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1648.  
  1649.  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, Ceiron\'s waterskin, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain. Do you have them with you?'})
  1650.     node18:addChildKeyword({'yes'}, DruidSecond, {})
  1651.     node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1652.  
  1653.  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?'})
  1654.     node19:addChildKeyword({'yes'}, WizardFirst, {})
  1655.     node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1656.  
  1657.  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?'})
  1658.     node20:addChildKeyword({'yes'}, WizardSecond, {})
  1659.     node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1660.  
  1661.  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?'})
  1662.     node21:addChildKeyword({'yes'}, OrientalFirst, {})
  1663.     node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1664.  
  1665.  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?'})
  1666.     node22:addChildKeyword({'yes'}, OrientalSecond, {})
  1667.     node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1668.  
  1669.  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?'})
  1670.     node23:addChildKeyword({'yes'}, PirateFirst, {})
  1671.     node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1672.  
  1673.  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?'})
  1674.     node24:addChildKeyword({'yes'}, PirateSecond, {})
  1675.     node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1676.  
  1677.  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?'})
  1678.     node25:addChildKeyword({'yes'}, AssassinFirst, {})
  1679.     node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1680.  
  1681.  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?'})
  1682.     node26:addChildKeyword({'yes'}, AssassinSecond, {})
  1683.     node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1684.  
  1685.  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?'})
  1686.     node27:addChildKeyword({'yes'}, BeggarFirst, {})
  1687.     node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1688.  
  1689.  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?'})
  1690.     node28:addChildKeyword({'yes'}, BeggarSecond, {})
  1691.     node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1692.  
  1693.  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?'})
  1694.     node29:addChildKeyword({'yes'}, ShamanSecond, {})
  1695.     node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1696.  
  1697.  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?'})
  1698.     node30:addChildKeyword({'yes'}, ShamanFirst, {})
  1699.     node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1700.  
  1701.  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?'})
  1702.     node31:addChildKeyword({'yes'}, NorsemanFirst, {})
  1703.     node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1704.  
  1705.  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?'})
  1706.     node32:addChildKeyword({'yes'}, NorsemanSecond, {})
  1707.     node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1708.  
  1709.  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?'})
  1710.     node33:addChildKeyword({'yes'}, NightmareFirst, {})
  1711.     node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1712.  
  1713.  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 (you will receive Nightmare Shield). Do you have them with you?'})
  1714.     node34:addChildKeyword({'yes'}, NightmareSecond, {})
  1715.     node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1716.  
  1717.  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?'})
  1718.     node35:addChildKeyword({'yes'}, JesterFirst, {})
  1719.     node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1720.  
  1721.  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?'})
  1722.     node36:addChildKeyword({'yes'}, JesterSecond, {})
  1723.     node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1724.  
  1725.  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?'})
  1726.     node37:addChildKeyword({'yes'}, BrotherhoodFirst, {})
  1727.     node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1728.  
  1729.  node38 = keywordHandler:addKeyword({'second brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second brotherhood addon you need to give me 1500 demonic essences (you will receive Necromancer Shield). Do you have them with you?'})
  1730.     node38:addChildKeyword({'yes'}, BrotherhoodSecond, {})
  1731.     node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1732.  
  1733.     node39 = keywordHandler:addKeyword({'first wayfarer addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first wayfarer addon you need to give me the Old Cape. Do you have them with you?'})
  1734.     node39:addChildKeyword({'yes'}, WayfarerFirst, {})
  1735.     node39:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1736.  
  1737.     node40 = keywordHandler:addKeyword({'second wayfarer addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second wayfarer addon you need to give me the Sedge Hat. Do you have them with you?'})
  1738.     node40:addChildKeyword({'yes'}, WayfarerSecond, {})
  1739.     node40:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1740.  
  1741.    
  1742.     node41 = keywordHandler:addKeyword({'first pumpkin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first pumpkin addon you need to give me 20 Silver Raid Tokens. Do you have them with you?'})
  1743.     node41:addChildKeyword({'yes'}, PumpkinFirst, {})
  1744.     node41:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1745.  
  1746.     node42 = keywordHandler:addKeyword({'second pumpkin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second pumpkin addon you need to give me 20 Silver Raid Tokens. Do you have them with you?'})
  1747.     node42:addChildKeyword({'yes'}, PumpkinSecond, {})
  1748.     node42:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1749.  
  1750.     node43 = keywordHandler:addKeyword({'first yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first Yalaharian addon you need to give me 10 Silver Raid Tokens. Do you have them with you?'})
  1751.     node43:addChildKeyword({'yes'}, YalaharianFirst, {})
  1752.     node43:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1753.  
  1754.     node44 = keywordHandler:addKeyword({'second yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second Yalaharian addon you need to give me 10 Silver Raid Tokens. Do you have them with you?'})
  1755.     node44:addChildKeyword({'yes'}, YalaharianSecond, {})
  1756.     node44:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1757.  
  1758.    
  1759.     node45 = keywordHandler:addKeyword({'first glooth addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first Glooth addon you need to give me 10 Silver Raid Tokens. Do you have them with you?'})
  1760.     node45:addChildKeyword({'yes'}, GloothFirst, {})
  1761.     node45:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1762.  
  1763.     node46 = keywordHandler:addKeyword({'second glooth addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second Glooth addon you need to give me 10 Silver Raid Tokens. Do you have them with you?'})
  1764.     node46:addChildKeyword({'yes'}, GloothSecond, {})
  1765.     node46:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1766.  
  1767.    
  1768.     node47 = keywordHandler:addKeyword({'first rift warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first Rift Warrior addon you need to give me 3 Gold Tokens. Do you have them with you?'})
  1769.     node47:addChildKeyword({'yes'}, riftFirst, {})
  1770.     node47:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1771.  
  1772.     node48 = keywordHandler:addKeyword({'second rift warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second Rift Warrior addon you need to give me 200 Silver Tokens. Do you have them with you?'})
  1773.     node48:addChildKeyword({'yes'}, riftSecond, {})
  1774.     node48:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1775.  -- elementalist
  1776.     node49 = keywordHandler:addKeyword({'first elementalist addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first Elementalist addon you need to give me 1 Elemental Spikes. Do you have them with you?'})
  1777.     node49:addChildKeyword({'yes'}, elementalistFirst, {})
  1778.     node49:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1779.  
  1780.     node50 = keywordHandler:addKeyword({'second elementalist addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second Elementalist addon you need to give me 1 Mages Cap. Do you have them with you?'})
  1781.     node50:addChildKeyword({'yes'}, elementalistSecond, {})
  1782.     node50:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
  1783. -- elementalist end
  1784.  
  1785.  npcHandler:addModule(FocusModule:new())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement