• 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 0.X hp and mana limit break

Lurk

Active Member
Joined
Dec 4, 2017
Messages
336
Reaction score
48
Hello, yesterday I broke the mana and health limit mirroring this sources
I can /attr maxhealth 9999999999999999999999 someone just fine, but when this person relogs or dies, the hp goes back to 2bilion (the previous maximium), I've already double checked every single file I altered, and even iologindata.cpp has health and mana set to long or uint64 I don't remember currectly, but my sources are identical to this guy's. Any idea?

1567701358905.png
it works perfectly on monsters
XML:
<monster name="Monster" nameDescription="a rat" race="blood" experience="5" speed="140" manacost="200">
  <health now="999999999990" max="999999999990"/>
  <look type="193" head="20" body="30" legs="40" feet="50" corpse="5964"/>
  <targetchange interval="2000" chance="0"/>
  <strategy attack="100" defense="0"/>
  <flags>
 
Last edited:
Just go into phpmyadmin and edit the table structure, increase the limit of the health/healthMax/mana/manaMax columns.
 
Someone can help me ?

I change all this...

LINES ON: 8.60 / Tfs 0.4 ( BROKEN 2B HP AND MP LIMIT same for Monsters ) OFFICAL RELEASE (https://otland.net/threads/8-60-tfs-0-4-broken-2b-hp-and-mp-limit-same-for-monsters-offical-release.246577/)

combat.cpp - 529, 553
condition.cpp - 1086, 1098, 1116, 1150, 1200
condition.h - 283
creature.cpp - 877, 882, 887, 892, 914, 929, 939, 949, 1115, 1135, 1217, 1222, 1228, 1233
creature.h - 254, 255, 256, 257, 291, 331, 333, 343, 344, 345, 352, 353, 365, 366, 367, 368, 369, 370, 371, 476, 477
game.cpp - 3517, 4347, 4360, 4406, 4449, 4454, 4455, 4624, 4660
game.h - 585, 587, 589
luascript.cpp - 3953, 3979, 8849
monster.cpp - 65, 66, 502, 1360, 1367
monster.h - 94, 95, 120
monsters.cpp - 911 - int32_t intValue; 912 - int64_t int64Value;
monsters.h - uint64_t experience,health, healthMax;
player.cpp - 586, 601, 605, 1854, 1867, 1880, 1885, 1890, 1954, 1956, 2034, 2035, 2125, 2149, 2292, 2297, 2306, 3568, 3837, 3849, 3858, 4044, 4050
player.h - 335, 432, 490, 491, 589, 590, 596, 613, 614, 618, 627, 643, 644, 645, 1194
protocolgame.cpp - 2863, 3037
talkaction.cpp - 1256
vocation.cpp - 517, 523
vocation.h - 111
iologindata.cpp - LONG

but didn't work :/
I think, I miss something.
 
Back
Top