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({'bucket'}, 					Cfbucket, 4, 0)
shopModule:addBuyableItem({'bottle'}, 					Cfbottle, 3, 0)
shopModule:addBuyableItem({'mug'}, 					Cfmug, 4, 0)
shopModule:addBuyableItem({'cup'}, 					Cfcup, 2, 0)
shopModule:addBuyableItem({'jug'}, 					Cfjug, 10, 0)
shopModule:addBuyableItem({'plate'}, 					Cfplate, 6)
shopModule:addBuyableItem({'baking tray'}, 					Cfbakingtray, 20)
shopModule:addBuyableItem({'pot'}, 					Cfpot, 30)
shopModule:addBuyableItem({'pan'}, 					Cfpan, 20)
shopModule:addBuyableItem({'fork'}, 					Cffork, 10)
shopModule:addBuyableItem({'wooden spoon'}, 					Cfwoodenspoon, 5)
shopModule:addBuyableItem({'spoon'}, 					Cfspoon, 10)
shopModule:addBuyableItem({'knife'}, 					Cfknife, 10)
shopModule:addBuyableItem({'cleaver'}, 					Cfcleaver, 15)
shopModule:addBuyableItem({'spatula'}, 					Cfspatula, 12)
shopModule:addBuyableItem({'rolling pin'}, 					Cfrollingpin, 12)

keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am Chephan, at your service."})
keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I sell all the cooking gear you can dream of."})
keywordHandler:addKeyword({'warehouse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Here you can by so many things you will need one day or another. Just have a look."})
keywordHandler:addKeyword({'time'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Watches are sold in the south east part of this warehouse."})
keywordHandler:addKeyword({'king'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Even a king needs a fork now and then. To scratch his back or to poke servants for example."})
keywordHandler:addKeyword({'tibianus'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Even a king needs a fork now and then. To scratch his back or to poke servants for example."})
keywordHandler:addKeyword({'army'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "They brought most of their cooking gear from thais."})
keywordHandler:addKeyword({'ferumbras'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "See this fork? Now imagine what a hero like you could do to an evil sorcerer with that fork! Care to buy one?"})
keywordHandler:addKeyword({'excalibug'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Just an oversized kitchenknife. Better buy the real thing."})
keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Thaian cooking gear is of inferior quality. Make sure to upgrade yours here as soon as you can."})
keywordHandler:addKeyword({'tibia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The world is flat as this plate. You should buy one as a symbol for Tibia."})
keywordHandler:addKeyword({'carlin'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "So many women and so little intrest in cooking, horrible."})
keywordHandler:addKeyword({'new'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "My recipies are family secrets, sorry."})
keywordHandler:addKeyword({'tax'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Those taxes are killing me. And they are getting worse each year!"})
keywordHandler:addKeyword({'privilege'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I don't feel that privileged. In fact our beloved city is bleeding for the profit of Thais."})
keywordHandler:addKeyword({'gambling'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Thanks to that taxes I have not enough spare money to gamble much."})
keywordHandler:addKeyword({'offer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "That would be: Buckets, bottles, mugs, cups, jugs, plates, baking trays, pots, pans, forks, spoons, knifes, wooden spoons, cleavers, spatulas, and rolling pins."})
keywordHandler:addKeyword({'good'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "That would be: Buckets, bottles, mugs, cups, jugs, plates, baking trays, pots, pans, forks, spoons, knifes, wooden spoons, cleavers, spatulas, and rolling pins."})
keywordHandler:addKeyword({'sell'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "That would be: Buckets, bottles, mugs, cups, jugs, plates, baking trays, pots, pans, forks, spoons, knifes, wooden spoons, cleavers, spatulas, and rolling pins."})
keywordHandler:addKeyword({'have'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "That would be: Buckets, bottles, mugs, cups, jugs, plates, baking trays, pots, pans, forks, spoons, knifes, wooden spoons, cleavers, spatulas, and rolling pins."})

npcHandler:addModule(FocusModule:new())