Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pet bug, instead of the 2 pets u chose, you only get one, fix immediatley! #146

Open
FishyBalls opened this issue Feb 11, 2024 · 8 comments

Comments

@FishyBalls
Copy link

As soon as you use the unlock pets, that script contains a bug that will need to be fixed because when you are battling you can't win because it is 2 against three. RXZYX please make this script work properley, Thanks, fishy

@FishyBalls
Copy link
Author

I think that you have made us the pet instead of us being the normal player, this is just a guess but i think i'm right so please change this.

@FishyBalls
Copy link
Author

image

@FishyBalls FishyBalls changed the title Pet bug instead of the 2 pets u chose you only get one fix immediatley Pet bug, instead of the 2 pets u chose, you only get one, fix immediatley! Feb 11, 2024
@Gisthepro123
Copy link

Yes i've had the same issue after using the script

@RandomWyrm
Copy link

I've done some testing, the first time you unlock pets, only one can be used. Use the script again and you can use 2 pets, but only if one is in the new style and one is in the old (smooth and pixelated). After that, if you use the script again, only one, use it again, one pixelated one smooth.

@RandomWyrm
Copy link

Wait, how do you use a mythical epic

@superdave98008
Copy link

superdave98008 commented Apr 23, 2024

Here is what I observed, in deminifying the code and poking around. Note that we are fully paid subscribers already.

  1. Setting each pet in the JSON array to have a distinct 'caughtTime' partly helps.
  2. Even after the above, if you try to unlock too many pets, it will start to glitch on you in various ways. With a binary search I determined the magic number, at least for my kid's account, to be about 155 pets unlocked for it to behave normally (two pets accompany you into battle).

Here is a code snippet of the change to unlockPets() that worked for me. Not shown is a change made to the unlockPets method signature to add an nPets param, and some prompt code at the entry point near the bottom where unlockPets is called from.

               now=new Date().getTime();
                pet_maker_json = JSON.parse(_0x3ff738[_0x515d0c(-0x106, -0x133, -0x17c, -0x1b0, -0x11b)](_0x5757ee));

               
                if (nPets>0) {
                    // alert('Unlocking ' + nPets + ' pets.  You will need to log in again.');
                    pet_maker_json=pet_maker_json.slice(0,nPets);
                }
                else if (nPets==0) {
                    // alert('Clearing all pets.  You will need to log in again.');
                    pet_maker_json=[];
                }
                // else {
                //     alert('Unlocking all pets.  You will need to log in again.');
                // }

                for (let i = 0; i < pet_maker_json.length; i++) {
                 // set each pet to have a distinct catchDate
                  pet_maker_json[i]["catchDate"]=now++;
                }

                // alert(JSON.stringify(pet_maker_json));

                (pet_maker = JSON.stringify(pet_maker_json)),
                    (pet_maker2 = _0x3ff738[_0x515d0c(-0x184, -0x98, -0x168, -0xe8, -0xeb)](_0x5757ee, ![])),

@alex39n
Copy link

alex39n commented May 2, 2024

Can you give a more detail explanation on how to fix it

@hudsonb508
Copy link

I still only have one pet superdave how am I supposed to use your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants