• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Dead Tree

chricke90

New Member
Joined
Sep 14, 2007
Messages
51
Reaction score
0
I got a little problem.
While I using the Hallowed Axe at the dead tree. Nothings happends.
I've want it to be removed when I using it at Hallowed Axe.
Then while I stepOut from the dead tree pos. It should come up a new dead tree with same UID.
 
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
 
Back
Top