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:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand')
shopModule:addBuyableItemContainer({'backpack of animate dead rune'}, 2001, 2316, 7520, 1, 'backpack of animate dead rune')
shopModule:addBuyableItem({'animate dead rune'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItemContainer({'backpack of antidote rune'}, 2003, 2266, 1320, 1, 'backpack of antidote rune')
shopModule:addBuyableItem({'antidote rune'}, 2266, 65, 1, 'antidote rune')
shopModule:addBuyableItemContainer({'backpack of blank rune'}, 1988, 2260, 220, 1, 'backpack of blank rune')
shopModule:addBuyableItem({'blank rune'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItemContainer({'backpack of chameleon rune'}, 1999, 2291, 4220, 1, 'backpack of chameleon rune')
shopModule:addBuyableItem({'chameleon rune'}, 2291, 210, 1, 'chameleon rune')
shopModule:addBuyableItemContainer({'backpack of convince creature rune'}, 1999, 2290, 1620, 1, 'backpack of convince creature rune')
shopModule:addBuyableItem({'convince creature rune'}, 2290, 80, 1, 'convince creature rune')
shopModule:addBuyableItemContainer({'backpack of desintegrate rune'}, 2001, 2310, 1620, 3, 'backpack of desintegrate rune')
shopModule:addBuyableItem({'desintegrate rune'}, 2310, 80, 3, 'disintegrate rune')
shopModule:addBuyableItemContainer({'backpack of destroy field rune'}, 2003, 2261, 920, 3, 'backpack of destroy field rune')
shopModule:addBuyableItem({'destroy field rune'}, 2261, 45, 3, 'destroy field rune')
shopModule:addBuyableItemContainer({'backpack of energybomb rune'}, 2002, 2262, 6520, 2, 'backpack of energybomb rune')
shopModule:addBuyableItem({'energy bomb rune'}, 2262, 325, 2, 'energy bomb rune')
shopModule:addBuyableItemContainer({'backpack of energy field rune'}, 2002, 2277, 2320, 3, 'backpack of energy field rune')
shopModule:addBuyableItem({'energy field rune'}, 2277, 115, 3, 'energy field rune')
shopModule:addBuyableItemContainer({'backpack of energy wall rune'}, 2002, 2279, 6820, 4, 'backpack of backpack of energy wall rune')
shopModule:addBuyableItem({'energy wall rune'}, 2279, 340, 4, 'energy wall rune')
shopModule:addBuyableItemContainer({'backpack of envenom rune'}, 1998, 2292, 2420, 1, 'backpack of envenom rune')
shopModule:addBuyableItem({'envenom rune'}, 2292, 120, 1, 'envenom rune')
shopModule:addBuyableItemContainer({'backpack of explosion rune'}, 2001, 2313, 3820, 3, 'backpack of explosion rune')
shopModule:addBuyableItem({'explosion rune'}, 2313, 190, 3, 'explosion rune')
shopModule:addBuyableItemContainer({'backpack of firebomb rune'}, 2000, 2305, 4720, 2, 'backpack of firebomb rune')
shopModule:addBuyableItem({'fire bomb rune'}, 2305, 235, 2, 'fire bomb rune')
shopModule:addBuyableItemContainer({'backpack of fire field rune'}, 2000, 2301, 1720, 3, 'backpack of fire field rune')
shopModule:addBuyableItem({'fire field rune'}, 2301, 85, 3, 'fire field rune')
shopModule:addBuyableItemContainer({'backpack of fire wall rune'}, 2000, 2303, 4920, 4, 'backpack of fire wall rune')
shopModule:addBuyableItem({'fire wall rune'}, 2303, 245, 4, 'fire wall rune')
shopModule:addBuyableItemContainer({'backpack of fireball'}, 2000, 2302, 3020, 2, 'backpack of fireball rune')
shopModule:addBuyableItem({'fireball rune'}, 2302, 150, 2, 'fireball rune')
shopModule:addBuyableItemContainer({'backpack of great fireball rune'}, 2000, 2304, 3620, 2, 'backpack of great fireball rune')
shopModule:addBuyableItem({'great fireball rune'}, 2304, 180, 2, 'great fireball rune')
shopModule:addBuyableItemContainer({'backpack of heavy magic missile rune'}, 2001, 2311, 2420, 5, 'backpack of heavy magic missile rune')
shopModule:addBuyableItem({'heavy magic missile rune'}, 2311, 120, 5, 'heavy magic missile rune')
shopModule:addBuyableItemContainer({'backpack of intense healing rune'}, 2003, 2265, 1920, 1, 'backpack of intense healing rune')
shopModule:addBuyableItem({'intense healing rune'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItemContainer({'backpack of light magic missile rune'}, 1999, 2287, 820, 5, 'backpack of light magic missile rune')
shopModule:addBuyableItem({'light magic missile rune'}, 2287, 40, 5, 'light magic missile rune')
shopModule:addBuyableItemContainer({'backpack of magic wall rune'}, 2004, 2293, 7020, 3, 'backpack of magic wall rune')
shopModule:addBuyableItem({'magic wall rune'}, 2293, 350, 3, 'magic wall rune')
shopModule:addBuyableItemContainer({'backpack of paralyze rune'}, 2002, 2278, 14020, 1, 'backpack of paralyze rune')
shopModule:addBuyableItem({'paralyze rune'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItemContainer({'backpack of poisonbomb rune'}, 1998, 2286, 3420, 2, 'backpack of poisonbomb rune')
shopModule:addBuyableItem({'poison bomb rune'}, 2286, 170, 2, 'poison bomb rune')
shopModule:addBuyableItemContainer({'backpack of poison field rune'}, 1998, 2285, 1320, 3, 'backpack of poison field rune')
shopModule:addBuyableItem({'poison field rune'}, 2285, 65, 3, 'poison field rune')
shopModule:addBuyableItemContainer({'backpack of poison wall rune'}, 1998, 2289, 4220, 4, 'backpack of poison wall rune')
shopModule:addBuyableItem({'poison wall rune'}, 2289, 210, 4, 'poison wall rune')
shopModule:addBuyableItemContainer({'backpack of soulfire rune'}, 2000, 2308, 2820, 2, 'backpack of soulfire rune')
shopModule:addBuyableItem({'soulfire rune'}, 2308, 140, 2, 'soulfire rune')
shopModule:addBuyableItemContainer({'backpack of sudden death rune'}, 2003, 2268, 6520, 1, 'backpack of sudden death rune')
shopModule:addBuyableItem({'sudden death rune'}, 2268, 325, 1, 'sudden death rune')
shopModule:addBuyableItemContainer({'backpack of ultimate healing rune'}, 2002, 2273, 3520, 1, 'backpack of ultimate healing rune')
shopModule:addBuyableItem({'utlimate healing rune'}, 2273, 175, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'wand of dragonbreath'}, 2191, 1000, 1, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of plague'}, 2188, 5000, 1, 'wand of plague')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 1, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno'}, 2187, 15000, 1, 'wand of inferno')
shopModule:addBuyableItem({'wand of vortex'}, 2190, 500, 1, 'wand of vortex')
shopModule:addBuyableItem({'snakebite rod'}, 2182, 500, 1, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod'}, 2186, 1000, 1, 'moonlight rod')
shopModule:addBuyableItem({'quagmire rod'}, 2181, 10000, 1, 'quagmire rod')
shopModule:addBuyableItem({'tempest rod'}, 2183, 15000, 1, 'tempest rod')
shopModule:addBuyableItemContainer({'backpack of oil'}, 1988, 2006, 320, 11, 'backpack of oil')
shopModule:addBuyableItem({'vial of oil'}, 2006, 15, 11, 'vial of oil')
shopModule:addBuyableItemContainer({'backpack of blood'}, 2000, 2006, 320, 2, 'backpack of blood')
shopModule:addBuyableItem({'vial of blood'}, 2006, 15, 2, 'vial of blood')
shopModule:addBuyableItemContainer({'backpack of lifefluid'}, 2000, 2006, 1220, 10, 'backpack of lifefluid')
shopModule:addBuyableItem({'lifefluid'}, 2006, 60, 10, 'lifefluid')
shopModule:addBuyableItemContainer({'backpack of manafluid'}, 2001, 2006, 2020, 7, 'backpack of manafluid')
shopModule:addBuyableItem({'vial of manafluid'}, 2006, 100, 7, 'vial of manafluid')
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())