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

Lua Item require storage value to equip, then give stats

botter1234

Member
Joined
Jun 20, 2008
Messages
103
Reaction score
7
This works to not allow players under the rebirth value but when they do use it it does not give themthe attributes assigned in items.xml

Anyone know?

Lua:
function onEquip(cid, item, slot)
	if isPlayer(cid) then
		if getCreatureStorage(cid, 85987) >= 10 then
		
			return true
			
		elseif getCreatureStorage(cid, 85987) < 10 then
			doPlayerSendTextMessage(cid, 27, 'need rebirth')
			return false
		end
	end		
end

function onDeEquip(cid, item, slot)
	return onDeEquipItem
end
 
Last edited:
Back
Top