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

Decay to...

Aarthec

w0000t
Joined
Apr 25, 2009
Messages
129
Reaction score
0
Location
Sweden
items.xml
PHP:
<item id="3821" article="a" name="tree stump">
		<attribute key="decayTo" value="2708"/>
		<attribute key="duration" value="3"/>
	</item>

When I create a tree stump it doesn't turn into ID 2708.

Do I have to change something else than this to make it work?

EDIT:
Worked when I used it as a fire field rune, but I'm trying to make it work when I click on a tree with ID 2708 it turns to a tree stump and after 3 seconds the tree stump turns into the tree again.

EDIT 2:
Another thing I've tried is to make it all in an action script, but there have always been one problem for me with that.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tree = doTransformItem(item.uid, 3821)
addEvent(doTransformItem, 3000, tree, 2708)

The problem with this is the "addEvent" because it doesn't know what the variable "tree" is.
 
Last edited:
Back
Top