• 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!

Equip + deEquip rings problem

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
373
GitHub
olrios
Twitch
jamagowy
I intend to use two kinds of rings: blessed
97282157.png
and normal
81464812.png


But always then i make a blessed ring, it apear like a normal ring.
I edited items.xml and movements.xml

For blessed:
Code:
<item id="2202" article="a" name="blessed ring of mana">
	<attribute key="weight" value="100"/>
	<attribute key="slotType" value="ring"/>
	<attribute key="magiclevelpoints" value="1"/>
	<attribute key="maxmanapercent" value="10"/>
	<attribute key="armor" value="1"/>
</item>
Code:
<movevent type="Equip" itemid="2202" slot="ring" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2202" slot="ring" event="function" value="onDeEquipItem"/>

And for normal:
Code:
<item id="2165" article="a" name="ring of mana">
	<attribute key="weight" value="100"/>
	<attribute key="slotType" value="ring"/>
	<attribute key="magiclevelpoints" value="1"/>
	<attribute key="maxmanapoints" value="120"/>
	<attribute key="armor" value="-1"/>
</item>
Code:
<movevent type="Equip" itemid="2165" slot="ring" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2165" slot="ring" event="function" value="onDeEquipItem"/>


Normal rings works corectly, but blessed always transform into normal ring.
Always when I equip/deEquip it is normal...

Someone know how to repair this 'bug'?
 
Code:
<item id="2165" article="a" name="ring of mana">
	<attribute key="weight" value="100"/>
	<attribute key="slotType" value="ring"/>
	<attribute key="magiclevelpoints" value="1"/>
	<attribute key="maxmanapoints" value="120"/>
	<attribute key="armor" value="-1"/>
        [COLOR="Red"]<attribute key="transformEquipTo" value="2202" />[/COLOR]
</item>
Code:
<item id="2202" article="a" name="blessed ring of mana">
	<attribute key="weight" value="100"/>
	<attribute key="slotType" value="ring"/>
	<attribute key="magiclevelpoints" value="1"/>
	<attribute key="maxmanapercent" value="10"/>
	<attribute key="armor" value="1"/>
[COLOR="Red"]        <attribute key="transformDeEquipTo" value="2165" />[/COLOR]
</item>
 
@Slaktaren
I think u don't understood my problem

I need 2 kinds of rings. Not one, what is normal then unequipped and blessed then equipped.
 
Not possible. Then you have to use other kind of ring.
You can't use 1 stealth ring to do one thing and 1 stealth ring to do another thing.
Use like life ring and stealth ring then
 
Back
Top