ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is my script, everything works fine except for the addEvents
LUA:
local pos = {x=419, y=1325, z=8}
function onUse(cid, item, frompos, itemEx, topos)
if getPlayerItemCount(cid, 2087) >= 1 and item.itemid == 7106 then
doRemoveItem(getTileItemById(pos,7106).uid,1)
addEvent(one(), 100, cid)
return true
end
local function one()
addEvent(respawn(), 900, cid)
end
local function respawn()
doTileAddItem(pos, 7106)
end
end