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

Atributte max health percent to a transform ring

tuduras

Member
Joined
Jun 4, 2017
Messages
76
Solutions
1
Reaction score
11
Hello Otland,

I have got transform ring . Problem is, it doesn't add maxhitpointspercent to a character when i equip ring.
I don't know why.
Engine: otx version 2.16. Its based on: The Forgotten Server 0.3.7.

I try add
LUA:
<attribute key="maxhitpointspercent" value="X" />
to my ring id 2127 in items.xml
...it doesn't Work ! ?
 
It looks like you haven't registered the item ID in movements.xml, so you need to register it. Here's an example:
XML:
<!-- transform ring -->
<movevent type="Equip" itemid="2127" slot="ring" level="xx" event="function" value="onEquipItem">
    <vocation id="4"/>
    <vocation id="8" showInDescription="0"/>
    <vocation id="3"/>
    <vocation id="7" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="2127" slot="ring" event="function" value="onDeEquipItem"/>
And also adjust the correct vocation and your preferred level... It's simple.
 
Last edited:
still doesnt work. Maybe somethink in code
Post automatically merged:

I have shield with this atributte :

LUA:
        <attribute key="maxManaPointsPercent" value="122"/>
        <attribute key="maxHitPointsPercent" value="122"/>
and work perfectly. In ring doesnt work. any solution ? Thanks
 
Last edited:
still doesnt work. Maybe somethink in code
Post automatically merged:

I have shield with this atributte :

LUA:
        <attribute key="maxManaPointsPercent" value="122"/>
        <attribute key="maxHitPointsPercent" value="122"/>
and work perfectly. In ring doesnt work. any solution ? Thanks
I think there is no maxManapointpercent in normal tfs nor maxHitpointpercent as well it was maxHitChance
 
@up 3aola1

problem is that way, I have got ARMOR and SHIELD that MaxHitpointpercent works. Only ring doesn't work.
:/
 
Only ring doesn't work.
Are you sure that you have <attribute key="slotType" value="ring"/> in items.xml?
I've checked newest otxserv2 (8.60 - otxserver/data/items/items.xml at otxserv2 · mattyx14/otxserver (https://github.com/mattyx14/otxserver/blob/otxserv2/data/items/items.xml)) and it does not have this attribute in items.xml for 2127 and official 0.3 had it.

It should work with items.xml (120 = +20% HP):
XML:
<item id="2127" article="an" name="emerald bangle">
	<attribute key="weight" value="179"/>
	<attribute key="slotType" value="ring"/>
	<attribute key="maxhitpointspercent" value="120"/>
</item>
and movements.xml:
XML:
<movevent type="Equip" itemid="2127" slot="ring" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2127" slot="ring" event="function" value="onDeEquipItem"/>
 
Back
Top