• 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!

Lua Items appearing after x time

Hjuston

New Member
Joined
Sep 29, 2009
Messages
11
Reaction score
0
Hello, excuse me my noobish question but I didn't found any thread that could explain me this.
Actually I am looking for script that adds event (I guess) which will make item 'respawn'.
It should work like e.g. player cut tree, this tree transform in to hm... let's say log or something.
After x second this log transform in to tree again.
To be honest, I don't need full script, just a tip or sign which will guide me how to do this.
Sorry again and thanks for any help, peace!
 
Code:
local function doTransformBack(pos, itemid, transformid)
     return doTransformItem(getTileItemById(pos, transformid).uid, itemid)
end

Code:
addEvent(doTransformBack, 30 * 1000, toPosition, itemEx.itemid, 4008)
doTransformItem(itemEx.uid, 4008)
 
Back
Top