Jump to content

13 posts in this topic

Recommended Posts

Posted

Help, I'm sorry, I'm a noobie to objective c, idk how to create a function that has other types that objective c doesn't have, like for example, here is an example of the function I'm trying to replace:

Inventory::addItem(int count, Tile t)
Whenever I call this function in my objc code, I get an error that says:

Undefined Type name "Tile"

 

If anyone of you know how to fix this, can you please help me!

Thanks :)

Posted

Help, I'm sorry, I'm a noobie to objective c, idk how to create a function that has other types that objective c doesn't have, like for example, here is an example of the function I'm trying to replace:

Inventory::addItem(int count, Tile t)
Whenever I call this function in my objc code, I get an error that says:Undefined Type name "Tile"If anyone of you know how to fix this, can you please help me!Thanks :)

I saw one before but let me look :) btw I delete the topic that u Wanted

Posted (edited)

I saw one before but let me look :) btw I delete the topic that u Wanted

Thanks dude!!, if you find out, I'll look at your reply tomorrow :)

Updated by CosnotraLF
Posted (edited)

Inventory::addItem(int count, Tile t)

MSHook(void, Inventory$addItem, void* obj, void* item)

{

// do your own code

}

I don't know if it correct :(

Updated by Kenny808
Posted (edited)

I don't think u need to specify it...

#define plistPath @"/var/mobile/com.iOSGods.minecraft.plist"
 
inline bool GetPrefBool(NSString *key)
{
    return [[[NSDictionary dictionaryWithContentsOfFile:plistPath] valueForKey:key] boolValue];
}
 
void (*Original_addItem)(void *self, int count);
 
void addItem(void self, int count)
{
     if(@"kUnlimitedItems")
       {
           return Original_addItem(self, 9999);
       }
     else
       {
           return Original_addItem(self, count);
       }
}
 
%ctor {
MSHookFunction((MSFindSymbol(NULL, "__symbol")),(void *)addItem, (void **)&Original_addItem);
}
Updated by HATER
Posted (edited)

 

Inventory::addItem(int count, Tile t)MSHook(void, Inventory$addItem, void* obj, void* item) {// do your own code}
I don't know if it correct :(
Thanks Kenny, I'll try it when I get off school :)

I don't think u need to specify it...

 

#define plistPath @"/var/mobile/com.iOSGods.minecraft.plist" inline bool GetPrefBool(NSString *key){    return [[[NSDictionary dictionaryWithContentsOfFile:plistPath] valueForKey:key] boolValue];} void (*Original_addItem)(void *self, int count); void addItem(void self, int count){     if(@"kUnlimitedItems")       {           return Original_addItem(self, 9999);       }     else       {           return Original_addItem(self, count);       }} %ctor {MSHookFunction((MSFindSymbol(NULL, "__symbol")),(void *)addItem, (void **)&Original_addItem);}
Thanks dude :), but what if u would want to pass a tile to that function, or what If the function was different, like addItem(void *self, Tile tile, int number)? Updated by CosnotraLF
Posted (edited)

@CosnotraLF 

hmmmm, u would urself have to implement tile function... or something else D: I'm not sure

mmm... ok thanks, well, if i figure out how to do this, ill let yall know

 

 

Inventory::addItem(int count, Tile t)
MSHook(void, Inventory$addItem, void* obj, void* item) 
{
// do your own code
}
I don't know if it correct :(

 

Thanks Kenny, it seems to be working :), just like hater's did

now if i find out another way to the pass real parameters, ill let yall know.

Updated by CosnotraLF
Posted (edited)

