Advertisement
Guest User

Untitled

a guest
May 21st, 2023
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. int (*old_get_Gems)(void *instance);
  2. int new_get_Gems(void *instance) {
  3. return 9999;
  4. }
  5.  
  6. void initMethods() {
  7.  
  8. Methods["InventoryData::get_Gems"] = (uintptr_t) Il2CppGetMethodOffset("Assembly-CSharp.dll", "StickWar3.Data", "InventoryData", "get_Gems");
  9.  
  10. }
  11.  
  12. void initHooks() {
  13.  
  14. DobbyHook((void *)Methods["InventoryData::get_Gems"], (void *)new_get_Gems, (void **)&old_get_Gems)
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement