• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need attribute which add health/mana

Lopaskurwa

Well-Known Member
Joined
Oct 6, 2017
Messages
936
Solutions
2
Reaction score
57
Hi does anyone know how can i find attribude code which gives health and hp/mana like example 10k.
 
Check your items.h if you already have that feature. Otherwise you will need to add it yourself.

You can also check items.xml if theres already any item using it.
 
Check your items.h if you already have that feature. Otherwise you will need to add it yourself.

You can also check items.xml if theres already any item using it.
That's the problem my items attachment are made in source so that's why i dont know health/mana attribute.

Bump
 
Last edited by a moderator:
maxmanapoints, maxmanapointspercent, maxhitpoints and maxhitpointspercent

example:
Code:
    <item id="2441" article="a" name="daramian axe">
        <attribute key="weight" value="4100" />
        <attribute key="defense" value="8" />
        <attribute key="attack" value="17" />
        <attribute key="weaponType" value="axe" />
        <attribute key="maxmanapoints" value="100" />
        <attribute key="maxhitpoints" value="100" />
    </item>

Remember also to register it in weapons.xml and movements.xml
 
maxmanapoints, maxmanapointspercent, maxhitpoints and maxhitpointspercent

example:
Code:
    <item id="2441" article="a" name="daramian axe">
        <attribute key="weight" value="4100" />
        <attribute key="defense" value="8" />
        <attribute key="attack" value="17" />
        <attribute key="weaponType" value="axe" />
        <attribute key="maxmanapoints" value="100" />
        <attribute key="maxhitpoints" value="100" />
    </item>

Remember also to register it in weapons.xml and movements.xml
Non of them. Doesn't work.
 
you have to add the item to movements.xml
I know i'm not stupid :D i did it already that's why i write here because i stuck with adding health because i made adding skills, and regeneration.
Have more ideas attribute? This is how this item looks like
Code:
        <item id="7409" name="Test Legs">
        <attribute key="description" value="Balbalblabla."/>
        <attribute key="weight" value="3100"/>
        <attribute key="armor" value="120"/>
        <attribute key="healthGain" value="400" />
        <attribute key="manaGain" value="400" />
        <attribute key="skillAxe" value="20"/>
        <attribute key="skillclub" value="20"/>
        <attribute key="skilldist" value="20"/>
        <attribute key="skillfish" value="20"/>
        <attribute key="skillshield" value="20"/>
        <attribute key="skillfist" value="20"/>
        <attribute key="skillsword" value="20"/>
        <attribute key="slotType" value="legs"/>
Maybe these lines will give idea which attributes could work
 
Back
Top