Current Tutorial Version: [v4]
Classes Modified: Client.java
Difficulty: 0,01/10
Required Knowledge: Reading, Copying, pasting and searching.
Things you may know after reading this: Understand how SystemtimeMillis Works
Ok to begin with i will explain what we are going to do.
We will open the client class (client.java) and we are going to remove the code that makes the delta dupe possible.
there are other ways of fixing this but this is the best and easiest way i know of.
ok lets begin.
press CTRL + F
and search for
Code:
if (other.inTrade) {
now you should be able to see this:
Code:
public void tradeReq(int id) {
if (!server.trading) {
sM("Trading has been temporarily disabled");
return;
}
client other = (client) handler.players[id];
if (validClient(trade_reqId)) {
if (other.inTrade) {
sM("Other player is busy at the moment.");
trade_reqId = 0;
return;
}
}
Look at the Other player is busy at the moment. and under that you see:
remove that.
now it Should look like this:
Code:
public void tradeReq(int id) {
if (!server.trading) {
sM("Trading has been temporarily disabled");
return;
}
client other = (client) handler.players[id];
if (validClient(trade_reqId)) {
if (other.inTrade) {
sM("Other player is busy at the moment.");
return;
}
}
*ATTENTION* IF YOU HAVE DONE ANY OTHER ANTI-DUPE TUTORIAL
MAKE SURE YOU HAVE THE FOLLOWING CODE IN YOUR CLIENT.JAVA:
Code:
if(actionButtonId == 26018) {
if (inTrade && (System.currentTimeMillis() - lastButton > 1000)) {
lastButton = System.currentTimeMillis();
getClient(trade_reqId).sM("Other player has declined the trade.");
declineTrade();
}
}
if you do not have this you will have to add it under:
Code:
int interfaceID = inStream.readSignedByte();
If you do not do that this anti-dupe will not effect the old way of duping!
Tutorial Changes:
-------
v4: Shortened the turoial dramaticly and fixed it.
v3: Strengthened declineTrade(); and closeInterface(); on declination in trade!(OLD VERSION)
v2: Added systemtimemilli to help preventing duping (1 milli delay), Added yell to the anti dupe (purpose: Scaring the dupers!) (OLD VERSION)
v1: Removed the 1000 milli sec time delay to prevent Duping (OLD VERSION)
Credtis:
Rain of Pain - 100% (Majin Buu AKA Rain of Pain)
Thanks for reading!
We all want to get rid of the item dupers!
Confirmations:
None yet.