DnAngel Newbie
Posts : 27 ZPoints : 43 Reputation : 0 Join date : 2011-10-03
| Subject: [SOLVED] Fix for the dupe exploit Mon 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.
| |
|
Z Owner
Posts : 36 ZPoints : 71 Reputation : 0 Join date : 2011-10-02 Age : 28 Location : Florida, USA
| Subject: Re: [SOLVED] Fix for the dupe exploit Mon Oct 03, 2011 6:22 pm | |
| Fixed, thank you very much for this. | |
|
DnAngel Newbie
Posts : 27 ZPoints : 43 Reputation : 0 Join date : 2011-10-03
| Subject: Re: [SOLVED] Fix for the dupe exploit Mon Oct 03, 2011 6:44 pm | |
| | |
|
Sponsored content
| Subject: Re: [SOLVED] Fix for the dupe exploit | |
| |
|