Jump to content

Multiple codes in one switch?


Go to solution Solved by castix,

14 posts in this topic

Recommended Posts

Posted

You want one switch to turn on multiple things?

 

Just add then under the same switch.

Posted

You want one switch to turn on multiple things?

 

Just add then under the same switch.

nono, look, i have like 2 codes ''setxp'' and ''rewardxp'' and i want to put that 2 in 1 switch button

Posted

nono, look, i have like 2 codes ''setxp'' and ''rewardxp'' and i want to put that 2 in 1 switch button

So use the samw switch name for both. That works fine.

Posted

So use the samw switch name for both. That works fine.

but how do i need to put it in do i need to add 2 strings to the switch button 1 string setxp and 1 string rewardxp?

Posted

but how do i need to put it in do i need to add 2 strings to the switch button 1 string setxp and 1 string rewardxp?

Add them seperately. Just that when you set the functions switch, make it the same for both functions.

Posted

Add them seperately. Just that when you set the functions switch, make it the same for both functions.

i dnt understand, my english is bad

Posted

i dnt understand, my english is bad

Paste the two functions you have here. I'll show you.

Posted

Paste the two functions you have here. I'll show you.

ok hang on

 

/ / this is the .plist
[22-9-2015, 18:06] Alae Whapp Nmmr: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>items</key>
  <array>
    <dict>
      <key>cell</key>
      <string>PSGroupCell</string>
      <key>footerText</key>
      <string>Unlimited xp after conpleted a mission.</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSSwitchCell</string>
      <key>default</key>
      <false/>
      <key>defaults</key>
      <string>com.MrHani3.metalstormcheats</string>
      <key>key</key>
      <string>kKey</string>
      <key>label</key>
      <string>Unlimited XP</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSGroupCell</string>
      <key>footerText</key>
      <string>This text will appear under your second switch.</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSSwitchCell</string>
      <key>default</key>
      <false/>
      <key>defaults</key>
      <string>com.MrHani3.metalstormcheats</string>
      <key>key</key>
      <string>kGems</string>
      <key>label</key>
      <string>Switch Text 2</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSGroupCell</string>
      <key>footerText</key>
      <string>This text will appear under your third switch.</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSSwitchCell</string>
      <key>default</key>
      <false/>
      <key>defaults</key>
      <string>com.MrHani3.metalstormcheats</string>
      <key>key</key>
      <string>kLives</string>
      <key>label</key>
      <string>Switch Text 3</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSGroupCell</string>
      <key>footerText</key>
      <string>This text will appear under your fourth switch.</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSSwitchCell</string>
      <key>default</key>
      <false/>
      <key>defaults</key>
      <string>com.MrHani3.metalstormcheats</string>
      <key>key</key>
      <string>kLives</string>
      <key>label</key>
      <string>Switch Text 4</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSGroupCell</string>
    </dict>
    <dict>
      <key>cell</key>
      <string>PSTextCell</string>
      <key>label</key>
      <string>Made by MrHani3.</string>
    </dict>
    <dict>
      <key>action</key>
      <string>link</string>
      <key>cell</key>
      <string>PSButtonCell</string>
      <key>icon</key>
      <string>[email protected]</string>
      <key>label</key>
      <string>Visit iOSGods.com</string>
    </dict>
  </array>
  <key>title</key>
  <string>metalstormcheats Cheats</string>
</dict>
</plist>
 
 
 
/ / and this is 2 codes from my tweak.xm
 

%hook Rewards
 
- (void)setXp:(int)arg1 {
   if(GetPrefBool(@"kSetXp")) {
   arg1 = 999999;
   }
   return %orig;
   }
 
- (int)credits {
   if(GetPrefBool(@"kCredits")) {
   return 999999;
   }
   return %orig;
   }
Posted

ok hang on

Like this:

 

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.xxx</string>

<key>key</key>

<string>k(code here)</string>

<key>label</key>

<string>(input the name of your switch here)</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.xxx</string>

<key>key</key>

<string>k(code here)</string>

<key>label</key>

<string>(input the name of your switch here)</string>

</dict>

<dict>

 

 

By this state, you'll get a 2 switch STICK TOGETHER WITHOUT SEPERATING.

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
×
  • 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