Dead Tree script!
The code function does not working, You can use it every times.. any solving lutuions?
Code:
function decayGround(params)
pos = {x=params.pos.x, y=params.pos.y, z=params.pos.z, stackpos = 0}
item = getThingfromPos(pos)
doCreateItem(2717,1,wall1)
end
function onStepIn(cid, item, pos)
local delaySeconds = 3600
wall1 = {x=xxxx, y=xxxx, z=x, stackpos=1} ----- dead tree position
getwall1 = getThingfromPos(wall1)
if item.uid == 6668 then ----- uniqueid on the sqm that will be the switch
doRemoveItem(getwall1.uid,1)
params = {pos = pos, getwall1 = item.itemid}
addEvent(decayGround, delaySeconds*1000, params)
end
end
The code function does not working, You can use it every times.. any solving lutuions?