when I try to add the onequip script:
Items.lua:
I can't wear the item. I get the message: You cannot dres the object here.<movevent event="Equip" itemid="2656" slot="armor" script="Items.lua"/>
Items.lua:
function onEquip(player, item, slot)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "wear." .. item:getDescription())
end
function onDeEquip(player, item, slot)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "remove.")
end