Please, tell me whats wrong with this code.. Because when i attack my team mate, it actually works.. But People are having problems pvping because of this code, and i delete it and every thing works fine.. And i got full Castle wars mapdata for 525 rs2hd.. So please help me with this code!
Code:
//castle wars start
if (p.getEquipment().get(1).getDefinition().getId() == 4514 && p2.getEquipment().get(1).getDefinition().getId() == 4514) {
p.sm("You cannot Attack your Team Mate.");
p.resetAttack();
p.resetPvP = true;
p.faceId(p2);
break;
}
if (p.getEquipment().get(1).getDefinition().getId() == 4516 && p2.getEquipment().get(1).getDefinition().getId() == 4516) {
p.sm("You cannot Attack your Team Mate.");
p.resetAttack();
p.resetPvP = true;
p.faceId(p2);
break;
}
if (p.getEquipment().get(0).getDefinition().getId() == 4513 && p2.getEquipment().get(0).getDefinition().getId() == 4513) {
p.sm("You cannot Attack your Team Mate.");
p.resetAttack();
p.resetPvP = true;
p.faceId(p2);
break;
}
if (p.getEquipment().get(0).getDefinition().getId() == 4515 && p2.getEquipment().get(0).getDefinition().getId() == 4515) {
p.sm("You cannot Attack your Team Mate.");
p.resetAttack();
p.resetPvP = true;
p.faceId(p2);
break;
}
//end of Castle Wars capes + hoods
Was thinking putting in saradomin code and zammy on there spots before the codes but errors
So please help
REP REP REP!
inCastleWars1 = Saradomin team
Code:
if((inCastleWars1()) {
<-- inCastleWars2 = Zammy side..
Code:
if((inCastleWars2()) {
I rep if you help me fix it