• 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 - Demon Oak

chricke90

New Member
Joined
Sep 14, 2007
Messages
51
Reaction score
0
Dead Tree script!
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?
 
Back
Top