Nothing to crazy but many ots missing
Lua:
local talk = TalkAction("!commands", "/commands")
local commandsTable = {}
local timeUseAgain = 10
function talk.onSay(player, words, param)
local playerGuid = player:getGuid()
local timeAmount = commandsTable[playerGuid]
if timeAmount and timeAmount > os.time() then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wait " .. (timeAmount - os.time()) .. " seconds.")
return true
end
player:showTextDialog(1977, "[Server Talkaction's]\
[Talkaction - Information]\
!aol - Buy amulet of loss\
!bless - Buy all blessings\
!backpack - Buy backpack\
!spells - See all your rebirth spells\
", false, 150)
commandsTable[playerGuid] = os.time() + timeUseAgain
return false
end
talk:register()
Last edited: