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

Items remain in backpack

Mitsuri

日本人だ
Joined
Sep 14, 2008
Messages
34
Reaction score
1
Location
茅ヶ崎「神奈川県」, Japan
I've got such in movements.xml

<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?
 
Back
Top