Try this:
local c = {
stone = 1356,
creature = "Stone Golem",
pcoin = 2152,
exhaust = true,
time_ = (60 * 1000) * 2 -- 2 minutes
}
function wait(c)
c.exhaust = true
end
function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey)
local player = Player(cid)...