HackersHouse.callAnotherMethod({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
['destinationOffset'] = 0x1500,
['parameters'] ={ { "int", 1},
{ "float", 2},
{ "bool", true}},
['libIndex'] = 'auto'
},
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1500,
['destinationOffset'] = 0x2000,
['parameters'] ={ { "int", 1},
{ "float", 2},
{ "bool", true}},
['libIndex'] = 'auto'
}
})
Copy
HackersHouse.callAnotherMethod({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
['destinationOffset'] = 0x1500,
['parameters'] ={ { "int", 1}, { "float", 2}, { "bool", true}},
['libIndex'] = 'auto'
},
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1500,
['destinationOffset'] = 0x2000,
['parameters'] ={ { "int", 1}, { "float", 2}, { "bool", true}},
['libIndex'] = 'auto'
}
})
This method will redirect method call to another. The distination method will run whenever target method is called by game.
Target method will be overwritten and wont run. Only the distination method will run.
HackersHouse.callAnotherMethodOff({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
},
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1500,
}
})
Copy
HackersHouse.callAnotherMethodOff({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
},
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1500,
}
})
The commented code is an example of function you will find in dump.cs. And the code below that shows how to modify the working of that function.
// RVA: 0x1000 Offset: 0x1000
// public void Death(){}
// RVA: 0x2000 Offset: 0x2000
// public void SetCoins(int addcoin){}
HackersHouse.callAnotherMethod({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
['destinationOffset'] = 0x2000,
['parameters'] ={ { "int", 9999}},
['libIndex'] = 'auto'
}
})
HackersHouse.callAnotherMethodOff({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
}
})
Copy
-- RVA: 0x1000 Offset: 0x1000
-- public void Death(){}
-- RVA: 0x2000 Offset: 0x2000
-- public void SetCoins(int addcoin){}
HackersHouse.callAnotherMethod({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
['destinationOffset'] = 0x2000,
['parameters'] ={ { "int", 9999}},
['libIndex'] = 'auto'
}
})
HackersHouse.callAnotherMethodOff({
{ ['libName'] = "libil2cpp",
['targetOffset'] = 0x1000,
}
})