Anyone know why the text message get called 3 times when i equip and item with the following code?
<movevent event="Equip" itemid="2136" slot="necklace" function="onEquipItem" script="setitems/wand.lua"/>
<movevent event="DeEquip" itemid="2136" slot="necklace" function="onDeEquipItem" script="setitems/wand.lua"/>
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "hey")
return true
end
<movevent event="Equip" itemid="2136" slot="necklace" function="onEquipItem" script="setitems/wand.lua"/>
<movevent event="DeEquip" itemid="2136" slot="necklace" function="onDeEquipItem" script="setitems/wand.lua"/>
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "hey")
return true
end