<npc name="Djinn" script="data/npc/scripts/djinnsell.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="80" head="132" body="79" legs="97" feet="132" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|. I buy swords, clubs, axes, helmets, boots, legs, shields and armors." />
<parameter key="shop_sellable" value="royal helmet,2498,30000;warrior helmet,2475,6000;golden legs,2470,100000;mastermind shield,2514,80000;crusader helmet,2497,7500;crown helmet,2491,4000;devil helmet,2462,2000;mystic turban,2663,500;steel boots,2645,70000;boots of haste,2195,30000;dragon scale mail,2492,60000;golden armor,2466,30000;crown armor,2487,15000;knight armor,2476,5000;blue robe,2656,10000;crown legs,2488,12000;knight legs,2477,6000;plate legs,2647,400;demon shield,2520,40000;vampire shield,2534,15000;medusa shield,2536,8000;crown shield,2519,15000;tower shield,2528,8000;guardian shield,2515,2000;beholder shield,2518,1000;dragon shield,2516,4000;giant sword,2393,10000;bright sword,2407,7000;ice rapier,2396,4000;fire sword,2392,4000;serpent sword,2409,1500;spike sword,2383,500;broad sword,2413,800;dragon lance,2414,12000;guardian halberd,2427,8000;fire axe,2432,10000;knight axe,2430,2000;battle axe,2378,100;war hammer,2391,6000;skull staff,2436,6000;dragon hammer,2434,2000;wand of inferno,2187,1400;platinum amulet,2171,3000;dragonbone staff,7430,800;halberd,2381,800;broadsword,2413,400;chain legs,2648,250;diamond sceptre,7387,2000;dragon slayer,7402,1700;demonrage sword,7382,2700;demon dust,5906,120;plate armor,2463,600;" />
</parameters>
</npc>
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay')
shopModule:addBuyableItem({'wand of draconia', 'plague'}, 8921, 7500, 'wand of draconia')
shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic'}, 2189, 10000, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragon'}, 2191, 1000, 'wand of dragonbreath')
shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod')
shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm rod'}, 2183, 15000, 'hailstorm rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod')
shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod')
shopModule:addBuyableItem({'ultimate health potion', 'uhp'}, 8473, 310, 'ultimate health potion')
shopModule:addBuyableItem({'great health potion', 'ghp'}, 7591, 190, 'great health potion')
shopModule:addBuyableItem({'strong health potion', 'shp'}, 7588, 100, 'strong health potion')
shopModule:addBuyableItem({'health potion', 'hp'}, 7618, 45, 'health potion')
shopModule:addBuyableItem({'great spirit potion', 'gsp'}, 8472, 190, 'great spirit potion')
shopModule:addBuyableItem({'great mana potion', 'gmp'}, 7590, 120, 'great mana potion')
shopModule:addBuyableItem({'strong mana potion', 'smp'}, 7589, 80, 'strong mana potion')
shopModule:addBuyableItem({'mana potion', 'mp'}, 7620, 50, 'mana potion')
shopModule:addBuyableItem({'light wand', 'lightwand'}, 2163, 500, 'magic light wand')
shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 2311, 300, 20, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 2304, 500, 20, 'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 2313, 800, 20, 'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 2273, 700, 20, 'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 2268, 1000, 20, 'sudden death rune')
shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 'blank rune')
shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
npcHandler:addModule(FocusModule:new())
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function buyBlessing(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerBlessing(cid, parameters.blessing) then
npcHandler:say("A god has already blessed you with this blessing.", cid)
elseif isPremium(cid) == TRUE then
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddBlessing(cid, parameters.blessing)
npcHandler:say("You have been blessed by one of the five gods!", cid)
else
npcHandler:say("You don't have enough money.", cid)
end
else
npcHandler:say("You need a premium account to buy blessings.", cid)
end
keywordHandler:moveUp(1)
return true
end
local node1 = keywordHandler:addKeyword({'first bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the first blessing for 10000 gold coins?'})
node1:addChildKeyword({'yes'}, buyBlessing, {blessing = 1})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then not.'})
local node2 = keywordHandler:addKeyword({'second bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the second blessing for 10000 gold coins?'})
node2:addChildKeyword({'yes'}, buyBlessing, {blessing = 2})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then not.'})
local node3 = keywordHandler:addKeyword({'third bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the third blessing for 10000 gold coins?'})
node3:addChildKeyword({'yes'}, buyBlessing, {blessing = 3})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then not.'})
local node4 = keywordHandler:addKeyword({'fourth bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the fourth blessing for 10000 gold coins?'})
node4:addChildKeyword({'yes'}, buyBlessing, {blessing = 4})
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then not.'})
local node5 = keywordHandler:addKeyword({'fifth bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the fifth blessing for 10000 gold coins?'})
node5:addChildKeyword({'yes'}, buyBlessing, {blessing = 5})
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then not.'})
keywordHandler:addKeyword({'blessing'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can provide you with five blessings... the 'first bless', 'second bless', 'third bless', 'fourth bless' and the 'fifth bless', they cost 10000 gold coins each."})
keywordHandler:addKeyword({'blessings'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can provide you with five blessings... the 'first bless', 'second bless', 'third bless', 'fourth bless' and the 'fifth bless', they cost 10000 gold coins each."})
keywordHandler:addKeyword({'offer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can provide you with five blessings... the 'first bless', 'second bless', 'third bless', 'fourth bless' and the 'fifth bless', they cost 10000 gold coins each."})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can provide you with five blessings... the 'first bless', 'second bless', 'third bless', 'fourth bless' and the 'fifth bless', they cost 10000 gold coins each."})
npcHandler:addModule(FocusModule:new())
crown helmet,2491,4000;
(Name,id,cost in gold)
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItemContainer({'bp blank'}, 1988, 2260, 220, 'bp blank rune')
shopModule:addBuyableItemContainer({'bp animate dead'}, 1998, 2316, 7520, 1, 'bp animate dead rune')
shopModule:addBuyableItemContainer({'bp antidote'}, 2003, 2266, 1320, 1, 'bp antidote rune')
shopModule:addBuyableItemContainer({'bp avalanche'}, 2002, 2274, 3620,4, 'bp avalanche rune')
shopModule:addBuyableItemContainer({'bp chameleon'}, 1998, 2291, 4220,1, 'bp chameleon rune')
shopModule:addBuyableItemContainer({'bp convince creature'}, 1998, 2290, 1620,1, 'bp convince creature rune')
shopModule:addBuyableItemContainer({'bp desintegrate'}, 2001, 2310, 1620,3, 'bp desintegrate rune')
shopModule:addBuyableItemContainer({'bp destroy field'}, 2003, 2261, 920,3, 'bp destroy field')
shopModule:addBuyableItemContainer({'bp energy bomb'}, 2003, 2262, 6520,2, 'bp energy bomb rune')
shopModule:addBuyableItemContainer({'bp energy field'}, 1998, 2277, 2320,3, 'bp energy field')
shopModule:addBuyableItemContainer({'bp energy wall'}, 2002, 2279, 6820,4, 'bp energy wall rune')
shopModule:addBuyableItemContainer({'bp explosion'}, 2001, 2313, 3820,6, 'bp explosion rune')
shopModule:addBuyableItemContainer({'bp fire bomb'}, 2000, 2305, 4720,2, 'bp fire bomb rune')
shopModule:addBuyableItemContainer({'bp fire field'}, 2000, 2301, 1720,3, 'bp fire field rune')
shopModule:addBuyableItemContainer({'bp fire wall'}, 2000, 2303, 4920,4, 'bp fire wall rune')
shopModule:addBuyableItemContainer({'bp fireball'}, 2000, 2302, 3020,5, 'bp fire ball')
shopModule:addBuyableItemContainer({'bp great fireball'}, 2000, 2304, 3620,4, 'bp great fireball rune')
shopModule:addBuyableItemContainer({'bp heavy magic missile'}, 2001, 2311, 2420,10, 'bp heavy magic missile rune')
shopModule:addBuyableItemContainer({'bp holy missile'}, 1999, 2295, 1600,5, 'bp holy missile rune')
shopModule:addBuyableItemContainer({'bp icicle'}, 2002, 2271, 3020,5, 'bp icicle rune')
shopModule:addBuyableItemContainer({'bp intense healing'}, 2003, 2265, 1920,1, 'bp intense healing rune')
shopModule:addBuyableItemContainer({'bp light magic missile'}, 1998, 2287, 820,10, 'bp light magic missile rune')
shopModule:addBuyableItemContainer({'bp magic wall'}, 1999, 2293, 7020,3, 'bp magic wall rune')
shopModule:addBuyableItemContainer({'bp paralyze'}, 2002, 2278, 1420,1, 'bp paralyze rune')
shopModule:addBuyableItemContainer({'bp poison bomb'}, 1998, 2286, 3420,2, 'bp poison bomb rune')
shopModule:addBuyableItemContainer({'bp poison field'}, 1998, 2285, 1320,3, 'bp poison field')
shopModule:addBuyableItemContainer({'bp poison wall'}, 1998, 2289, 4220,4, 'bp poison wall rune')
shopModule:addBuyableItemContainer({'bp soulfire'}, 2000, 2308, 2820,3, 'bp soulfire rune')
shopModule:addBuyableItemContainer({'bp stalagmite'}, 1998, 2292, 2400,10, 'bp stalagmite rune')
shopModule:addBuyableItemContainer({'bp stone shower'}, 1999, 2288, 3020,4, 'bp stoneshower rune')
shopModule:addBuyableItemContainer({'bp sudden death'}, 2003, 2268, 6520,3, 'bp sudden death rune')
shopModule:addBuyableItemContainer({'bp thunderstorm'}, 1999, 2268, 3020,4, 'bp thunderstorm rune')
shopModule:addBuyableItemContainer({'bp ultimate healing'}, 2002, 2273, 3520,1, 'bp ultimate healing rune')
shopModule:addBuyableItemContainer({'bp wild growth'}, 2002, 2269, 6420,2, 'bp wild growth rune')
shopModule:addBuyableItemContainer({'bp slhp'}, 2000, 8704, 400, 1, 'backpack of small health potions')
shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions')
shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions')
shopModule:addBuyableItemContainer({'bp shp'}, 2000, 7588, 2000, 1, 'backpack of strong health potions')
shopModule:addBuyableItemContainer({'bp smp'}, 2001, 7589, 1600, 1, 'backpack of strong mana potions')
shopModule:addBuyableItemContainer({'bp ghp'}, 2000, 7591, 3800, 1, 'backpack of great health potions')
shopModule:addBuyableItemContainer({'bp gmp'}, 2001, 7590, 2400, 1, 'backpack of great mana potions')
shopModule:addBuyableItemContainer({'bp gsp'}, 1999, 8472, 3800, 1, 'backpack of great spirit potions')
shopModule:addBuyableItemContainer({'bp uhp'}, 2000, 8473, 6200, 1, 'backpack of ultimate health potions')
shopModule:addBuyableItemContainer({'bp ap'}, 2002, 8474, 2000, 1, 'backpack of antidote potions')
shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand')
shopModule:addBuyableItem({'small health'}, 8704, 20, 'small health potion')
shopModule:addBuyableItem({'health potion'}, 7618, 45, 'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 'mana potion')
shopModule:addBuyableItem({'strong health'}, 7588, 100, 'strong health potion')
shopModule:addBuyableItem({'strong mana'}, 7589, 80, 'strong mana potion')
shopModule:addBuyableItem({'great health'}, 7591, 190, 'great health potion')
shopModule:addBuyableItem({'great mana'}, 7590, 120, 'great mana potion')
shopModule:addBuyableItem({'great spirit'}, 8472, 190, 'great spirit potion')
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 'ultimate health potion')
shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 'antidote potion')
shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask')
shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask')
shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask')
shopModule:addBuyableItem({'blank rune'}, 2260, 10, 'blank rune')
shopModule:addBuyableItem({'animate dead'}, 2316, 375, 'animate dead rune')
shopModule:addBuyableItem({'antidote'}, 2266, 65, 'antidote rune')
shopModule:addBuyableItem({'avalanche'}, 2274, 180, 'avalanche rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 210, 'chameleon rune')
shopModule:addBuyableItem({'convince creature'}, 2290, 80, 'convince creature rune')
shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 'desintegrate rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 45, 'destroy field')
shopModule:addBuyableItem({'energy bomb'}, 2262, 325, 'energy bomb rune')
shopModule:addBuyableItem({'energy field'}, 2277, 115, 'energy field')
shopModule:addBuyableItem({'energy wall'}, 2279, 340, 'energy wall rune')
shopModule:addBuyableItem({'explosion'}, 2313, 190, 'explosion rune')
shopModule:addBuyableItem({'fire bomb'}, 2305, 235, 'fire bomb rune')
shopModule:addBuyableItem({'fire field'}, 2301, 85, 'fire field rune')
shopModule:addBuyableItem({'fire wall'}, 2303, 245, 'fire wall rune')
shopModule:addBuyableItem({'fireball'}, 2302, 150, 'fire ball')
shopModule:addBuyableItem({'great fireball'}, 2304, 180, 'great fireball rune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 120, 'heavy magic missile rune')
shopModule:addBuyableItem({'holy missile missile'}, 2295, 80, 'holy missile rune')
shopModule:addBuyableItem({'icicle'}, 2271, 150, 'icicle rune')
shopModule:addBuyableItem({'intense healing'}, 2265, 95, 'intense healing rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 'light magic missile rune')
shopModule:addBuyableItem({'magic wall'}, 2293, 350, 'magic wall rune')
shopModule:addBuyableItem({'paralyze'}, 2278, 700, 'paralyze rune')
shopModule:addBuyableItem({'poison bomb'}, 2286, 170, 'poison bomb rune')
shopModule:addBuyableItem({'poison field'}, 2285, 65, 'poison field')
shopModule:addBuyableItem({'poison wall'}, 2289, 210, 'poison wall rune')
shopModule:addBuyableItem({'soulfire'}, 2308, 140, 'soulfire rune')
shopModule:addBuyableItem({'stalagmite'}, 2292, 120, 'stalagmite rune')
shopModule:addBuyableItem({'stone shower'}, 2288, 150, 'stoneshower rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 325, 'sudden death rune')
shopModule:addBuyableItem({'thunderstorm'}, 2268, 150, 'thunderstorm rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 'ultimate healing rune')
shopModule:addBuyableItem({'wild growth'}, 2269, 320, 'wild growth rune')
shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay')
shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 'wand of draconia')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno')
shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm')
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo')
shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod')
shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 'hailstorm rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod')
shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod')
shopModule:addSellableItem({'wand of vortex', 'vortex'}, 2190, 250, 'wand of vortex')
shopModule:addSellableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 500, 'wand of dragonbreath')
shopModule:addSellableItem({'wand of decay', 'decay'}, 2188, 2500, 'wand of decay')
shopModule:addSellableItem({'wand of draconia', 'draconia'}, 8921, 3750, 'wand of draconia')
shopModule:addSellableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 5000, 'wand of cosmic energy')
shopModule:addSellableItem({'wand of inferno', 'inferno'},2187, 7500, 'wand of inferno')
shopModule:addSellableItem({'wand of starstorm', 'starstorm'}, 8920, 9000, 'wand of starstorm')
shopModule:addSellableItem({'wand of voodoo', 'voodoo'}, 8922, 11000, 'wand of voodoo')
shopModule:addSellableItem({'snakebite rod', 'snakebite'}, 2182, 250,'snakebite rod')
shopModule:addSellableItem({'moonlight rod', 'moonlight'}, 2186, 500, 'moonlight rod')
shopModule:addSellableItem({'necrotic rod', 'necrotic'}, 2185, 2500, 'necrotic rod')
shopModule:addSellableItem({'northwind rod', 'northwind'}, 8911, 3750, 'northwind rod')
shopModule:addSellableItem({'terra rod', 'terra'}, 2181, 5000, 'terra rod')
shopModule:addSellableItem({'hailstorm rod', 'hailstorm'}, 2183, 7500, 'hailstorm rod')
shopModule:addSellableItem({'springsprout rod', 'springsprout'}, 8912, 9000, 'springsprout rod')
shopModule:addSellableItem({'underworld rod', 'underworld'}, 8910, 11000, 'underworld rod')
npcHandler:addModule(FocusModule:new())
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'nightmare blade', 'nightmare blade'}, 7418, 60000, 'nightmare blade')
shopModule:addSellableItem({'two handed sword', 'two handed sword'}, 2377, 500, 'two handed sword')
shopModule:addSellableItem({'spike sword', 'spike sword'}, 2383, 1000, 'spike sword')
shopModule:addSellableItem({'fire sword', 'fire sword'}, 2392, 4000, 'fire sword')
shopModule:addSellableItem({'giant sword', 'giant sword'}, 2393, 17000, 'giant sword')
shopModule:addSellableItem({'ice rapier', 'ice rapier'}, 2396, 1000, 'ice rapier')
shopModule:addSellableItem({'bright sword', 'bright sword'}, 2407, 6000, 'bright sword')
shopModule:addSellableItem({'serpent sword', 'serpent sword'}, 2409, 900, 'serpent sword')
shopModule:addSellableItem({'poison dagger', 'poison dagger'}, 2411, 50, 'poison dagger')
shopModule:addSellableItem({'broad sword', 'broad sword'}, 2413, 500, 'broad sword')
shopModule:addSellableItem({'demonrage sword', 'demonrage sword'}, 7382, 36000, 'demonrage sword')
shopModule:addSellableItem({'relic sword', 'relic sword'}, 7383, 25000, 'relic sword')
shopModule:addSellableItem({'mystic blade', 'mystic blade'}, 7384, 30000, 'mystic blade')
shopModule:addSellableItem({'crimson sword', 'crimson sword'}, 7385, 500, 'crimson sword')
shopModule:addSellableItem({'mercenary sword', 'mercenary sword'}, 7386, 12000, 'mercenary sword')
shopModule:addSellableItem({'dragon slayer', 'dragon slayer'}, 7402, 15000, 'dragon slayer')
shopModule:addSellableItem({'assassin dagger', 'assassin dagger'}, 7404, 25000, 'assassin dagger')
shopModule:addSellableItem({'blacksteel sword', 'blacksteel sword'}, 7406, 4000, 'blacksteel sword')
shopModule:addSellableItem({'haunted blade', 'haunted blade'}, 7407, 30000, 'haunted blade')
shopModule:addSellableItem({'wyvern fang', 'wyvern fang'}, 7408, 2500, 'wyvern fang')
shopModule:addSellableItem({'bloody edge', 'bloody edge'}, 7416, 100000, 'bloody edge')
shopModule:addSellableItem({'nightmare blade', 'nightmare blade'}, 7418, 35000, 'nightmare blade')
shopModule:addSellableItem({'dreaded cleaver', 'dreaded cleaver'}, 7419, 10000, 'dreaded cleaver')
shopModule:addSellableItem({'mechanic sytche', 'mechanic sytche'}, 7420, 12000, 'mechanic sytche')
shopModule:addSellableItem({'crystal sword', 'crystal sword'}, 7449, 800, 'crystal sword')
shopModule:addSellableItem({'iron hammer', 'iron hammer'}, 2422, 100, 'iron hammer')
shopModule:addSellableItem({'clerical mace', 'clerical mace'}, 2423, 500, 'clerical mace')
shopModule:addSellableItem({'dragon hammer', 'dragon hammer'}, 2434, 2000, 'dragon hammer')
shopModule:addSellableItem({'skull staff', 'skull staff'}, 2436, 6000, 'skull staff')
shopModule:addSellableItem({'banana staff', 'banana staff'}, 3966, 1000, 'banana staff')
shopModule:addSellableItem({'brutetamers staff', 'brutetamers staff'}, 7379, 1500, 'brutetamers staff')
shopModule:addSellableItem({'mammoth whopper', 'mammoth whopper'}, 7381, 500, 'mammoth whopper')
shopModule:addSellableItem({'diamond sceptre', 'diamond sceptre'}, 7387, 3000, 'diamond sceptre')
shopModule:addSellableItem({'orcish maul', 'orcish maul'}, 7392, 4000, 'orcish maul')
shopModule:addSellableItem({'sapphire hammer', 'sapphire hammer'}, 7437, 7000, 'sapphire hammer')
shopModule:addSellableItem({'shadow sceptre', 'shadow sceptre'}, 7451, 10000, 'shadow sceptre')
shopModule:addSellableItem({'spiked squelcher', 'spiked squelcher'}, 7452, 5000, 'spiked squelcher')
shopModule:addSellableItem({'queens sceptre', 'queens sceptre'}, 7410, 50000, 'queens sceptre')
shopModule:addSellableItem({'cranial basher', 'cranial basher'}, 7415, 30000, 'cranial basher')
shopModule:addSellableItem({'lunar staff', 'lunar staff'}, 7424, 5000, 'lunar staff')
shopModule:addSellableItem({'taurus mace', 'taurus mace'}, 7425, 600, 'taurus mace')
shopModule:addSellableItem({'amber staff', 'amber staff'}, 7426, 8000, 'amber staff')
shopModule:addSellableItem({'chaos mace', 'chaos mace'}, 7427, 25000, 'chaos mace')
shopModule:addSellableItem({'blessed sceptre', 'blessed sceptre'}, 7429, 70000, 'blessed sceptre')
shopModule:addSellableItem({'dragonbone staff', 'dragonbone staff'}, 7430, 3000, 'dragonbone staff')
shopModule:addSellableItem({'demonbone', 'demonbone'}, 7431, 20000, 'demonbone')
shopModule:addSellableItem({'furry club', 'furry club'}, 7432, 1000, 'furry club')
shopModule:addSellableItem({'battle axe', 'battle axe'}, 2378, 100, 'battle axe')
shopModule:addSellableItem({'halberd', 'halberd'}, 2381, 400, 'halberd')
shopModule:addSellableItem({'double axe', 'double axe'}, 2387, 300, 'double axe')
shopModule:addSellableItem({'dragon lance', 'dragon lance'}, 2314, 9000, 'dragon lance')
shopModule:addSellableItem({'obsidian lance', 'obsidian lance'}, 2425, 500, 'obsidian lance')
shopModule:addSellableItem({'naginata', 'naginata'}, 2426, 1000, 'naginata')
shopModule:addSellableItem({'guardian halberd', 'guardian halberd'}, 2427, 5000, 'guardian halberd')
shopModule:addSellableItem({'orcish axe', 'orcish axe'}, 2428, 200, 'orcish axe')
shopModule:addSellableItem({'barbarian axe', 'barbarian axe'}, 2429, 300, 'barbarian axe')
shopModule:addSellableItem({'knight axe', 'knight axe'}, 2430, 2000, 'knight axe')
shopModule:addSellableItem({'fire axe', 'fire axe'}, 2432, 7000, 'fire axe')
shopModule:addSellableItem({'dwarven axe', 'dwarven axe'}, 2435, 2000, 'dwarven axe')
shopModule:addSellableItem({'daramanian waraxe', 'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe')
shopModule:addSellableItem({'war axe', 'war axe'}, 2454, 9000, 'war axe')
shopModule:addSellableItem({'beastslayer axe', 'beastslayer axe'}, 3962, 1500, 'beastslayer axe')
shopModule:addSellableItem({'royal axe', 'royal axe'}, 7434, 70000, 'royal axe')
shopModule:addSellableItem({'heroic axe', 'heroic axe'}, 7389, 30000, 'cranial basher')
shopModule:addSellableItem({'headchopper', 'headchopper'}, 7380, 4000, 'headchopper')
npcHandler:addModule(FocusModule:new())
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'paladin armor', 'paladin armor'}, 8891, 15000, 'paladin armor')
shopModule:addSellableItem({'dragon scale mail', 'dsm'}, 2492, 40000, 'dragon scale mail')
shopModule:addSellableItem({'dwarven armor', 'dwarven armor'}, 2503, 30000, 'dwarven armor')
shopModule:addSellableItem({'golden armor', 'golden armor'}, 2466, 20000, 'golden armor')
shopModule:addSellableItem({'leopard armor', 'leopard armor'}, 3968, 1000, 'leopard armor')
shopModule:addSellableItem({'mammoth fur cape', 'mfc'}, 7463, 6000, 'mammoth fur cape')
shopModule:addSellableItem({'magic plate armor', 'magic plate armor'}, 2472, 100000, 'magic plate armor')
shopModule:addSellableItem({'knight armor', 'knight armor'}, 2476, 5000, 'knight armor')
shopModule:addSellableItem({'noble armor', 'noble armor'}, 2486, 900, 'noble armor')
shopModule:addSellableItem({'crown armor', 'crown armor'}, 2487, 12000, 'crown armor')
shopModule:addSellableItem({'pirate shirt', 'pirate shirt'}, 6095, 500, 'pirate shirt')
shopModule:addSellableItem({'dark armor', 'dark armor'}, 2489, 500, 'dark armor')
shopModule:addSellableItem({'blue robe', 'blue robe'}, 2656, 11000, 'blue robe')
shopModule:addSellableItem({'terra mantle', 'terra mantle'}, 7884, 11000, 'terra mantle')
shopModule:addSellableItem({'glacier robe', 'glacier robe'}, 7897, 11000, 'glacier rope')
shopModule:addSellableItem({'lighting robe', 'lighting robe'}, 7898, 11000, 'lighting robe')
shopModule:addSellableItem({'magma coat', 'magma coat'}, 7899, 11000, 'magma coat')
shopModule:addSellableItem({'golden legs', 'golden legs'}, 2470, 100000, 'golden legs')
shopModule:addSellableItem({'knight legs', 'knight legs'}, 2477, 5000, 'knight legs')
shopModule:addSellableItem({'crown legs', 'crown legs'}, 2488, 12000, 'crown legs')
shopModule:addSellableItem({'plate legs', 'plate legs'}, 2647, 200, 'plate legs')
shopModule:addSellableItem({'mammoth fur shorts', 'mfs'}, 7464, 850, 'mammoth fur shorts')
shopModule:addSellableItem({'terra legs', 'terra legs'}, 7885, 11000, 'terra legs')
shopModule:addSellableItem({'magma legs', 'magma legs'}, 7894, 11000, 'magma legs')
shopModule:addSellableItem({'lighting legs', 'lighting legs'}, 7895, 11000, 'lighting legs')
shopModule:addSellableItem({'glacier kilt', 'glacier kilt'}, 7896, 11000, 'glacier kilt')
shopModule:addSellableItem({'bast skirt', 'bast skirt'}, 3983, 750, 'bast skirt')
shopModule:addSellableItem({'blue legs', 'blue legs'}, 7730, 15000, 'blue legs')
shopModule:addSellableItem({'pirate knee breeches', 'pkb'}, 5918, 200, 'pirate knee breeches')
shopModule:addSellableItem({'mastermind shield', 'mastermind shield'}, 2514, 70000, 'mastermind shield')
shopModule:addSellableItem({'guardian shield', 'guardian shield'}, 2515, 2000, 'guardian shield')
shopModule:addSellableItem({'dragon shield', 'dragon shield'}, 2516, 4000, 'dragon shield')
shopModule:addSellableItem({'beholder shield', 'beholder shield'}, 2518, 1200, 'beholder shield')
shopModule:addSellableItem({'crown shield', 'crown shield'}, 2519, 8000, 'crown shield')
shopModule:addSellableItem({'demon shield', 'demon shield'}, 2520, 30000, 'demon shield')
shopModule:addSellableItem({'dark shield', 'dark shield'}, 2521, 400, 'dark shield')
shopModule:addSellableItem({'dwarven shield', 'dwarven shield'}, 2525, 100, 'dwarven shield')
shopModule:addSellableItem({'tower shield', 'tower shield'}, 6128, 8000, 'tower shield')
shopModule:addSellableItem({'black shield', 'black shield'}, 2529, 1000, 'black shield')
shopModule:addSellableItem({'copper shield', 'copper shield'}, 2530, 30, 'copper shield')
shopModule:addSellableItem({'viking shield', 'viking shield'}, 2531, 100, 'viking shield')
shopModule:addSellableItem({'ancient shield', 'ancient shield'}, 2532, 1000, 'ancient shield')
shopModule:addSellableItem({'griffin shield', 'griffin shield'}, 2533, 1500, 'griffin shield')
shopModule:addSellableItem({'vampire shield', 'vampire shield'}, 2534, 15000, 'vampire shield')
shopModule:addSellableItem({'medusa shield', 'medusa shield'}, 2536, 9000, 'medusa shield')
shopModule:addSellableItem({'scarab shield', 'scarab shield'}, 2540, 2000, 'scarab shield')
shopModule:addSellableItem({'bone shield', 'bone shield'}, 2541, 160, 'bone shield')
shopModule:addSellableItem({'tusk shield', 'tusk shield'}, 3973, 1000, 'tusk shield')
shopModule:addSellableItem({'sentinel shield', 'sentinel shield'}, 3974, 700, 'sentinel shield')
shopModule:addSellableItem({'salamander shield', 'salamander shield'}, 3975, 600, 'salamander shield')
shopModule:addSellableItem({'tortoise shield', 'tortoise shield'}, 6131, 150, 'tortoise shield')
shopModule:addSellableItem({'norse shield', 'norse shield'}, 7460, 1500, 'norse shield')
shopModule:addSellableItem({'steel helmet', 'steel helmet'}, 2457, 300, 'steel helmet')
shopModule:addSellableItem({'devil helmet', 'devil helmet'}, 2462, 1000, 'devil helmet')
shopModule:addSellableItem({'warrior helmet', 'warrior helmet'}, 2475, 5000, 'warrior helmet')
shopModule:addSellableItem({'strange helmet', 'strange helmet'}, 2479, 500, 'strange helmet')
shopModule:addSellableItem({'dark helmet', 'dark helmet'}, 2490, 250, 'dark helmet')
shopModule:addSellableItem({'crown helmet', 'crown helmet'}, 2491, 2500, 'crown helmet')
shopModule:addSellableItem({'crusader helmet', 'crusader helmet'}, 2497, 6000, 'crusader helmet')
shopModule:addSellableItem({'royal helmet', 'royal helmet'}, 2498, 30000, 'royal helmet')
shopModule:addSellableItem({'mystic turban', 'mystic turban'}, 2663, 150, 'mystic turban')
shopModule:addSellableItem({'tribal mask', 'tribal mask'}, 3967, 250, 'tribal mask')
shopModule:addSellableItem({'horseman helmet', 'horseman helmet'}, 3969, 300, 'horseman helmet')
shopModule:addSellableItem({'feather headdress', 'feather head'}, 3970, 850, 'feather headdress')
shopModule:addSellableItem({'charmer tiara', 'charmer tiara'}, 3971, 900, 'charmer tiara')
shopModule:addSellableItem({'beholder helmet', 'beholder helmet'}, 3972, 7500, 'beholder helmet')
shopModule:addSellableItem({'skull helmet', 'skull helmet'}, 5741, 40000, 'skull helmet')
shopModule:addSellableItem({'pirate hat', 'pirate hat'}, 6096, 1000, 'pirate hat')
shopModule:addSellableItem({'krimhorn helmet', 'krimhorn helmet'}, 7461, 200, 'krimhorn helmet')
shopModule:addSellableItem({'ragnir helmet', 'ragnir helmet'}, 7462, 400, 'ragnir helmet')
shopModule:addSellableItem({'earmuffs', 'earmuffs'}, 7459, 1000, 'earmuffs')
shopModule:addSellableItem({'terra hood', 'terra hood'}, 7903, 2500, 'terra hood')
shopModule:addSellableItem({'lighting headband', 'lightning headband'}, 7901, 2500, 'lighting headband')
shopModule:addSellableItem({'glacier mask', 'glacier mask'}, 7902, 2500, 'glacier mask')
shopModule:addSellableItem({'magma monocle', 'magma monocle'}, 7900, 2500, 'magma monocle')
shopModule:addSellableItem({'boots of haste', 'boots of haste'}, 2195, 30000, 'boots of haste')
shopModule:addSellableItem({'patched boots', 'patched boots'}, 2641, 2000, 'patched boots')
shopModule:addSellableItem({'steel boots', 'steel boots'}, 2645, 30000, 'steel boots')
shopModule:addSellableItem({'crocodile boots', 'crocodile boots'}, 3982, 1000, 'crocodile boots')
shopModule:addSellableItem({'pirate boots', 'pirate boots'}, 5462, 3000, 'pirate boots')
shopModule:addSellableItem({'fur boots', 'fur boots'}, 7457, 2000, 'fur boots')
shopModule:addSellableItem({'terra boots', 'terra boots'}, 7886, 2500, 'terra boots')
shopModule:addSellableItem({'magma boots', 'magma boots'}, 7891, 2500, 'magma boots')
shopModule:addSellableItem({'glacier shoes', 'glacier shoes'}, 7892, 2500, 'glacier shoes')
shopModule:addSellableItem({'lighting boots', 'lighting boots'}, 7893, 2500, 'lighting boots')
npcHandler:addModule(FocusModule:new())