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

Create item, then decay it.

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.

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:
Back
Top