I have this problem: I did a script with a simple onEquip and onDeEquip movement, but it seems like it wont work without adding return TRUE to onEquip function (without it the item wont move to the desired slot). Well, that problem can be solved by adding return TRUE, but when doing so the actions in the script will be done 2x times. Example:
Result:
(onEquip)
16:26 This is shown 2x times.
16:26 This is shown 2x times.
(onDeEquip)
16:26 This works ok, only shown 1 time.
Code:
function onDeEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This works ok, only shown 1 time.")
return true
end
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This is shown 2x times.")
return TRUE
end
(onEquip)
16:26 This is shown 2x times.
16:26 This is shown 2x times.
(onDeEquip)
16:26 This works ok, only shown 1 time.