• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Ring Experience

jestemPolakiem

New Member
Joined
Oct 17, 2009
Messages
48
Reaction score
2
Location
Poland
Ring Experience
by jestemPolakiem

script has been tested on The Forgotten Server 0.3.6pl1 and worked

mapaps.png


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
 
Wow I love the idea, pretty nice but there is a bug on +5/2 and then -5, it should be the same, or Im wrong?
 
@Vincity

Only add:
PHP:
	<attribute key="decayTo" value="0" />
	<attribute key="duration" value="600" /> --Change for duration you want this are 10 minutes)
	<attribute key="showduration" value="1" />

to the item in items.xml

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="decayTo" value="0" />
	<attribute key="duration" value="600" />
	<attribute key="showduration" value="1" />
	<attribute key="weight"      value="50" />
</item>
 
@Vincity

Only add:
PHP:
	<attribute key="decayTo" value="0" />
	<attribute key="duration" value="600" /> --Change for duration you want this are 10 minutes)
	<attribute key="showduration" value="1" />

to the item in items.xml

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="decayTo" value="0" />
	<attribute key="duration" value="600" />
	<attribute key="showduration" value="1" />
	<attribute key="weight"      value="50" />
</item>

if yu use it and put out the ring still lose time, i mean if u dont put in slot ring it still decrease time and decay when 0 in your bp.
 
skillboy, This ring adds 5 points to exp rates

no,
i put doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] + 1/2)

and it duplicate my rate exp

if i have exp x5 and use that ring them i got x10
if i hace exp x15 and use that ring them i got x30

;3?

@up
yep it decrease if u dont use, always need to be 2 rings
Code:
	<item id="XXXX" article="a" name="exp ring">
		<attribute key="weight" value="100" />
		<attribute key="slotType" value="ring" />
		<attribute key="decayTo" value="0" />
		<attribute key="transformDeEquipTo" value="YYYY" />
		<attribute key="duration" value="600" />
		<attribute key="showduration" value="1" />
	</item>
Code:
	<item id="YYYY" article="a" name="exp ring">
		<attribute key="weight" value="100" />
		<attribute key="slotType" value="ring" />
		<attribute key="transformEquipTo" value="XXXX" />
		<attribute key="stopduration" value="1" />
		<attribute key="showduration" value="1" />
	</item>

change XXXX for 6093 or whatever you use and YYYY for another new ring
 
Can someone please explain i dont understand what the + 5/2 means and the -5.
 
i put doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] + 1/2)

So for that to work i also need to set:

From:
Code:
return doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] - 5)
To:
Code:
 return doPlayerSetRate(cid, SKILL__LEVEL, rates[SKILL__LEVEL] [COLOR="red"][B]- 1[/B][/COLOR])
Right?
 
I had a problem when I log out the rings as an error when I reconnect the Experiense the char is increasing too but when I remove the ring and goes up even faster if I put the ring receive less experience than not be normal if I could help solve this problem thanks for your time
 
Back
Top