LucasFerraz
Systems Analyst
XML:
<movevent type="Equip" itemid="7697" slot="ring" event="buffer" value="
return doPlayerSetExperienceRate(cid, 1.5)"/>
<movevent type="DeEquip" itemid="7708" slot="ring" event="buffer" value="
return doPlayerSetExperienceRate(cid, 1.0)"/>
<movevent type="DeEquip" itemid="7697" slot="ring" event="function" value="onDeEquipItem"/>
It's buffering 100% but it's not removing that buff when DeEquip, why?
I'm using this:
XML:<movevent type="Equip" itemid="7697" slot="ring" event="script" value="expring.lua"/> <movevent type="DeEquip" itemid="7708" slot="ring" event="script" value="expring2.lua"/>
expring
LUA:function onEquip(cid, item, slot) doPlayerSetExperienceRate(cid, 1.5) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have + 50% of extra experience.") doTransformItem(item.uid, 7708) doDecayItem(item.uid) return 1 end
expring2
LUA:function onDeEquip(cid, item, slot) doPlayerSetExperienceRate(cid, 1.0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.") doTransformItem(item.uid, 7697) end
PROBLEM1 : When player receive from Shop it go to RING SLOT and OT crash.
PROBLEM2 : When GM create this item using /i it go to RING SLOT and OT crash.
I was thinking if I can do it other way without crash.
Last edited: