TFS 0.3.6 reborn1eq.lua
I have no idea why it crashes when I remove the equipment
movements.xml
Code:
function onEquip(cid, item, slot)
if getPlayerStorageValue(cid,85713) >= 1 then
return true
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be Prestige 1 or higher to equip this.")
return false
end
end
movements.xml
Code:
<movevent type="Equip" itemid="2466" slot="armor" function="onEquipItem" script="reborneq1.lua"/>
<movement type="DeEquip" itemid="2466" event="function" value="onDeEquipItem"/>