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

Max Mana & HP

laglas

New Member
Joined
Mar 15, 2009
Messages
7
Reaction score
0
Witam Panowie.

Jest taki problem, tzn dodałem do itemu atrybut, by zwiększał max ilość hp & many o np. 20%.

do items.xml
<attribute key="maxmanapercent" value="120"/>
<attribute key="maxhealthpercent" value="120"/>

A to do movements.xml

<movevent type="Equip" itemid="2496" slot="helmet" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="2496" slot="helmet" event="function" value="onDeEquipItem"/>


Niby działa, tzn zwiększa tą mane i hp, ale jak zakładam go na helmet slot to daje mi 20%, w hand slots po nastepne 20%, no i arrow slot też mi dodaje.

No i moje pytanie brzmi, jak zrobić tak, by zwiększał tą manę i hp tylko, jeżeli założę go na głowe?

Z góry dzieki. :)
 
a przypadkiem to się nie nazywa HEAD zamiast helmet?


a i zrób w items.xml żeby dało się tylko na łeb założyć to bd bez problemu tzn zrób, ze jest hełmem
 
Ale fail z mojej strony :|, w items.xml już zrobiłem, żeby dało się tylko na łeb założyć, tylko spieprzyłem z tym 'helmetem'.

Tak czy siak, dzięki wielkie :)
 
Back
Top