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

Present which gives you random addon item

Saint

New Member
Joined
Jun 16, 2007
Messages
231
Reaction score
1
Location
Łódź, Poland
Hello,

Today I'm looking for present script which gives you random amount of random addon addon item, for example.

I looted 2 presents. When I used first present I received 5 chicken feathers. When used second present I received 13 minotaur leathers. I hope that I explained properly.

You don't have to add all addon items, just make the script simple to edit! ;P

Thanks in advance,
Saint.
 
:)
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local items = {
		{2160, 1},
		{2152, 100},
		{9970, 5}
	}

	local which = math.random(1, #items)
	doPlayerAddItem(cid, items[which][1], items[which][2]) 
	doRemoveItem(item.uid, 1)

	return TRUE
end
 
Back
Top