IM SORRY DiDA AND EVERYONE ELSE, I was making the tweak.xm with all the mods, and my electricity went off :(, that means I got to re- do everything from scratch. MAAN.

But give me 2 more days, I'll re-do everything

:(.

 

OOPS, wrong topic.

Updated by CosnotraLF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • ACECRAFT v1.3.73 [+5 Jailed Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4


       

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
      • 39 replies
    • ACECRAFT v1.3.73 [+5 Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4



      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
      • 18 replies
    • Legend of Survivors V1.2.12 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 60 replies
    • Legend of Survivors V1.2.12 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
      • 139 replies
    • Chef Treat v1.0.4 [ +1 Cheats ] Auto Win
      Modded/Hacked App: Chef Treat By HONGKONG 707 INTERACTIVE TECHNOLOGY CO., LIMITED
      Bundle ID: com.match.cheftreat.ios
      App Store Link: https://apps.apple.com/us/app/chef-treat/id6748721903?uo=4


      🤩 Hack Features

      - Auto Win


      • 2 replies
    • Chef Treat v1.0.4 [ +1 Jailed ] Auto Win
      Modded/Hacked App: Chef Treat By HONGKONG 707 INTERACTIVE TECHNOLOGY CO., LIMITED
      Bundle ID: com.match.cheftreat.ios
      App Store Link: https://apps.apple.com/ph/app/chef-treat/id6748721903?uo=4

       
      🤩 Hack Features

      - Auto Win


      • 3 replies
    • North War: Island Defense 3D v1.1.1 [ +6 Cheats ] Currency Max
      Modded/Hacked App: North War: Island Defense 3D By ONDI TECHNOLOGY JSC
      Bundle ID: com.bgg.island.battle
      App Store Link: https://apps.apple.com/ph/app/north-war-island-defense-3d/id6744058107?uo=4 

      🤩 Hack Features

      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Energy / Use & Earn
      • 12 replies
    • North War: Island Defense 3D v1.1.1 [ +6 Jailed ] Currency Max
      Modded/Hacked App: North War: Island Defense 3D By ONDI TECHNOLOGY JSC
      Bundle ID: com.bgg.island.battle
      App Store Link: https://apps.apple.com/ph/app/north-war-island-defense-3d/id6744058107?uo=4 

      🤩 Hack Features

      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Energy / Use & Earn
      • 6 replies
    • Zombie Blaster-Survive&Rescue v1.0.4 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Zombie Blaster-Survive&Rescue By Shenzhen Hijoy Information Technology Co., Ltd
      Bundle ID: com.sfromance.zombieblaster
      App Store Link: https://apps.apple.com/us/app/zombie-blaster-survive-rescue/id6749564079?uo=4

       
      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys +2

      - Shader

      - Battle Coins

      - ATK Weapon
      • 4 replies
    • Zombie Blaster-Survive&Rescue v1.0.4 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Zombie Blaster-Survive&Rescue By Shenzhen Hijoy Information Technology Co., Ltd
      Bundle ID: com.sfromance.zombieblaster
      App Store Link: https://apps.apple.com/us/app/zombie-blaster-survive-rescue/id6749564079?uo=4

       

      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys +2

      - Shader

      - Battle Coins

      - ATK Weapon
      • 2 replies
    • RiftCraft v2.44.30 [ +4 Jailed ] Auto Win
      Modded/Hacked App: RiftCraft By Sneaky Panda LTD
      Bundle ID: com.sneakypanda.riftcraft
      App Store Link: https://apps.apple.com/us/app/riftcraft/id6744392381?uo=4
       

      🤩 Hack Features

      - Auto Win [ PvP & Stage ]
      - ADS [ Rewards Free ]
      - Gems
      - Tokens
      • 6 replies
    • RiftCraft v2.44.30 [ +4 Cheats ] Auto Win
      Modded/Hacked App: RiftCraft By Sneaky Panda LTD
      Bundle ID: com.sneakypanda.riftcraft
      App Store Link: https://apps.apple.com/us/app/riftcraft/id6744392381?uo=4 

      🤩 Hack Features

      - Auto Win [ PvP & Stage ]
      - ADS [ Rewards Free ]
      - Gems
      - Tokens
      • 7 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines