Ok this tutorial was denied the first time so i am going to explain a few more things =)
Step 1:
We want to open client.java and search for
You should see:
What we want to do now is to "refresh" the declinetrade or should i call it strengthen it. when you add the code below it will send a shorter version of the decline trade to the other trader... so we don't need any timers at all and the Duping should be solved once again...there is other ways of doing this but it's slighty but harder and takes a little longer to get working on the server. We also need to remove the Systemtime Milli stuff.
Now lets begin changing the code
replace the above code you just found in client.java with the below code:
Credits to Maijn Buu
Step 1:
We want to open client.java and search for
- Code:
if (inTrade && (System.currentTimeMillis() - lastButton > 1000)) {
You should see:
- Code:
if (inTrade && (System.currentTimeMillis() - lastButton > 1000)) {
lastButton = System.currentTimeMillis();
getClient(trade_reqId).sM("Other player has declined the trade.");
declineTrade();
}
What we want to do now is to "refresh" the declinetrade or should i call it strengthen it. when you add the code below it will send a shorter version of the decline trade to the other trader... so we don't need any timers at all and the Duping should be solved once again...there is other ways of doing this but it's slighty but harder and takes a little longer to get working on the server. We also need to remove the Systemtime Milli stuff.
Now lets begin changing the code
replace the above code you just found in client.java with the below code:
- Code:
if (inTrade) {
getClient(trade_reqId).sM("Other player has declined the trade.");
declineTrade();
getClient(trade_reqId).declineTrade();
closeInterface();
getClient(trade_reqId).closeInterface();
}
Credits to Maijn Buu