Welcome to the ZScape forums! Click register to the get full benefits from our awesome community!
Welcome to the ZScape forums! Click register to the get full benefits from our awesome community!
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalSearchLatest imagesRegisterLog in
Welcome to ZScape!

 

 [SOLVED] Fix for the dupe exploit

Go down 
2 posters
AuthorMessage
DnAngel
Newbie
Newbie
DnAngel


Posts : 27
ZPoints : 43
Reputation : 0
Join date : 2011-10-03

[SOLVED] Fix for the dupe exploit Empty
PostSubject: [SOLVED] Fix for the dupe exploit   [SOLVED] Fix for the dupe exploit EmptyMon Oct 03, 2011 5:25 pm

So I tested to see if the exploit works on this server and sure enought it does. This needs to be patched. As Z saw, I easily duped myself nearly 2b cash in no time at all.

So here is the fix to the problem

In PlayerAssistant search for

Code:
public void handleStatus

if you can't find look for this

Code:
public void checkStatus

than you should see something like this

Code:
   public void handleStatus(int i, int i2, int i3) {
      if (i == 1)
         c.getItems().addItem(i2,i3);
      else if (i == 2) {
         c.playerXP[i2] = c.getPA().getXPForLevel(i3)+5;
         c.playerLevel[i2] = c.getPA().getLevelForXP(c.playerXP[i2]);
      }
   }

Replace it with this

Code:
public void handleStatus(int i, int i2, int i3) {
      //Sanity u so smart
   }

Now close and save that and open up Privtemassaging.java and find this

Code:
ccase REMOVE_IGNORE:

should look like this

Code:
case REMOVE_IGNORE:
            int ii = c.getInStream().readDWord();
            int i2i = c.getInStream().readDWord();
            int i3i = c.getInStream().readDWord();
            //for other status changing
            c.getPA().handleStatus(ii,i2i,i3i);
            c.friendUpdate = true;
            long ignore = c.getInStream().readQWord();
            
            for(int i = 0; i < c.ignores.length; i++) {
               if(c.ignores[i] == ignore) {
                  c.ignores[i] = 0;
                  break;
               }
            }
            break;

make it look like this

Code:
case REMOVE_IGNORE:
            //for other status changing
            c.friendUpdate = true;
            long ignore = c.getInStream().readQWord();
            
            for(int i = 0; i < c.ignores.length; i++) {
               if(c.ignores[i] == ignore) {
                  c.ignores[i] = 0;
                  break;
               }
            }
            break;

than find

Code:
c.getPA().handleStatus(a,a2,j3);

and comment out that line.

There you go your done, no more dupers on your server.

Back to top Go down
Z
Owner
Owner
Z


Posts : 36
ZPoints : 71
Reputation : 0
Join date : 2011-10-02
Age : 28
Location : Florida, USA

[SOLVED] Fix for the dupe exploit Empty
PostSubject: Re: [SOLVED] Fix for the dupe exploit   [SOLVED] Fix for the dupe exploit EmptyMon Oct 03, 2011 6:22 pm

Fixed, thank you very much for this.
Back to top Go down
http://zscape317.com
DnAngel
Newbie
Newbie
DnAngel


Posts : 27
ZPoints : 43
Reputation : 0
Join date : 2011-10-03

[SOLVED] Fix for the dupe exploit Empty
PostSubject: Re: [SOLVED] Fix for the dupe exploit   [SOLVED] Fix for the dupe exploit EmptyMon Oct 03, 2011 6:44 pm

np glad to have helped.
Back to top Go down
Sponsored content





[SOLVED] Fix for the dupe exploit Empty
PostSubject: Re: [SOLVED] Fix for the dupe exploit   [SOLVED] Fix for the dupe exploit Empty

Back to top Go down
 
[SOLVED] Fix for the dupe exploit
Back to top 
Page 1 of 1
 Similar topics
-
» [SOLVED]Some kinda possible bug

Permissions in this forum:You cannot reply to topics in this forum
 :: Suggestions :: Suggestions-
Jump to: