Anti-Cheat client (follow wont attack and alch fix)
follow to not attack using cheat client
RationalBreeze is the creator for the follow part im not taking any credit for this part
In PlayerVsPlayer.java
find:
Code:
if(p2.rights == 2 && p2.owner == 0 && p2.coowner == 1 && p2.getLocation().getX() >= 2756 && p2.getLocation().getX() <= 2875 && p2.getLocation().getY() >= 5512 && p2.getLocation().getY() <= 5627 && p2.getLocation().getZ() == 0) {
p.getActionSender().sendMessage("You cant fight an Co Owner here!");
p.resetAttack();
return false;
}
under that add:
Code:
if (Location.wildernessLevel(p.getLocation()) <= 0) {
p.getActionSender().sendMessage("You cannot attack someone outside the wilderness, kthx");
p.resetAttack();
return false;
}
then to fix alch giving them all the money they would ever need just add this
goto MagicOnItem.java and find
p.getInventory().addItem(995, GameEngine.prices.getMinimumPrice(itemid));
in high alch and low alch
under that add
Code:
if(GameEngine.prices.getNormalPrice(itemid) >= 200000000) {
p.sm("Nice try bruh!");
p.getInventory().deleteItem(995, 2147000000);
return;
}
this will make it were if they try and alch something worth over 200m it will delete all money in their inventory.
please enjoy rep is appreciated as i said i would give credits to who released the follow fix later as i dont know their name :( but enjoy :)