Hello guys!
I'm having a little problem here...
I added to the server a script that gives a player extra exp when using a ring (ID 7708 onEquip ID 7697)
The whole script works like a charm, removing the ring, wearing it, puting it on the floor, all ok.
But when I logout my char WEARING the ring a error msg appear on the console; [Error - MoveEvent::executeEquip] Call stack overflow.
It only happens on logout, login is fine.
The script continues working, everything fine, but this error msg is creaping me out! haha
Here goes the script and the entries on movements.xml
SCRIPT
Movements.xml entries
Thanks guys, hope someone can help me
I'm having a little problem here...
I added to the server a script that gives a player extra exp when using a ring (ID 7708 onEquip ID 7697)
The whole script works like a charm, removing the ring, wearing it, puting it on the floor, all ok.
But when I logout my char WEARING the ring a error msg appear on the console; [Error - MoveEvent::executeEquip] Call stack overflow.
It only happens on logout, login is fine.
The script continues working, everything fine, but this error msg is creaping me out! haha
Here goes the script and the entries on movements.xml
SCRIPT
Code:
function onEquip(cid, item, slot)
doTransformItem(item.uid, 7697, 1)
doPlayerSendTextMessage(cid,19,"Your extra experience rate has been activated! It is now 20% more then your former experience rate.")
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*1.2)
return true
end
function onDeEquip(cid, item, slot)
doTransformItem(item.uid, 7708, 1)
doPlayerSendTextMessage(cid, 19, "Your extra experience has been deactivated")
doPlayerSetExperienceRate(cid, 1)
return true
end
Movements.xml entries
Code:
<!-- EXP RING -->
<movevent type="Equip" itemid="7697" slot="ring" event="script" value="exp_ring.lua"/>
<movevent type="DeEquip" itemid="7697" slot="ring" event="script" value="exp_ring.lua"/>
<movevent type="Equip" itemid="7708" slot="ring" event="script" value="exp_ring.lua"/>
Thanks guys, hope someone can help me
Last edited: