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

Action script needed

Taurus

Texass
Joined
Jan 11, 2009
Messages
616
Solutions
2
Reaction score
30
Location
United States
I need an action where when they use an item it gives them a piece of paper (item 4853)

After they get 24, i would like the (zig zag pack) to disappear

Thanks in advance for this simple version 0.3.6 script.

(item 6388 will make a great pack of papers.)
 
Code:
local uses = 24
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doPlayerAddItem(cid, 4853, 1)
	doItemSetAttribute(item.uid, 'aid', math.max(101, item.actionid + 1))
	if item.actionid >= 100 + uses then
		doRemoveItem(item.uid)
	end
	return true
end
 
Back
Top