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.
It's says 1.0Need to know your distro/version...?
That's the problem my items attachment are made in source so that's why i dont know health/mana attribute.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.
<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>
Non of them. Doesn't work.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
you have to add the item to movements.xmlNon of them. Doesn't work.
I know i'm not stupidyou have to add the item to movements.xml
<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"/>
healthGain works without healthTicks. Do not redirect topic mateyou need healthTicks if you want healthGain to work