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
storage = 19745
if exhaustion.get(cid, storage) then
selfSay('Your ticket has not expired yet.', cid)
elseif not doPlayerRemoveMoney(cid, 250) then
selfSay('You need 250 gold coins to buy me a ticket.', cid)
else
exhaustion.set(cid, storage, 60 * 60 * 24 * 7)
selfSay('There, I gave you a ticket that lasts 7 days.', cid)
end
npcHandler:addModule(FocusModule:new())