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

Solved Not solved!

Vrotz

Member
Joined
Apr 7, 2011
Messages
1,071
Reaction score
7
Location
Brazil
I've edited items in my server and some of them are rings that offer skills and magic levels.
How I do to deprive them to vocations?

Movements xml:
PHP:
		<!-- Stealth Ring -->
	<movevent type="Equip" itemid="2165" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="Equip" itemid="2202" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2202" slot="ring" event="function" value="onDeEquipItem"/>

Where I'll add this line to fix?
PHP:
		<vocation id="7"/>
		<vocation id="8"/>

I want to make vocation only use the ring of his vocation..
Ex.: Knight only use the "Knight Ring".

Thanks.
 
Code:
    <movevent type="Equip" itemid="2165" slot="ring" event="function" value="onEquipItem">
        <vocation id="4"/>
        <vocation id="8" showInDescription="0"/>
    </movevent>
    <movevent type="Equip" itemid="2202" slot="ring" event="function" value="onEquipItem"/>
    <movevent type="DeEquip" itemid="2202" slot="ring" event="function" value="onDeEquipItem"/>
 
Last edited:
What TFS u use man?

is so:
PHP:
<movevent type="Equip" itemid="2165" slot="ring" event="function" value="onEquipItem">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="2165" slot="ring" event="function" value="onDeEquipItem"/>
 
I'll post the rings I need

PHP:
<item id="2165" article="a" name="mage ring">
        <attribute key="weight" value="100"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="showattributes" value="1"/>
        <attribute key="transformEquipTo" value="2202"/>
    </item>
    <item id="2202" article="a" name="mage ring">
        <attribute key="weight" value="100"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="transformDeEquipTo" value="2165"/>
        <attribute key="magicpoints" value="4"/>
        <attribute key="showattributes" value="1"/>
    </item>

    <item id="2203" article="a" name="knight ring">
        <attribute key="weight" value="80"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="transformDeEquipTo" value="2166"/>
        <attribute key="skillsword" value="4" />
        <attribute key="skillaxe" value="4" />
        <attribute key="showattributes" value="1"/>
    </item>
    <item id="2166" article="a" name="knight ring">
        <attribute key="weight" value="80"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="showattributes" value="1"/>
        <attribute key="transformEquipTo" value="2203"/>
    </item>

    <item id="2209" article="a" name="paladin ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="showattributes" value="1"/>
        <attribute key="transformEquipTo" value="2212"/>
    </item>
    <item id="2212" article="a" name="paladin ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="transformDeEquipTo" value="2209"/>
        <attribute key="skillDist" value="4" />
        <attribute key="showattributes" value="1"/>
    </item>

    <item id="2207" article="a" name="magician vip ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="transformEquipTo" value="2210"/>
        <attribute key="description" value="Este item so pode ser adquirido por um VIP Account." />
        <attribute key="stopduration" value="1"/>
        <attribute key="showduration" value="1"/>
        <attribute key="showattributes" value="1"/>
    </item>
    <item id="2210" article="a" name="magician vip ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="transformDeEquipTo" value="2207"/>
        <attribute key="magicpoints" value="15"/>
        <attribute key="skillShield" value="4"/>
        <attribute key="duration" value="1800"/>
        <attribute key="showduration" value="1"/>
        <attribute key="showattributes" value="1"/>
    </item>

    <item id="2211" article="an" name="power vip ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="decayTo" value="0"/>
        <attribute key="transformDeEquipTo" value="2208"/>
        <attribute key="skillAxe" value="15"/>
        <attribute key="skillSword" value="15"/>
        <attribute key="skillDist" value="15"/>
        <attribute key="duration" value="1800"/>
        <attribute key="showduration" value="1"/>
        <attribute key="showattributes" value="1"/>
    </item>
    <item id="2208" article="an" name="power vip ring">
        <attribute key="weight" value="90"/>
        <attribute key="slotType" value="ring"/>
        <attribute key="description" value="Este item so pode ser adquirido por um VIP Account." />
        <attribute key="transformEquipTo" value="2211"/>
        <attribute key="stopduration" value="1"/>
        <attribute key="showduration" value="1"/>
        <attribute key="showattributes" value="1"/>
    </item>

I can't post the movements, is too long message
 
What's is not working?

movements.xml
Code:
   <movevent type="Equip" itemid="2166" slot="ring" event="function" value="onEquipItem">
      <vocation id="4"/>
      <vocation id="8" showInDescription="0"/>
   </movevent>
   <movevent type="Equip" itemid="2203" slot="ring" event="function" value="onEquipItem"/>
   <movevent type="DeEquip" itemid="2203" slot="ring" event="function" value="onDeEquipItem"/>
items.xml
Code:
   <item id="2166" article="a" name="knight ring">
     <attribute key="weight" value="80" />
     <attribute key="slotType" value="ring" />
     <attribute key="transformEquipTo" value="2203" />
     <attribute key="showattributes" value="1" />
   </item>

   <item id="2203" article="a" name="knight ring">
     <attribute key="weight" value="80" />
     <attribute key="slotType" value="ring" />
     <attribute key="transformDeEquipTo" value="2166" />
     <attribute key="skillClub" value="4" />
     <attribute key="skillSword" value="4" />
     <attribute key="skillAxe" value="4" />
     <attribute key="showattributes" value="1"/>
   </item>

OWzCqmQ.png

XmK40ip.png
 
Back
Top