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

Item upgrader

Joined
Jun 19, 2009
Messages
1,852
Reaction score
5
Hello!

I want if you right-click on itemid 5941, and "target" itemid 2300, both id 5941 and 2300 gets removed and you get a new item: id 2298

thanks..
 
data/actions/actions.xml
Code:
	<action itemid="5941" event="script" value="other/script.lua"/>
data/actions/scripts/other/script.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if itemEx.itemid == 2300 then
		doRemoveItem(item.uid)
		doRemoveItem(itemEx.uid)
		doPlayerAddItem(cid, 2298, 1)
		return true
	end
end
 
Back
Top