• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[TUT] ptemplate "fix"

Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,299
First open gs in IDA free/pro:

Locate the function (search for) "adjustglobalexp"... It should look like this:



Change this to "call" ~ "conf::dump" / "_ZN4ONET4Conf4dumpEP8_IO_FILE" instead...:



next go to the HEX view for the very start of this function:



manually (F2) edit the data from whatever it is, to:

55 89 E5 83 EC 08 B8 40 04 4C 09 89 45 FC 8B 55
08 8B 45 08 DB 00 8B 45 FC D9 80 1C 1C 00 00 D9
E8 DE C1 DE C9 D9 7D FA 66 8B 45 FA B4 0C 66 89
45 F8 D9 6D F8 DB 1A D9 6D FA 8B 55 0C 8B 45 0C
DB 00 8B 45 FC D9 80 20 1C 00 00 D9 E8 DE C1 DE
C9 D9 6D F8 DB 1A D9 6D FA C9 C3 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 89 F6



Then follow/locate the "player_template::_instance" structure (from conf::dump)

 

Attachments

You must be registered for see attachments list
Joined
Oct 14, 2009
Messages
5,493
Reaction score
2,299
We are going to retrieve some "addressing" info from the structure here! First you want to note the "exp_bonus" 'address' as shown here:



So that we can enter that info here (first "fld dword ptr [eax+<address>h]") :



Go back to the structure and get the 'address' for the "sp_bonus" as shown here:



Edit that info into here (the second "fld dword ptr [eax+<address>h]"):





*presto* your gs will now (once again) "read" ptemplate :
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jan 3, 2017
Messages
70
Reaction score
12
Thank you for your release, very help me on my project