• 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 [Item] One Attribute Question!

Sweddy

Well-Known Member
Joined
Feb 14, 2009
Messages
2,907
Reaction score
93
Location
Sweden
Lua:
<attribute key="dosetmaxHP" value="6" />
		<attribute key="dosetmaxMANA" value="3" />

What do i need to write to get this: its a ring who should give 6% max hp and 3% max mana to the one that is wearing it and when he take it off he loose the same amount...
Its a ring.

i use TFS 0.3.6
 
it should be a moveevent script... not in items.xml just fix it in items.xml as a ring and in moveevents.xml fix the script :)
 
Code:
<attribute key="maxHealthPercent" value="106"/>
<attribute key="maxManaPercent" value="103"/>

100 means 100% (aka. Normal)
110 means 110% (aka. 10% more)
 
Lua:
	<item id="7697" article="a" name="signet ring">
		<attribute key="weight" value="80" />
        <attribute key="maxHealthPercent" value="106"/>
        <attribute key="maxManaPercent" value="103"/>
		<attribute key="slotType" value="ring" />
	</item>

Not Working :(
 
Did you add it in movements.xml? ;//
Code:
	<movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="7697" slot="ring" event="function" value="onDeEquipItem"/>
 
Last edited:
Back
Top