barker
HHHHH
- Joined
- Nov 23, 2007
- Messages
- 1,298
- Reaction score
- 24
Releasing a experience rate ring
Its based on Slawkens exp rate rune but "re-constructured" it to work as a ring instead ;d
script.lua (data/movements/scripts)
NOTE: This script was created by barker and updated by Guitar Freak -> credits to both of them![/QUOTE][/CODE]
movements.xml
Just change the item id's to the rings of your likings. To edit ring duration, ring name and such, "visit" items.xml.
TESTED OFC AND WORKS ON TFS 0.3.5 PL1
Its based on Slawkens exp rate rune but "re-constructured" it to work as a ring instead ;d
script.lua (data/movements/scripts)
Lua:
local config = {
rate = 2.0, -- 2.0 = 2x faster than normal.
un_equip = 6300, -- Item ID of the UN-Equipped ring.
equip = 6301 -- 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 .. "x doubled your former experience rate.")
doTransformItem(item.uid, config.equip)
doDecayItem(item.uid)
return true
end
NOTE: This script was created by barker and updated by Guitar Freak -> credits to both of them![/QUOTE][/CODE]
movements.xml
Code:
<movevent type="Equip" itemid="6301" slot="ring" event="function" value="onEquipItem"/>
<movevent type="Equip" itemid="6300" slot="ring" event="script" value="script.lua"/>
<movevent type="DeEquip" itemid="6301" slot="ring" event="script" value="script.lua"/>
Just change the item id's to the rings of your likings. To edit ring duration, ring name and such, "visit" items.xml.
TESTED OFC AND WORKS ON TFS 0.3.5 PL1
Last edited: