Tutorial Unity tutorial - Making value adder hack for offline games

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,756
300,986
1,213
Modding World
If you know C# basics, you will understand it.
In offline games, I basically looking for reward function and found codes that adds value into player data

LKahprX.png


And re-use the codes into mod menu with buttons to add values

pQtKx6K.png


xC0eD1T.gif


Other similar codes from other games (I don’t tell what game) that adds coins and gems:
C#:
int num = TPlayerPrefs.GetEncryptGold((int)DHGlobal.g_CurrentPlayerIndex);
num += 20000;
TPlayerPrefs.SetEncryptGold((int)DHGlobal.g_CurrentPlayerIndex, num);
C#:
TPlayerPrefs.SetEncryptGem(TPlayerPrefs.GetEncryptGem() + 200);
Here are the codes:
Gitlab: Unity/WK_RS · master · iAndroHacker / Hack_Source_Center · GitLab

Github: AndnixSH/Hack_Source_Center
 
N

Null69

Guest
What is the opcode and operand type if I want to do this in Net Reflector?
Example return this.currency.GetCoins(); how to do return this.currency.GetCoins() + 5000;
If you know how please help me
Thank you!
 

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,756
300,986
1,213
Modding World
What is the opcode and operand type if I want to do this in Net Reflector?
Example return this.currency.GetCoins(); how to do return this.currency.GetCoins() + 5000;
If you know how please help me
Thank you!
I'm not familar with IL, sorry.