Jump to content

How to add these methods into a patcher?


Go to solution Solved by Pro,

9 posts in this topic

Recommended Posts

Posted (edited)

Thought I would make my Trivia Crack tweak into a patcher. Everything was going well, compiled with no errors and all that, but the first two switches in the patcher have no effect, whereas the third one works perfectly fine. That said, how do I add these methods into my patcher?

 

Class: PRQuestionViewController

Method: -(void)setupQuestionTimer

 

In my original tweak, it was as simple as

%hook PRQuestionViewController
-(void)setupQuestionTimer {
 
}
 
%end

Class: PRAnswersGroupView

Method: -(void)setWrongAnswerSelector:(SEL)

*SEL just means Selector for those that don't know.*

 

In my original tweak

%hook PRAnswersGroupView
-(void)setWrongAnswerSelector:(SEL)fp8 {
%orig(NULL);
 
}
 
%end
Updated by Pro
Posted
-(void)setWrongAnswerSelector:(SEL)fp8{
if(GetPrefBool(@"kWhateva"))



and so on!

Already did that, that's why I posted the topic xD 

Posted (edited)

 

@Pro ^

do it like this:

-(void)setWrongAnserSelector:(SEL)argument{
if(GetPrefBool(@"kWateva")){

}
return %orig;
}

Don't think changing fp8 to argument will change anything, but I'll try :p

As for nulling it like that, we'll see

Updated by Pro
Posted

Try this :dunno:

%hook PRQuestionViewController
-(void)setupQuestionTimer {
  if(GetPrefBool(@"key1")) {
return;
}
return %orig;
}
%end

And ^_^

 

Class: PRAnswersGroupView
Method: -(void)setWrongAnswerSelector:(SEL)arg1 {
 if(GetPrefBool(@"key2")) {
return;
arg1 =;
%orig(arg1);
}
return %orig;
}
%end
/* if you don't want to null the void here just remove return; *\
^_^
  • Solution
Posted

Try this :dunno:

%hook PRQuestionViewController
-(void)setupQuestionTimer {
  if(GetPrefBool(@"key1")) {
return;
}
return %orig;
}
%end
And ^_^

 

Class: PRAnswersGroupView
Method: -(void)setWrongAnswerSelector:(SEL)arg1 {
 if(GetPrefBool(@"key2")) {
return;
arg1 =;
%orig(arg1);
}
return %orig;
}
%end
/* if you don't want to null the void here just remove return; *\
^_^

 

Works, thanks! ^_^ Removing the arg1 =; line made the second one work :)

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

    • Margonem Adventures v1.16.0 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
      • 13 replies
    • Margonem Adventures v1.16.0 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
      • 8 replies
    • Final Outpost v2.3.6 [+3 Jailed Cheats]
      Modded/Hacked App: Final Outpost By Exabyte Games Ltd
      Bundle ID: com.samclothier.DEADfense
      iTunes Store Link: https://apps.apple.com/us/app/final-outpost/id1425444801?uo=4



      🤩 Hack Features

      -  Always Enough Resources
      -  Always Attain Skill
      -  No Food Consume
      • 5 replies
    • Final Outpost v2.3.6 [+3 Cheats]
      Modded/Hacked App: Final Outpost By Exabyte Games Ltd
      Bundle ID: com.samclothier.DEADfense
      iTunes Store Link: https://apps.apple.com/us/app/final-outpost/id1425444801?uo=4

       

      🤩 Hack Features

      -  Always Enough Resources
      -  Always Attain Skill
      -  No Food Consume
      • 6 replies
    • Lands of Jail v1.0.10 [+1 Jailed Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)

      • 6 replies
    • Lands of Jail v1.0.10 [+1 Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)
       
      • 11 replies
    • Viking Island: Defense game v0.21 [+2 Cheats]
      Modded/Hacked App: Viking Island: Defense game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: viking.island.conquest.command
      App Store Link: https://apps.apple.com/us/app/viking-island-defense-game/id6740436892?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 4 replies
    • Viking Island: Defense game v0.21 [+2 Jailed Cheats]
      Modded/Hacked App: Viking Island: Defense game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: viking.island.conquest.command
      App Store Link: https://apps.apple.com/us/app/viking-island-defense-game/id6740436892?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency 
      • 0 replies
    • King of Crabs - Invasion v1.0.0 +2 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases
      • 0 replies
    • King of Crabs - Invasion v1.0.0 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases

      VIP
      - Auto Win -> Enable pre-game then disable in-game to trigger.
      • 1 reply
    • Plants vs. Zombies v3.9.0 Jailed Cheats +5
      Modded/Hacked App: Plants vs. Zombies™ By EA Swiss Sarl
      Bundle ID: com.ea.pvzfree.bv
      iTunes Store Link: https://apps.apple.com/us/app/plants-vs-zombies/id893677096?uo=4


      Hack Features

      - Infinite Sun
      - Infinite Fertilizer, BugSpray, and Chocolate
      - Infinite Coins
      - Infinite Plants Life
      - No Cooldown

      Author: https://iosgods.com/profile/37846-asianqueen/

      Complete tutorial before using any hacked features or you will stuck forever



      iOS Hack Download IPA Link https://iosgods.com/topic/191088-plants-vs-zombies%E2%84%A2-v381-jailed-cheats-5/
      • 20 replies
    • Dragons: Rise of Berk v1.96.7 +5 Cheats
      Modded/Hacked App: Dragons: Rise of Berk By Jam City, Inc.
      Bundle ID: com.ludia.dragons
      iTunes Store Link: https://apps.apple.com/us/app/dragons-rise-of-berk/id667461862?uo=4


      Hack Features:
      - Free Shopping (shows original cost but able to purchase regardless)
      - Free Skipping
      - Free Odin's Market Shopping
      - Odin's Market Packs Never Reduce
      - Currency Hack [Spend to Gain - reverts to zero on next launch]
      - Enable Rider's Club


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/79228-dragons-rise-of-berk-v1794-4-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/139612-dragons-rise-of-berk-v1794-6-cheats/
      • 676 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