local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler

nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler

nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler

nCreatureSay(cid, type, msg) end
function onThink() npcHandler

nThink() end
-- OTServ event handling functions end
keywordHandler:addKeyword({'buy rings'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy sword(100gp), club(100gp), axe(100gp), power(50gp), dwarven(100gp), energy(100gp), life(50gp), might(250gp), time(100gp) ring of healing(100gp), and stealth rings(200gp).'})
keywordHandler:addKeyword({'sell rings'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell Axe, club and sword rings(500gp), power(100gp), stealh(5k), dwarven(2k), energy(2k), life(900gp), time rings(2k) and ring of healings(2k).'})
keywordHandler:addKeyword({'buy diamonds'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy small diamonds(300gp), sapphires(250gp), rubys(250gp), emeralds(250gp), amethyst(250gp). I also buy talons(320gp) and white pearls(160gp) and black pearls(280gp).'})
keywordHandler:addKeyword({'sell diamonds'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell small diamonds(600gp), sapphires(500gp), rubys(500gp), emeralds(500gp), amethysts(400gp). I also sell white(320gp) and black pearls(560gp).'})
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'small diamond'}, 2145, 300, 'small diamond')
shopModule:addSellableItem({'small sapphire'}, 2146, 250, 'small sapphire')
shopModule:addSellableItem({'small ruby'}, 2147, 250, 'small ruby')
shopModule:addSellableItem({'small emerald'}, 2149, 250, 'small emerald')
shopModule:addSellableItem({'small amethyst'}, 2150, 250, 'small amethyst')
shopModule:addSellableItem({'white pearl',}, 2143, 160, 'white pearl')
shopModule:addSellableItem({'black pearl'}, 2144, 280, 'black pearl')
shopModule:addSellableItem({'talon'}, 2151, 320, 'talon')
shopModule:addBuyableItem({'small diamond'}, 2145, 600, 'small diamond')
shopModule:addBuyableItem({'small sapphire'}, 2146, 500, 'small sapphire')
shopModule:addBuyableItem({'small ruby'}, 2147, 1000, 'small ruby')
shopModule:addBuyableItem({'small emerald'}, 2149, 500, 'small emerald')
shopModule:addBuyableItem({'small amethyst'}, 2150, 400, 'small amethyst')
shopModule:addBuyableItem({'white pearl',}, 2143, 320, 'white pearl')
shopModule:addBuyableItem({'black pearl'}, 2144, 560, 'black pearl')
shopModule:addSellableItem({'dwarven ring'}, 2213, 100, 'dwarven ring')
shopModule:addSellableItem({'energy ring'}, 2167, 100, 'energy ring')
shopModule:addSellableItem({'life ring'}, 2168, 50, 'life ring')
shopModule:addSellableItem({'might ring'}, 2164, 250, 'might ring')
shopModule:addSellableItem({'ring of healing'}, 2214, 100, 'ring of healing')
shopModule:addSellableItem({'time ring',}, 2169, 100, 'time ring')
shopModule:addSellableItem({'stealth ring'}, 2165, 200, 'stealth ring')
shopModule:addSellableItem({'sword ring'}, 2207, 100, 'sword ring')
shopModule:addSellableItem({'axe ring'}, 2208, 100, 'axe ring')
shopModule:addSellableItem({'club ring'}, 2209, 100, 'club ring')
shopModule:addSellableItem({'power ring',}, 2166, 50, 'power ring')
shopModule:addBuyableItem({'dwarven ring'}, 2213, 2000, 'dwarven ring')
shopModule:addBuyableItem({'demon horn'}, 5954, 5000, 'demon horn')
shopModule:addBuyableItem({'energy ring'}, 2167, 2000, 'energy ring')
shopModule:addBuyableItem({'life ring'}, 2168, 900, 'life ring')
shopModule:addBuyableItem({'ring of healing'}, 2214, 2000, 'ring of healing')
shopModule:addBuyableItem({'time ring',}, 2169, 2000, 'time ring')
shopModule:addBuyableItem({'stealth ring'}, 2165, 5000, 'stealth ring')
shopModule:addBuyableItem({'sword ring'}, 2207, 500, 'sword ring')
shopModule:addBuyableItem({'axe ring'}, 2208, 500, 'axe ring')
shopModule:addBuyableItem({'club ring'}, 2209, 500, 'club ring')
shopModule:addBuyableItem({'power ring',}, 2166, 100, 'power ring')
npcHandler:addModule(FocusModule:new())