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
-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy iron helmets (30gp), chain (35gp), also mystic turbans (500gp), devil (4k), crown (4,5k), warrior (6k), crusader (9k), royal (40k).'})
keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy boots of haste (40k), steel boots (40k), golden boots (100k).'})
keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy chain armors (100gp), brass (200gp), plate (400gp), knight (5k), lady (7,5k), blue robes (15k), crown (20k), golden (30k), dsm (50k), also mpa (100k).'})
keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy brass legs (100gp), plate (500gp), knight (6k), crown (15k), golden (80k).'})
keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy steel shields (90gp), battle shield (90gp), dwarven shields (100gp), beholder (1k), guardian (2k), dragon (3k), tower (4k), amazon (4k), crown (5k), medusa (8k), vampire (25k), demon (40k), great (100k), blessed (150k).'})
keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy swords (25gp), sabres (25gp), short swords (30gp), broad swords (70gp), two handed swords (400gp), spike (800gp), serpent (1.5k), fire (3k), also ice rapiers (4k), bright (6k), giant (10k), magic swords (90k), warlord swords (100k), magic longswords (150k).'})
keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy hatchets (20gp), battle axes (100gp), halberds (200gp), knight (2k), guardian halberds (7,5k), also dragon lances (10k), fire axes (10k), stonecutters axes (90k).'})
keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy battle hammers (60gp), clerical maces (200gp), dragon hammer (2k), war hammer (6k), also skull staffs (10k), thunder hammers (90k).'})
-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())