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

Error In Ring Of Exp

Joined
Sep 29, 2009
Messages
224
Reaction score
0
When Player Use Ring, Server Give Lag.

ITEMS.XML

<!-- Exp Ring-->
<!-- ON -->
<item id="2203" article="an" name="ring of experience">
<attribute key="weight" value="500"/>
<attribute key="slotType" value="ring"/>

<attribute key="duration" value="43200"/>
<attribute key="decayTo" value="0"/>
<attribute key="showduration" value="1"/>

<attribute key="transformDeEquipTo" value="2166"/>
</item>
<!-- OFF -->
<item id="2166" article="an" name="ring of experience">
<attribute key="weight" value="500"/>
<attribute key="slotType" value="ring"/>

<attribute key="stopduration" value="1"/>
<attribute key="showduration" value="1"/>

<attribute key="transformEquipTo" value="2203"/>
</item>

.EXE

erroeb.jpg


MoveMents

function onEquip(cid, item, slot)
doTransformItem(item.uid, 2203, 1)
doDecayItem(getPlayerSlotItem(cid, slot).uid)
doPlayerSendTextMessage(cid, 22, 'Now you have 2x extra experience!')
if getConfigValue("experienceStages") == "yes" then
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
else
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
end
return TRUE
end

function onDeEquip(cid, item, slot)
doTransformItem(item.uid, 2166, 1)
doPlayerSendTextMessage(cid, 22, 'Extra experience ended.')
doPlayerSetExperienceRate(cid, 1)
getConfigValue(key)

return TRUE
end

MoveMents.XML

<movevent type="Equip" itemid="2203" slot="ring" event="script" value="expring.lua"/><!-- EXPERIENCE RING IN USE-->
<movevent type="DeEquip" itemid="2203" slot="ring" event="script" value="expring.lua"/><!-- EXPERIENCE RING IN USE-->
<movevent type="Equip" itemid="2166" slot="ring" event="script" value="expring.lua"/><!-- EXPERIENCE RING OFF USE-->
<movevent type="DeEquip" itemid="2166" slot="ring" event="script" value="expring.lua"/><!-- EXPERIENCE RING OFF USE-->

THX, ;D
 
Back
Top