Jump to content
  • 0

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


CosnotraLF

13 posts in this topic

Question

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

Recommended Posts

@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

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);
}

wvzfS3e.png


 


Image credits to @@Zimon, get yourself a nice signature here

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 :(
Wait wait wait, I think you are right Kenny, I think this is te way to call functions with the real parameters, but I got confused, let's say that instead of

Inventory::addIem(int count, Tile tile);
The code is...:

int (*orig__ZNInventory15AddItemEv)(int count, Tile tile);
int __ZNInventory15AddItemEv(int count, Tile tile){
      //code
}
How would that look, using MSHook() ?
Link to comment
Share on other sites

Archived

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

  • Our picks

    • [ Seven Deadly Sins KR ] 일곱 개의 대죄: GRAND CROSS Cheats v8.4.2 +5
      Modded/Hacked App: 일곱 개의 대죄: GRAND CROSS By Netmarble Corporation
      Bundle ID: com.netmarble.nanakr
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross/id1449552940?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill
      - Multiply Attack
      - Multiply Defense
      - Make Enemies God Mode for some quests


      iOS Hack Download Link: https://iosgods.com/topic/154899-seven-deadly-sins-kr-%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross-cheats-v750-5/
      • 47 replies
    • Auto Battles Online - Idle PvP v1.58.0 +3 Cheats
      Modded/Hacked App: Auto Battles Online - Idle PvP By Tier 9 Game Studios Ltd.
      Bundle ID: com.tier9.abo
      iTunes Store Link: https://apps.apple.com/us/app/auto-battles-online-idle-pvp/id1536993948?uo=4


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


      Hack Features:
      - 1 Hit Kill
      - Never Die

      * Linked with hero in PvP
      ** Only applies to main hero


      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.
      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 Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: 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 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:
      - @Zahir


      Cheat Video/Screenshots:

      N/A
      • 312 replies
    • Beam of Magic: Hack and Slash v1.18.0 +5 Cheats
      Modded/Hacked App: Beam of Magic: Hack and Slash By Zillion Whales Ltd
      Bundle ID: manastorm.spacehorse
      iTunes Store Link: https://apps.apple.com/us/app/beam-of-magic-hack-and-slash/id1530163491?uo=4


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


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Energy
      - Never Die
      - 1 Hit Kill


      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.
      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 Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: 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 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:
      - @Zahir


      Cheat Video/Screenshots:

      N/A
      • 257 replies
    • Heroes & Empires: Idle RPG v1.4.0.155 +3 Cheats
      Modded/Hacked App: Heroes & Empires: Idle RPG By Suga Pte. Ltd.
      Bundle ID: co.imba.empirespuzzles
      iTunes Store Link: https://apps.apple.com/us/app/heroes-empires-idle-rpg/id1572226324?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
      - Never Die
      - High Team Power (Can Battle Against Higher Enemy Team Power)


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


      Cheat Video/Screenshots:

      N/A
      • 147 replies
    • Mutiny: Pirate Survival RPG v0.33.4 +15 Cheats
      Modded/Hacked App: Mutiny: Pirate Survival RPG By HELIO LTD
      Bundle ID: com.heliogames.pirates
      iTunes Store Link: https://apps.apple.com/us/app/mutiny-pirate-survival-rpg/id1490838880?uo=4

       

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




      Hack Features:
      - Durability Hack
      - Inbox Hack
      - Stat Points Hack
      - Unlimited Coins [Change your name]
      - Fast Travel
      - No Consumable Cooldown
      - Split Hack [Split to Gain]
      - Craft Hack [No items needed for crafting]
      - Never Die
      - Custom Weapon Damage
      - Speed Multiplier
      - Enable VIP for some perks
      - No Requirements for Collection Buildings/Items for Finalize
      - Max Hunger Fill [One item = full hunger]
      - Max Thirst Fill [One item = full thirst]


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


      Cheat Video/Screenshots:

      N/A
      • 337 replies
    • Sword Master Story Cheats v4.2.389 +5
      Modded/Hacked App: Sword Master Story By SuperPlanet corp.
      Bundle ID: com.superplanet.swordmaster
      iTunes Store Link: https://apps.apple.com/us/app/sword-master-story/id1521447065?uo=4


      Hack Features:
      - Custom Player Stats
      - Weak Enemies
      - One Hit Kill
      - & More

      Press & Hold to read feature description


      iOS Hack Download Link: https://iosgods.com/topic/146819-sword-master-story-cheats-v42294-3/
      • 657 replies
    • The King of Fighters ALLSTAR Cheats v1.11.4 +5 [ Multiply Attack & More ]
      Modded/Hacked App: The King of Fighters ALLSTAR by Netmarble Corporation
      Bundle ID: com.netmarble.kofg
      iTunes Store Link: https://apps.apple.com/us/app/the-king-of-fighters-allstar/id1444835826?uo=4&at=1010lce4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Switch Always Active
      - Super Attack Always Active
      - No Skills CoolDown


      iOS Hack Download Link: https://iosgods.com/topic/112743-arm64-the-king-of-fighters-allstar-cheats-v169-5/
      • 1,222 replies
    • Magnum Quest Cheats v1.7.0 +3 [ Mutliply Attack & More ]
      Modded/Hacked App: Magnum Quest By HK TUYOO TECHNOLOGY LIMITED
      Bundle ID: com.Knight.MagnumQuest
      iTunes Store Link: https://apps.apple.com/us/app/magnum-quest/id1561915737?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/148491-magnum-quest-cheats-v115-3/
      • 322 replies
    • Berserker Online v1.0.24 +5 Cheats
      Modded/Hacked App: Berserker Online By DAERI SOFT
      Bundle ID: com.daerigame.berserk
      iTunes Store Link: https://apps.apple.com/us/app/berserker-online/id1598882638?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:
      - Disable Enemy Attacks
      - Never Die
      - Free Stat Level Up
      - Free Skill Level Up
      - Free Shopping (Freeze Currency)
      -- Free Weapon Enhancement
      -- Free Accessories Enhancement
      -- Free Character Local Buff
      -- Free Character Ability Change
      -- Free Character Purchase
      -- Free Pet Purchase
      -- Free Mine Level Up
      -- Free Costume


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


      Cheat Video/Screenshots:

      N/A
      • 166 replies
    • Angry Birds 2 Cheats v3.1 +1 [ Infinite Currencies ]
      Modded/Hacked App: Angry Birds 2 By Rovio Entertainment Oyj
      Bundle ID: com.rovio.baba
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-2/id880047117?uo=4


      Hack Features:
      - Infinite Currencies ( Spend some/ Get some )


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/70081-angry-birds-2-v2600-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/72039-angry-birds-2-cheats-v2600-1-infinite-currencies/
      • 1,763 replies
    • Kritika: The White Knights v4.22.3 +3 [God Mode & Set Damage Multiplier]
      Modded/Hacked App: Kritika: The White Knights By GAMEVIL Inc.
      Bundle ID: com.gamevil.kritikam.ios.apple.global.normal
      iTunes Store Link: https://itunes.apple.com/us/app/kritika-the-white-knights/id865958296?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 or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - God Mode Works Everywhere
      - Set Damage Multiplier - Do not set it too high, you will get kicked out if you do.
      - No Skill Cooldown 

      All features are unlinked!
      • 1,588 replies
    • [ViP-Exclusive] Kritika: The White Knights v4.22.3 +10 Cheats
      Hacked App: Kritika: The White Knights By GAMEVIL Inc.
      iTunes Link: https://itunes.apple.com/us/app/kritika-the-white-knights/id865958296?mt=8&uo=4&at=1010lce4
      Bundle ID: com.gamevil.kritikam.ios.apple.global.normal


      Hack Features
      - Infinite Potions (Increase instead of decrease)
      - Infinite Mana
      - No Potion Cooldown
      - Instant EX Gauge Fill
      - God Mode in Stage Mode
      - God Mode in Tower & Monster Wave
      - God Mode in Arena & PvP (Untested)
      - Timer Hack*
      - Mao Support Always Active
      - 1 Hit Kill in Monster -> One Hit Kill was Replaced with "Monster Level 1"
      - Enemy Doesn't Attack
      - Boss Doesn't Attack
      - Enemy Doesn't Move
      - Boss Doesn't Move
      - Monster Level 1 -> Easy kills
      • 2,801 replies
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
  • 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 possible user experience without cookies. You can accept or decline our non-essential cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines