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

TFS 1.X+ tfs 1.4 + regen&maxstat on look

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
176
Location
Sweden
I copy pasted this code snippet and comipiled with the newest version of tfs 1.4 without any changes.
Everything looks good & correct. It compiles without any issues but ingame makes no difference.
I changed both lines in item.cpp and i even changed, just for testing purpose the "speed" text to: "speed1231233" but nothing changed, even the speed text is same as before. So I guess the attributes in item.cpp isn't related or correct to this?

(OTXSERVER TFS1.2 BASSED)Look HP/Mana regeneration and percent on look (https://otland.net/threads/otxserver-tfs1-2-bassed-look-hp-mana-regeneration-and-percent-on-look.264616/#post-2669900)
C++:
            // Show maxHitPoints on item
            if (it.abilities->stats[STAT_MAXHITPOINTS]) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "health " << std::showpos << it.abilities->stats[STAT_MAXHITPOINTS] << std::noshowpos;
            }
      
            // Show maxManaPoints on item
            if (it.abilities->stats[STAT_MAXMANAPOINTS]) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "mana " << std::showpos << it.abilities->stats[STAT_MAXMANAPOINTS] << std::noshowpos;
            }
      
            // Show maxHitPointsPercent on item
            if (it.abilities->statsPercent[STAT_MAXHITPOINTS]) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "health " << std::showpos << it.abilities->statsPercent[STAT_MAXHITPOINTS] - 100 << std::noshowpos << "%";
            }
      
            // Show maxManaPointsPercent on item
            if (it.abilities->statsPercent[STAT_MAXMANAPOINTS]) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "mana " << std::showpos << it.abilities->statsPercent[STAT_MAXMANAPOINTS] - 100 << std::noshowpos << "%";
            }
      
            // Show healthGain/healthTicks on item
            if (it.abilities->regeneration) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "+" << std::showpos << it.abilities->healthGain << std::noshowpos << " hp/" << std::showpos << it.abilities->healthTicks / 1000 << std::noshowpos << "s";
            }
      
            // Show manaGain/manaTicks on item
            if (it.abilities->regeneration) {
                if (begin) {
                    begin = false;
                    s << " (";
                }
                else {
                    s << ", ";
                }

                s << "+" << std::showpos << it.abilities->manaGain << std::noshowpos << " mp/" << std::showpos << it.abilities->manaTicks / 1000 << std::noshowpos << "s";
            }
 
Anyone?
I've done other small successfull changes to these sources, but nothing that would make an impact towards this.
Someone able to point me to correct direction?
 
Anyone, anything, alo?
Have you applied the changes in those 3 parts of code?



 
Have you applied the changes in those 3 parts of code?



Yes, however I'm using an amulet so changing these wouldn't impact the amulet.
I have also tried putting on the amulet and the effects of regen & max hitpoints increases as set, so nothing wrong there.
 
Last edited:
Back
Top