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

onEquip

Piechu

New Member
Joined
Oct 10, 2008
Messages
113
Reaction score
0
Location
Poland/Jasło
I have one problem. I made a script, when player have storagevalue then he can equip item
Code:
function onEquip(cid, item, slot)
if getPlayerStorageValue(cid,77001) == 1 then
return TRUE
else
return FALSE
end
end

in movements.xml
Code:
	<movevent type="Equip" itemid="xxxx" slot="feet" event="script" value="item.lua"/>
and it works. But when you have storage and u equip these item attribute keys aren't work. For example soft boots dont give mana and hp, and yalahari legs dont give dist skills.
Can someone help me?:(
 
Lua:
function onEquip(cid, item, slot) if getPlayerStorageValue(cid,77001) == 1 then return false end return true end
 
Lua:
function onEquip(cid, item, slot)
	if getPlayerStorageValue(cid,77001) ~= 1 then
		return false
	end
	return true
end
 
Back
Top