hello guys
I`m have a problem in my server, when i use exp ring + eggs give 10% Exp get bug everytime use eggs get 10%+10% and no lose
can eggs up 1000%
when up exp ring change with other ring get skill down like 0
script ring is full bug skill/items with save all my eggs time no down
tfs 1.2
how i can fix it
<movevent type="Equip" itemid="7967" slot="ring" event="function" value="onEquipItem"/>
<movevent type="Equip" itemid="7968" slot="ring" event="script" value="script.lua"/>
<movevent type="DeEquip" itemid="7968" slot="ring" event="script" value="script.lua"/>
I`m have a problem in my server, when i use exp ring + eggs give 10% Exp get bug everytime use eggs get 10%+10% and no lose
can eggs up 1000%
when up exp ring change with other ring get skill down like 0
script ring is full bug skill/items with save all my eggs time no down
tfs 1.2
how i can fix it
<!-- Exp Ring -->local config = {
rate = 0.02, -- 0.02 = 1x faster than normal.
un_equip = 7967, -- Item ID of the UN-Equipped ring.
equip = 7968 -- Item ID of the Equipped ring.
}
function onDeEquip(cid, item, slot)
doPlayerSetExperienceRate(cid, 0.02)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.")
doTransformItem(item.uid, config.un_equip)
return true
end
function onEquip(cid, item, slot)
if getConfigValue("experienceStages") == "yes" then
doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*0.02)
else
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*0.02)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: " .. config.rate .. "x doubled your former experience rate.")
doTransformItem(item.uid, config.equip)
doDecayItem(item.uid)
return true
end
<movevent type="Equip" itemid="7967" slot="ring" event="function" value="onEquipItem"/>
<movevent type="Equip" itemid="7968" slot="ring" event="script" value="script.lua"/>
<movevent type="DeEquip" itemid="7968" slot="ring" event="script" value="script.lua"/>
Attachments
-
fff.png292.7 KB · Views: 20 · VirusTotal
-
Untitled.png30.4 KB · Views: 17 · VirusTotal
Last edited: