T
tejdi
Guest
I would like to allow action only once per X time for a whole server (10 min for example), how could I do this?
Scheme:
Scheme:
Lua:
local config = {
monsterPos = {x=790, y=978, z=11},
exhaust = X -- ??
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if game world storage = 5003, 1 then -- ??
player:sendTextMessage(MESSAGE_STATUS_SMALL, "Error msg")
else
Game.createMonster("Duan", config.monsterPos)
set game world storage = 5003, 1 for 10 min -- ??
end
return true
end