Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
So I made a script that makes an item. It works, but the item doesn't decay.
When I make the item with /i 21950, it does decay.
This has to be added to the script, but I don't want it to try and decay the item being used, It needs to decay the item created.
Yes, I have the decay thing in items.xml
Also, would it be possible to make something like this.. just an example.
When I make the item with /i 21950, it does decay.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREAREA)
doCreateItem(12950, toPosition)
end
This has to be added to the script, but I don't want it to try and decay the item being used, It needs to decay the item created.
PHP:
doDecayItem(item.uid)
Yes, I have the decay thing in items.xml
PHP:
<attribute key="decayTo" value="0" />
<attribute key="duration" value="5" />
Also, would it be possible to make something like this.. just an example.
PHP:
If do get player current highest level then
Last edited: