This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Help with adding coins

A.Flores

Platinian
Hi everyone. In dump.cs, I found this method:
Code:
// RVA: 0x16657f8 VA: 0x77a6ad07f8
 public Void AddCoins(Int32 amount, CoinsEarnedMethod earnedMthod, Boolean storeBackup) { }
I tried to hook it using different methods to call it, and it works; coins are added under certain conditions.

But I'm interested in whether it's possible to call such methods in the LGL menu when a switch is pressed in the running game. That is, I want the balance to be increased by, for example, 5000 coins when the button is pressed
 
You understood everything correctly.
If the method is static or if there is another method in the class that is frequently called, I don't encounter any issues. However, in this case, the method is not static, and there are no other methods in the class that are frequently called.

Regarding the guide on the forum, it's probably this one: Finding & Creating instance of any classes and Static fields, methods.
I haven't fully figured it out. The game either crashed when trying to add coins or nothing happened
 
Drop the class,method including your code for calling the instance of the class and invoking the method.

Lets see what we can improve.