items.xml
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.
The problem with this is the "addEvent" because it doesn't know what the variable "tree" is.
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: