local lvl = 50
function onEquip(cid, item, slot)
if getPlayerGroupId(cid) < 3 and getPlayerSkillLevel(cid, 0) < 50 then
doPlayerSendTextMessage(cid,25,"Only worthy player equip this.")
end
return false
end
<movevent type="Equip" itemid="XXXX" slot="armor" event="script" value="xxx.lua"/>