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

[REQUEST] Random Vocation

Lee Weii

New Member
Joined
Aug 19, 2008
Messages
41
Reaction score
1
I need one script to make a Random vocation, when you click in a item the item set your vocation, but need to be random, and can be used just one time.
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, 98765) == -1) then
		setPlayerStorageValue(cid, 98765, 1)
		doPlayerSetVocation(cid, math.random(1, 4))
	end
	return true
end
 
Back
Top