MadMOOK
Hoo
- Joined
- Apr 20, 2011
- Messages
- 802
- Reaction score
- 43
It Gives double exp like its supposed to, and goes back to normal like its supposed to..
But when i take ring off and put back on, it is 2x MORE than was first time..
But when i take ring off and put back on, it is 2x MORE than was first time..
Code:
local config = {
rate = 1,
expstorage = 1102,
register = 1202
}
function onEquip(cid, item, slot)
local rates = getPlayerRates(cid)
setPlayerStorageValue(cid, config.expstorage, rates[SKILL__LEVEL])
setPlayerStorageValue(cid, config.register, 1)
doTransformItem(item.uid, 2205)
doDecayItem(item.uid)
doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]+config.rate)
return true
end
function onDeEquip(cid, item, slot)
doTransformItem(item.uid, 2168)
setPlayerStorageValue(cid, config.register, 0)
local oldexp = getPlayerStorageValue(cid, config.expstorage)
doPlayerSetExperienceRate(cid, oldexp)
return true
end
Last edited: