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

Lua [8.6] Some items aren't working properly

Dylanaw

Godly Member
Joined
Feb 18, 2009
Messages
473
Reaction score
10
Hello Otlanders.




01:42 You see a shield of corruption (Def:38, sword fighting +3).
LUA:
<item id="12605" article="a" name="shield of corruption">
        <attribute key="weight" value="4900" />
        <attribute key="defense" value="38" />
	<attribute key="skillSword" value="3" />
        <attribute key="weaponType" value="shield" />
Problem with Shield of Corruption: it doesn't give me sword fighting +3



01:43 You see a royal draken mail (Arm:16, shielding +3, protection physical +5%).
LUA:
<item id="12603" article="a" name="royal draken mail">
        <attribute key="weight" value="13000" />
        <attribute key="armor" value="16" />
	<attribute key="skillShield" value="3" />
        <attribute key="absorbPercentPhysical" value="5" />
        <attribute key="slotType" value="body" />
Problem with royal draken mail: it doesn't give me shielding +3




01:44 You see a elite draken helmet (Arm:9, distance fighting +3, protection death +3%).
LUA:
<item id="12606" article="a" name="elite draken helmet">
        <attribute key="weight" value="12000" />
        <attribute key="armor" value="9" />
        <attribute key="slotType" value="head" />
        <attribute key="absorbPercentDeath" value="3" />
	<attribute key="skillDist" value="3" />
Problem with elite draken helmet: It doesn't give me distance fighting +3




01:44 You see a royal scale robe (Arm:12, magic level +3, protection fire +5%).
LUA:
<item id="12604" article="a" name="royal scale robe">
		<attribute key="weight" value="4500" />
		<attribute key="armor" value="12" />
		<attribute key="slotType" value="body" />
		<attribute key="magiclevelpoints" value="3" />
		<attribute key="absorbPercentFire" value="5" />
Problem with royal scale robe : It doesn't give me magic level +3

I´ve tested those items on their right vactions.
The other problem is also that they all don´t show their vaction like "Can only wielded by Knight"
Anyone know how to fix this problem?

Code:
Distro: 8.6 TFS
Those items are inside the items.xml 
nowhere else.

Thanks in advance:ninja:

(P.S Goodnight if u go to bed:p)
 
You have to put them in the XML. Just copy and paste a part from an other item and change ids etc.

MPA example
LUA:
-<movevent value="onEquipItem" event="function" itemid="2472" type="Equip" slot="armor"> 
<vocation id="4"/> 
<vocation id="8" showInDescription="0"/> 
<vocation id="3"/> 
<vocation id="7" showInDescription="0"/> 
</movevent>
<movevent value="onDeEquipItem" event="function" itemid="2472" type="DeEquip" slot="armor"/>

Its possible that your movements look a bit different if you use an other version.
 
You have to put them in the XML. Just copy and paste a part from an other item and change ids etc.

MPA example
LUA:
-<movevent value="onEquipItem" event="function" itemid="2472" type="Equip" slot="armor"> 
<vocation id="4"/> 
<vocation id="8" showInDescription="0"/> 
<vocation id="3"/> 
<vocation id="7" showInDescription="0"/> 
</movevent>
<movevent value="onDeEquipItem" event="function" itemid="2472" type="DeEquip" slot="armor"/>

Its possible that your movements look a bit different if you use an other version.


Thank u, all items are fine now.
Thank u for helping :)
Rep+
 
Back
Top