Help! How to make input amount of coins you want

Poison Modz

Approved Modder
Original poster
Approved Modder
Aug 27, 2020
158
11,069
1,193
India
Hi guys i have experience of 1 to 1.5 years of modding but i doesn't work how to make input amount of coins you want
Anyone can help me is there any tutorial for this thank you
 

alsya

Solid & Active Platinian
Oct 21, 2021
80
18
8
unknown
//HOOKING

int (*old_getUserCoin)(void *instance);
int _getUserCoin(void *instance){
if(instance != NULL){
if(isCoin > 1){
return (int) isCoin;
}
}
return old_getUserCoin(instance);
}




OBFUSCATE("InputValue_ADD COIN"),
 

Poison Modz

Approved Modder
Original poster
Approved Modder
Aug 27, 2020
158
11,069
1,193
India
//HOOKING

int (*old_getUserCoin)(void *instance);
int _getUserCoin(void *instance){
if(instance != NULL){
if(isCoin > 1){
return (int) isCoin;
}
}
return old_getUserCoin(instance);
}




OBFUSCATE("InputValue_ADD COIN"),
How i make case for this and how to put offsets for this
 

Raebydett

Awesome Active Platinian
Jan 20, 2020
171
60
28
G
It seem u have lack of knowledge even with 1.5y, you should try with patching method first then u will learn eventually by yourself. There is alot tutorial here u cant even follow simple one
 
  • Haha
Reactions: xyzhunter

·҉ dollaz·҉. .

Approved iModder
Approved iModder
Mar 26, 2021
159
1,819
193
Somewhere
How i make case for this and how to put offsets for this
First of all, the LGL template already has examples of all of this. If you cant do it even with many examples I suggest you stop what ur doing and read the examples in the main.cpp carefully. Second of all, if you have 1.5y of experience how do you not know how to use case/break? Its needed for every button type and how do you not know how to hook?
 
  • Like
Reactions: NullCoder