• 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.10] Item Attributes/script connected to it.

  • Thread starter Thread starter varhlak
  • Start date Start date
V

varhlak

Guest
Hey!

I have recently tried on adding an item that adds lets say 20% of your FULL HP.

LUA:
<item id="xxx" article="a" name="xxxxxx">
		<attribute key="weight" value="6800"/>
		<attribute key="armor" value="70"/>
		<attribute key="maxhealthpercent" value="200"/>
		<attribute key="maxmanapercent" value="200"/>
		<attribute key="slotType" value="head"/>
	</item>

This should add 100% to my HP, so it should basically double the amount of HP and MANA currently on my bar. Although it does not. The attribute does not respond at all, it's all set up in movements etc. Is it possible to make a script for it? Like for one of items maybe in the movements.xml scripts? Again - it's an 8.10 so don't come up with 8.6 scripts. Thanks for help.
 
Add to movements.xml
XML:
<movevent type="Equip" itemid="xxxx" slot="head" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="xxxx" slot="head" event="function" value="onDeEquipItem"/>
 
movementserror.jpg

LUA:
<movevent event="Equip" itemid="2198" slot="necklace" function="onEquipItem" />
<movevent event="DeEquip" itemid="2198" slot="necklace" function="onDeEquipItem" />

<movevent type="Equip" itemid="2171" slot="necklace" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2171" slot="necklace" event="function" value="onDeEquipItem"/>

First line = my original 8.1 XML script,
second line = the line you gave me.

Any idea how to make it work?
 
Code:
<movevent event="Equip" itemid="2171" slot="necklace" function="onEquipItem"/>
<movevent event="DeEquip" itemid="2171" slot="necklace" function="onDeEquipItem"/>
...
 
@Summ
Did you read the topic? I ALREADY HAVE THAT, and the LINE that i wanted to do --->
LUA:
		<attribute key="maxhealthpercent" value="200"/>
		<attribute key="maxmanapercent" value="200"/>
does NOT work, and IS THERE a way to make it work?


@topic
The server is ARIES 0.4.0, NOT TFS. Again - it's 8.10 XML.
 
@Summ
Did you read the topic? I ALREADY HAVE THAT, and the LINE that i wanted to do --->
LUA:
		<attribute key="maxhealthpercent" value="200"/>
		<attribute key="maxmanapercent" value="200"/>
does NOT work, and IS THERE a way to make it work?


@topic
The server is ARIES 0.4.0, NOT TFS. Again - it's 8.10 XML.

Check the source for a list of item attributes? Those attributes probably don't exist in aries
 
@Summ
Did you read the topic? I ALREADY HAVE THAT, and the LINE that i wanted to do --->
LUA:
		<attribute key="maxhealthpercent" value="200"/>
		<attribute key="maxmanapercent" value="200"/>
does NOT work, and IS THERE a way to make it work?


@topic
The server is ARIES 0.4.0, NOT TFS. Again - it's 8.10 XML.

You didnt say that you already got that, you asked to to make it work.
As mentioned above check the sources for the attributes OR use another distro
 
Back
Top