1st one is easy,
client.java:
search for
somewhere under it you should see:
Code:
if ((playerHasItemAmount(563, 1) == true)
&& (playerHasItemAmount(556, 5) == true)
|| (HasAirStaff())) {
or something, it wont be exact.
and somewhere under it, add:
Code:
if (ItemHandler.itemExists(magicOnItemID, magicOnItemX, magicOnItemY)) {
now, search for
then under it add:
Code:
} else {
sM("The Item is either gone, or somebody has already picked it up.");
}
for the trade dupe:
in client.java search for case 130 and add this:
Code:
// Clicking stuff ingame trade dupe fix
int interfaceID = inStream.readSignedByte();
if (inTrade) {
try{
client other = getClient(trade_reqId);
if(tradeConfirmed2){
antidupe();
other.antidupe();
sM("[Dupe-System] Dupe detected!");
yell("["+playerName+"] has just tryed to dupe");
writeLog(playerName, "dupetraders");
other.sM("[Dupe-System] Dupe detected!");
}else{
other.declineTrade();
declineTrade();
sM("You have declined the trade.");
other.sM("The other player has declined the trade.");
}
}catch (Exception e) {
}
}
add these voids:
Code:
public void checkDupe() {
if (playerRights >= 1)
return;
if (playerHasItem(36, 5) || playerHasItem(995, 300000000)) {
appendToDupe(playerName);
}
if (playerCheckBank(36, 5) || playerCheckBank(995, 300000000)) {
appendToDupe(playerName);
}
}
public void antidupe() {
client other = getClient(trade_reqId);
if (validClient(trade_reqId)) {
closeInterface();
tradeResetNeeded = true;
}
}
NOTE: You might need this, im pretty sure you dont but oh well
Code:
public void declineTrade(boolean tellOther) {
closeInterface();
client other = getClient(trade_reqId);
if (tellOther && validClient(trade_reqId)) {
//other.sM("Other player has declined the trade.");
other.declineTrade(false);
}
for (GameItem item : offeredItems) {
if (item.amount < 1)
continue;
if (item.stackable) {
addItem(item.id, item.amount);
} else {
for (int i = 0; i < item.amount; i++) {
addItem(item.id, 1);
}
}
}
No.3: Explain the dupe?
Wildy dupe is like, so simple
its like you cant logout in the pestcontrol or fightpits, etc
in clickingMost.java under case 9154 (logout button) add:
Code:
if (c.isInWilderness) {
c.sM("You can't log out in the wilderness");
break;
}
dont know any other dupes, lol