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

Solved [HELP] Add max life/mana bonus to equipment with item

breispodeu

Mapper/Scripter/C++ Programmer
Joined
Jul 25, 2009
Messages
80
Reaction score
5
GitHub
lucasoares
Hello. I want to make some item, when used in one equipment, adds life or mana max in bonus.

Let me explain:

Ex.: I use one item in my demon armor and now, my armor adds life or mana max (depending on my decision) when equiped. When I take off the armor my life/mana back to normal.

Is there any way to accomplish this? My server is TheOTXServer 8.6, based in tfs.

Thanks.
 
I don't have the source files of that server, but in TFS it's like this.

Adds mana/hp (100)
Code:
<attribute key="maxManaPoints" value="100"/>
<attribute key="maxHitPoints" value="100"/>

Adds % of max mana/hp (10%)
Code:
<attribute key="maxManaPointsPercent" value="110"/>
<attribute key="maxHitPointsPercent" value="110"/>

If it's called different in your server, you can look in items.cpp for the right ones.
 
Back
Top