Donio
Banned User
Hey, I just saw a script about a exp ring, but the problem here is I want it to give 2x exp from the original one.. but it gives like 20% more 
how can i fix this? this is my script:
I tried to change the "rate = 2, -- 2.0 = 2x faster than normal."
and doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
but nothing :s
how can i fix this? this is my script:
Code:
local config = {
rate = 2, -- 2.0 = 2x faster than normal.
un_equip = 2123, -- Item ID of the UN-Equipped ring.
equip = 2123 -- Item ID of the Equipped ring.
}
function onDeEquip(cid, item, slot)
doPlayerSetExperienceRate(cid, 1.0)
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))*2)
else
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: " .. config.rate .. "times more than the original experience rate.")
doTransformItem(item.uid, config.equip)
doDecayItem(item.uid)
return true
end
I tried to change the "rate = 2, -- 2.0 = 2x faster than normal."
and doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
but nothing :s