• 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 Error on Movements.xml [simple] (rep++)

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hello.
I modified some rings, so, i want just X vocations can use X ring.
But, the console now give me errors and the server don't open.

Here's my .xml of the modified rings

<movement type="Equip" itemid="2166" slot="ring" event="function" value="onEquipItem"/>
<movement type="Equip" itemid="2203" slot="ring" event="function" value="onEquipItem"/>
<movement type="DeEquip" itemid="2203" slot="ring" event="function" value="onDeEquipItem"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="7" showInDescription="0"/>
<vocation id="8" showInDescription="0"/>
</movevent>

<movement type="Equip" itemid="2212" slot="ring" event="function" value="onEquipItem"/>
<movement type="Equip" itemid="2209" slot="ring" event="function" value="onEquipItem"/>
<movement type="DeEquip" itemid="2209" slot="ring" event="function" value="onDeEquipItem"/>
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="5" showInDescription="0"/>
<vocation id="6" showInDescription="0"/>
<vocation id="7" showInDescription="0"/>
</movevent>

what's wrong?
ty
 
I removed it from my ot, so, i don't remember haha.
But it gives error 'unexpected >' from the line 23 & 30 :/
look xml i put in post, u'll understend the error :)
 
Code:
	<movevent type="Equip" itemid="2166" slot="ring" event="function" value="onEquipItem">
		<vocation id="3"/>
		<vocation id="4"/>
		<vocation id="7" showInDescription="0"/>
		<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"/>

	<movevent type="Equip" itemid="2212" slot="ring" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="3"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="6" showInDescription="0"/>
		<vocation id="7" showInDescription="0"/>
	</movevent>
	<movevent type="Equip" itemid="2209" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2209" slot="ring" event="function" value="onDeEquipItem"/>
 
Code:
	<movevent type="Equip" itemid="2166" slot="ring" event="function" value="onEquipItem">
		<vocation id="3"/>
		<vocation id="4"/>
		<vocation id="7" showInDescription="0"/>
		<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"/>

	<movevent type="Equip" itemid="2212" slot="ring" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="3"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="6" showInDescription="0"/>
		<vocation id="7" showInDescription="0"/>
	</movevent>
	<movevent type="Equip" itemid="2209" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2209" slot="ring" event="function" value="onDeEquipItem"/>

Cykotitan to the rescue :wub:
 
Hello Cykotitan.
its' an error with what u give me.

1 ring is not decaying
and the other is not working.
fix it plx :D
thx
[don't have error in console]
 
Last edited:
Here go the rings...

<item id="2209" article="a" name="first ring">
<attribute key="weight" value="90" />
<attribute key="slotType" value="ring" />
<attribute key="transformEquipTo" value="2212" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="1" />

<item id="2212" article="a" name="first ring">
<attribute key="weight" value="90" />
<attribute key="slotType" value="ring" />
<attribute key="decayTo" value="0" />
<attribute key="transformDeEquipTo" value="2209" />
<attribute key="duration" value="18000" />
<attribute key="showduration" value="1" />

<item id="2166" article="a" name="second ring">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="transformEquipTo" value="2203" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="1" />

<item id="2203" article="a" name="second ring">
<attribute key="weight" value="80" />
<attribute key="slotType" value="ring" />
<attribute key="decayTo" value="0" />
<attribute key="transformDeEquipTo" value="2166" />
<attribute key="duration" value="18000" />
<attribute key="showduration" value="1" />
 
Back
Top