Jump to content

How do I create a function that has other kind of types?


CosnotraLF

13 posts in this topic

Recommended Posts

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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);
}
Link to comment
Share on other sites

 

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)?
Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • State of Survival: Zombie War China - 曙光防线 v2.0.23 +2 Cheats
      Modded/Hacked App: 曙光防线 By Shanghai Zhimeng Technology Co., Ltd.
      Bundle ID: com.zmgames.ss.cn
      iTunes Store Link: https://apps.apple.com/cn/app/%E6%9B%99%E5%85%89%E9%98%B2%E7%BA%BF/id6478076019?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 0 replies
    • BrownDust2 - Adventure RPG v1.57.10 +2 Cheats
      Modded/Hacked App: Browndust2 By NEOWIZ Corporation
      Bundle ID: com.neowizgames.game.browndust2ios
      iTunes Store Link: https://apps.apple.com/us/app/browndust2/id6450099588?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 153 replies
    • Crystal Knights-32 Player Raid v1.12.0 +3 Cheats
      Modded/Hacked App: Crystal Knights-32 Player Raid By DAERI SOFT
      Bundle ID: com.daerigame.raidproject
      iTunes Store Link: https://apps.apple.com/us/app/crystal-knights-32-player-raid/id6451132804?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Loot Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 49 replies
    • Goddess Of Victory : Nikke Taiwan - 勝利女神:妮姬 v120.6 +2 Cheats
      Modded/Hacked App: 勝利女神:妮姬 By Gamamobi HK Co., Limited
      Bundle ID: com.gamamobi.nikke
      iTunes Store Link: https://apps.apple.com/tw/app/%E5%8B%9D%E5%88%A9%E5%A5%B3%E7%A5%9E-%E5%A6%AE%E5%A7%AC/id1630883882?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Ammo
      - Jailbreak Detection Removed


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 143 replies
    • [ Colopl Rune Story ] 白猫プロジェクト v5.1.0 +6 Cheats
      Modded/Hacked App: 白猫プロジェクト By COLOPL, Inc.
      Bundle ID: jp.colopl.wcat
      iTunes Store Link: https://itunes.apple.com/jp/app/白猫プロジェクト/id895687962


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - High Damage
      - God Mode
      - Unlimited SP


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      Hack Download Link:

      Hidden Content

      Download Hack








      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using iFile or Filza, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will then need to press on 'Installer' or 'Install' from the options on your screen.
      STEP 5: Let iFile / Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: Now open your iDevice settings and scroll down until you see the settings for this cheat and tap on it. If the hack is a Mod Menu, the cheat features can be toggled in-game.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - @ZahirSher


      Cheat Video/Screenshots:

       
      • 1,162 replies
    • Star Wars™: Galaxy of Heroes Cheats v0.34.0 +8 [ Multiply Attack & More ]
      Modded/Hacked App: Star Wars™: Galaxy of Heroes By Electronic Arts
      Bundle ID: com.ea.starwarscapital.bv
      iTunes Link: https://itunes.apple.com/us/app/star-wars-galaxy-of-heroes/id921022358?mt=8&uo=4&at=1010lce4


      Mod Requirements
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features
      - No Skill Cooldown time / Skill Always Available. Linked with enemy. Enable when it's your turn, disable when it's enemies turn. Timing is key.
      - One Hit Kill / Very High Damage. This is linked with you and the enemy, use with Skip Enemy Turn feature or enable disable when you attack via the In-Game Mod Menu! Do not kill the last enemy with OHK otherwise the game will crash. This feature is only for x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
      - Always Your Turn / Skip Enemy Turn. It's always your turn, you're always attacking.
      - Auto Win. You must use this with One Hit Kill in order for it to work. Kill 1 Enemy and you will auto win the battle.
      - Only 1 Encounter on All Missions.
      -- God Mode / Never Die thanks to the features above.

      This hack is now an In-Game Mod Menu. This means you can toggle switches on/off while in a fight. Since God Mode is linked, turn it off when you're attacking and turn it on when the enemy is attacking to do damage but not receive damage. Same goes for the other features.
      • 3,018 replies
    • SuperStar SMTOWN Cheats v3.15.2 +3
      Modded/Hacked App: SuperStar SMTOWN By Dalcomsoft Inc.
      Bundle ID: kr.co.dalcomsoft.superstar.i
      iTunes Store Link: https://apps.apple.com/us/app/superstar-smtown/id890937532?uo=4


      Hack Features:
      - Auto Dance
      - Never Lose Combo


      iOS Hack Download Link: https://iosgods.com/topic/161038-superstar-smtown-cheats-v378-2/
      • 104 replies
    • Cooking Wonder v1.53.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cooking Wonder By WonderLegend Games
      Bundle ID: com.wonderlegend.cookingwonder
      iTunes Store Link: https://apps.apple.com/us/app/cooking-wonder/id1638005392
       

      Hack Features:
      - Unlimited Currencies -> Use some.


      Jailbreak required hack(s): https://iosgods.com/topic/169330-cooking-wonder-v120-1-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 48 replies
    • Cooking Wonder ( All Versions ) +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cooking Wonder By WonderLegend Games
      Bundle ID: com.wonderlegend.cookingwonder
      iTunes Store Link: https://apps.apple.com/us/app/cooking-wonder/id1638005392
       

      Hack Features:
      - Unlimited Currencies -> Use some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 29 replies
    • Disney Emoji Blitz Game v62.0.2 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): https://iosgods.com/topic/168886-disney-emoji-blitz-game-all-versions-1-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 86 replies
    • Disney Emoji Blitz Game ( All Versions ) +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168888-disney-emoji-blitz-game-v5320-1-jailed-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 29 replies
    • Family Guy Freakin Mobile Game v2.62.4 +1++ Jailed Cheat [ Unlimited Coins ]
      Modded/Hacked App: Family Guy Freakin Mobile Game By Jam City, Inc.
      Bundle ID: com.sgn.familyguy
      iTunes Store Link: https://apps.apple.com/us/app/family-guy-freakin-mobile-game/id1139342866
       

      Hack Features:
      - Unlimited Coins -> Use some.
      -- Unlimited Uranium > Use the modded coins. 
      -- Unlimited Lives -> Use the modded coins.
      -- Unlimited Moves -> Use the modded coins.


      Jailbreak required hack(s): [Mod Menu Hack] Family Guy Freakin Mobile Game v2.47.8 +1++ Cheat [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 46 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