Mitsuri
日本人だ
I've got such in movements.xml
and in cstm/x.lua:
The problem is that slot ID appears, but item remains in backpack with message: "You cannot dress this object there.".
Even tough the one above it's wrong, I've got the follow now:
but in this case there is no reaction, not even slot displays on the screen.
What is going on? How to fix that?
<movevent type="Equip" itemid="9776" slot="armor" event="script" value="cstm/x.lua" level="100" function="onEquipItem"/>
<movevent type="DeEquip" itemid="9776" slot="armor" event="script" value="cstm/x.lua" function="onDeEquipItem"/>
<movevent event="Equip" itemid="9776" slot="armor" level="100" function="onEquipItem"/>
<movevent event="DeEquip" itemid="9776" slot="armor" level="100" function="onDeEquipItem"/>
and in cstm/x.lua:
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, 22, slot)
end
function onDeEquip(cid, item, slot)
end
The problem is that slot ID appears, but item remains in backpack with message: "You cannot dress this object there.".
Even tough the one above it's wrong, I've got the follow now:
<movevent event="Equip" itemid="9776" slot="armor" script="cstm/x.lua" level="100" function="onEquipItem"/>
<movevent event="DeEquip" itemid="9776" slot="armor" script="cstm/x.lua" function="onDeEquipItem"/>
but in this case there is no reaction, not even slot displays on the screen.
What is going on? How to fix that?