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

Problem with custom items

DonHagman

Chill'Reward2014
Joined
Dec 26, 2010
Messages
877
Reaction score
191
Location
Dudeland, Macronesia
Hello!

I am trying to make some custom rings, and I got some problems with it.

I've made Paladin Ring, Knight Ring and Mage ring, and the problem is that All vocations can use each ring (Knight can get magic level 16 etc).

This is my items.xml ->

Paladin Ring:

Code:
<item id="7697" article="a" name="Paladin Ring">
    <attribute key="description" value="+7 in Distance Fighting." />
    <attribute key="weight" value="80" />
    <attribute key="skillDist" value="7" />
    <attribute key="slotType" value="ring" />
  </item>


Knight Ring:

Code:
<item id="10510" article="a" name="Knight Ring">
    <attribute key="description" value="+7 in Sword, Axe, Club Fighting." />
    <attribute key="weight" value="40" />
    <attribute key="skillSword" value="7" />
    <attribute key="skillAxe" value="7" />
    <attribute key="skillClub" value="7" />
    <attribute key="slotType" value="ring" />
  </item>


Mage Ring:

Code:
<item id="10502" article="a" name="Mage Ring">
    <attribute key="description" value="+5 in Magic Level." />
    <attribute key="weight" value="3500" />
    <attribute key="magiclevelpoints" value="5" />
    <attribute key="slotType" value="ring" />
  </item>


Here is my movements.xml ->

Paladin Ring:

Code:
       <movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/>
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>


Knight Ring:

Code:
       <movevent type="Equip" itemid="10510" slot="ring" event="function" value="onEquipItem"/>
		<vocation id="4"/>
		<vocation id="8" showInDescription="0"/>





Mage Ring:

Code:
       <movevent type="Equip" itemid="10502" slot="ring" event="function" value="onEquipItem"/>
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/>


The vocation ID's is correct.

If anyone Please could help me out, I would really need that.


Ofc Rep++!
Your's
Hagman :ninja:
 
I've done that, here is my Paladin Ring for example:

Code:
	<movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/>
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
	<movevent type="DeEquip" itemid="7697" slot="ring" event="function" value="onDeEquipItem"/>
 
I've done that, here is my Paladin Ring for example:

Code:
	<movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/>
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
	<movevent type="DeEquip" itemid="7697" slot="ring" event="function" value="onDeEquipItem"/>

ahhh cool, just making sure :3

have you tried without the "showInDescription" part? it may be that messing it up, i know it works for necklaces but not seen used in rings :S
 
maybe instead of having the thing it does in items.xml make it a script for that ring?

if getVocation(cid) == 4 or 8 or w.e. then return False else add mag lvl (then if removing ring, remove the extra stuff)
 
Oh.. You mean an own script for each custom ring?

Can you tell me a little more how that script should look like?

something along the lines of doAddPlayerSkill(cid,magic,4) etc, way too tired to write it all out sorry xD
(obviously the remove/deEquipItem function is -4 lol)
 

Similar threads

Replies
0
Views
204
Back
Top