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 thinkCallback(cid)
local rand = math.random(1,100)
if rand == 1 then
selfSay('Eu Vendo itens VIP para comprar fale trade.')
end
return true
end
function greetCallback(cid)
return true
end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'Holy Staff', 'VIP Staff'}, 2184, 3000000000, 'Holy Staff')
shopModule:addSellableItem({'Slingshot', 'VIP Crossbow'}, 5907, 3000000000, 'Slingshot')
shopModule:addSellableItem({'Reapers Axe', 'VIP Axe'}, 7420, 3000000000, 'Reapers Axe')
shopModule:addSellableItem({'Skullcruher', 'VIP Hammer'}, 7423, 3000000000, 'Skullcruher')
shopModule:addSellableItem({'Calamity', 'VIP Sword'}, 8932, 3000000000, 'Calamity')
npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback)
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:addModule(FocusModule:new())