Hi, I'm new in modding, I tried to mod a game for the first time but failed. xd
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:
http://imgur.com/a/hGqTC (reflexil values)
http://imgur.com/a/xURMY
And this is what I edited:
http://imgur.com/a/xIJqG (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?
EDIT1.
I changed 'base' into 'this' by changing OpCode 'call' into 'callvirt', but it still doesn't work.
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
});
}
}
http://imgur.com/a/xURMY
And this is what I edited:
Code:
// NGame2.NAccount.UserManager
public void SetRaidPoint(int raidPoint)
{
base.SetRaidPoint(999999);
}
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?
EDIT1.
I changed 'base' into 'this' by changing OpCode 'call' into 'callvirt', but it still doesn't work.
Code:
// NGame2.NAccount.UserManager
public void SetRaidPoint(int raidPoint)
{
this.SetRaidPoint(999999);
}