bool AtkToggle;
long(*old_get_AttackPower)(void*instance);
long get_AttackPower(void *instance) {
if(instance != NULL && AtkToggle) {
return 9999999l;
}
return old_get_AttackPower(instance);
}
HOOK_LIB("libil2cpp.so", "0x25520C0", get_AttackPower, old_get_AttackPower);
OBFUSCATE("1_Toggle_ATK"),
case1:
AtkToggle = boolean;
break;
"I wrote the code, and it worked perfectly for dealing damage to monsters, but I also take the same damage that I deal. How do I make it so that only the monsters take the damage from my modifier?"
"I found these IDs."
long(*old_get_AttackPower)(void*instance);
long get_AttackPower(void *instance) {
if(instance != NULL && AtkToggle) {
return 9999999l;
}
return old_get_AttackPower(instance);
}
HOOK_LIB("libil2cpp.so", "0x25520C0", get_AttackPower, old_get_AttackPower);
OBFUSCATE("1_Toggle_ATK"),
case1:
AtkToggle = boolean;
break;
"I wrote the code, and it worked perfectly for dealing damage to monsters, but I also take the same damage that I deal. How do I make it so that only the monsters take the damage from my modifier?"
"I found these IDs."
Attachments
-
8.2 KB Views: 59
-
10 KB Views: 49
-
10.1 KB Views: 54