babydoll69
Platinian
do you know how to call a void with button ?
i tried many ways but it didnt work,
i want to spawn a monster if i press the spawnbutton
public void SpawnMonster()
this is my code :
i tried many ways but it didnt work,
i want to spawn a monster if i press the spawnbutton
public void SpawnMonster()
this is my code :
C++:
void *spawnmonsterbtn;
void (*_SpawnMonster)(void *instance);
void SpawnMonster(void* instance) {
if (instance != NULL) {
spawnmonsterbtn = instance;
}
_SpawnMonster(instance);
}
MSHookFunction((void*)getAbsoluteAddress("libil2cpp.so", 0x1A3E7F0), (void*)SpawnMonster, (void **)&_SpawnMonster);
OBFUSCATE("1_Button_Spawn Monster"),
case 1:
if (spawnmonsterbtn != NULL)
_SpawnMonster(spawnmonsterbtn);
Toast(env,obj,OBFUSCATE("Spawn Monster"),ToastLength::LENGTH_LONG);
break;