jestemPolakiem
New Member
Ring Experience
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, you only need create ring[/B]
16:27 You see a ring experience.
It weighs 0.50 oz.
Magic ring which accelerates the acquisition of experience.
data/movements/movements.xml
PHP:
<movevent itemid="6093" slot="ring" type="Equip" event="buffer" value="
local rates = getPlayerRates(cid)
return doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] + 5/2)
"/>
<movevent itemid="6093" slot="ring" type="DeEquip" event="buffer" value="
local rates = getPlayerRates(cid)
return doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] - 5)
"/>
data/items/items.xml - add before </items>
PHP:
<item id="6093" override="yes" article="a" name="ring experience">
<attribute key="description" value="Magic ring which accelerates the acquisition of experience." />
<attribute key="slotType" value="ring" />
<attribute key="weight" value="50" />
</item>
Greets
jestemPolakiem