WarOfTheTitans
Active Member
- Joined
- Feb 3, 2012
- Messages
- 430
- Reaction score
- 37
[SOLVED][SOLVED][SOLVED][SOLVED]
Solved, because I used this:
in items.xml.
Then to make it disappear, I used:
I removed ".uid" after "doDecayItem(egg". It worked perfectly without the "addEvent" function. I can even reload without any cancels aswell.
Thanks to Far Carder for helping me
[SOLVED][SOLVED][SOLVED][SOLVED]
My script:
I want to disappear after 20 seconds. I've edited in items.xml:
But it doesn't disappear. I don't want any addEvents including because if i for example reload actions the addEvent will be canceled. So if you create the item, addEvent then if i reload actions the egg will lay on the ground forever.
Thanks in advance
Solved, because I used this:
XML:
<item id="6542" article="an" name="colored egg" plural="colored eggs">
<attribute key="decayTo" value="0" />
<attribute key="duration" value="20" />
<attribute key="moveable" value="0" />
</item>
Then to make it disappear, I used:
Lua:
egg = doCreateItem(6542, 1, getCreaturePosition)
doDecayItem(egg)
Thanks to Far Carder for helping me
[SOLVED][SOLVED][SOLVED][SOLVED]
My script:
Lua:
doCreateItem(6542, 1, getCreaturePosition(cid))
I want to disappear after 20 seconds. I've edited in items.xml:
XML:
<item id="6542" article="an" name="colored egg" plural="colored eggs">
<attribute key="decayTo" value="0" />
<attribute key="duration" value="20" />
<attribute key="moveable" value="0" />
</item>
Thanks in advance
Last edited: