So here I came again at the forum,asking for a fix of 2 things:
~FIRST~
So,found the script about the "exp" ring somewhere ,well, I wanted it to be a item which ahs to be used,not a ring,so tried to "play" with the script:
~SECOND~
Why this doesn't work?
I got it in movements too,doesnt work and there is no error in the console.
~FIRST~
So,found the script about the "exp" ring somewhere ,well, I wanted it to be a item which ahs to be used,not a ring,so tried to "play" with the script:
Code:
local config = {
rate = 2.0, -- 2.0 = 2x faster than normal.
}
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 .. "x doubled your former experience rate.")
doRemoveItem(item.uid, 1)
return true
end
~SECOND~
Why this doesn't work?
Code:
<item id="2122" article="a" name="life booster">
<attribute key="slotType" value="ring" />
<attribute key="maxManaPointsPercent" value="115"/>
<attribute key="maxHitPointsPercent" value="115"/>
<attribute key="showattributes" value="1" />
<attribute key="weight" value="100" />
Last edited: