Problem of my edit or values are protected?

sorida

New User
14
03/03/17
0
Thread Author
Hi, I'm new in modding, I tried to mod a game for the first time and failed. lol
So I'm wondering this is just an error of my edit or it can't be modded in simple way unless you do something advanced trick.

I tried to mod some kinds of points (guild / raid) in some game since I've heard before a rumor that some kind of point can be modded in this game.

This is original apk's code:

Code:
// NGame2.NAccount.UserManager
public void SetRaidPoint(int raidPoint)
{
    int raidPoint2 = this.UserInfo.RaidPoint;
    this.UserInfo.RaidPoint = raidPoint;
    if (raidPoint2 != raidPoint)
    {
        this._observerManager.AnnounceToObservers(new UserManager.UserStatInfo
        {
            UserStatType = UserManager.UserStatType.RaidPoint,
            BeforeValue = (long)raidPoint2,
            AfterValue = (long)raidPoint
        });
    }
}
Imgur: The most awesome images on the Internet (reflexil values)
Imgur: The most awesome images on the Internet

And this is what I edited:

Code:
// NGame2.NAccount.UserManager
public void SetRaidPoint(int raidPoint)
{
    base.SetRaidPoint(999999);
}
Imgur: The most awesome images on the Internet (reflexil values)

Yea, it didn't work. =/
I couldn't find 'get~' kind of codes in the script so had to edit 'set~~point'.
Anyway the app crashed as soon as I bought a stuff with guild point, and of course the point wasn't edited as I tried to mod.

So, I'm wondering this is just an error of my edit or these can't be modded in simple way since they are server sided values or protected anyways. Please help me xdd

Well, I know devs make currencies like gems and some important points as server sided values in general, but I have no idea how you can tell this actually by looking into their codes.. Any tips about this?
 
the problem is in

base.SetRaidPoint(999999);

you need to make sure the "base" class has that function, otherwise it'll just loop itself forever
 
the problem is in

base.SetRaidPoint(999999);

you need to make sure the "base" class has that function, otherwise it'll just loop itself forever


Thanks for reply :))

I don't know well how to make sure 'base' class,
so I changed 'base' into 'this' by changing OpCode 'call' into 'callvirt' instead.

Code:
// NGame2.NAccount.UserManager
public void SetRaidPoint(int raidPoint)
{
   this.SetRaidPoint(999999);
}

Imgur: The most awesome images on the Internet (screenshot)

But still it doesn't work lol. The app crashed as soon as I bought a stuff, and the point value wasn't edited either.
Is my method still wrong? or there could be some protection on this value..?

If I should use 'base', could you give me some ways about how to make sure its class?

Thank you
 
Last edited:
Base is super class, this is current class, in any case, don't call any methods what knowing if the methods exist in the payment class or not.

Just change your input to large value, leave everything else in there
 
Back
Top Bottom