local exhaustTable = {}
local talkAction = TalkAction("!aol")
function talkAction.onSay(player, words, param, type)
local playerGuid = player:getGuid()
local timeAmount = exhaustTable[playerGuid]
if timeAmount and timeAmount > os.time() then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wait " .. (timeAmount - os.time()) .. " seconds.")
return true
end
player:addItem(2173, 1)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
exhaustTable[playerGuid] = os.time() + 60
return false
end
talkAction:register()