• 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 Donate items

Quab

Mapper/C++ User
Joined
Jun 22, 2008
Messages
350
Reaction score
0
Location
In Your Dream$
Hello, on my ot i have some donation weapons&armors.

But when i've edited them so they should give for example 5+ dist. I've write <attribute~skilldist~. correctly..

But when you use the item in game you can't see any changes. Why?
I use 0.3.6pl1

Thx Rep+!
 
you must add the items in movements.xml

example:

Lua:
	<movevent type="Equip" itemid="7730" slot="legs" level="100" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/> 
	</movevent>
	<movevent type="DeEquip" itemid="7730" slot="legs" event="function" value="onDeEquipItem"/>

itemid = 7730 = id of blue legs, so if you add for example

Code:
	<item id="7730" name="blue legs">
		<attribute key="weight" value="1800"/>
		<attribute key="magiclevelpoints" value="20"/>
    </item>

then u do what i did in movements.xml..
 
Back
Top