PestControl.java
Code:
Code:
public void setInterface() {
for (int j = 0; j < PlayerHandler.players.length; j++) {
if (PlayerHandler.players[j] != null) {
if (PlayerHandler.players[j].inPcBoat()) {
Client c = (Client) PlayerHandler.players[j];
c.getPA().sendFrame126("Next Departure: "+waitTimer+"", 21120);
c.getPA().sendFrame126("Players Ready: "+playersInBoat()+"", 21121);
c.getPA().sendFrame126("(Need 3 to 25 players)", 21122);
c.getPA().sendFrame126("Points: "+c.pcPoints+"", 21123);
}
if (PlayerHandler.players[j].inPcGame()) {
Client c = (Client) PlayerHandler.players[j];
for (j = 0; j < NPCHandler.npcs.length; j++) {
if (NPCHandler.npcs[j] != null) {
if (NPCHandler.npcs[j].npcType == 3777)
c.getPA().sendFrame126("" + NPCHandler.npcs[j].HP + "", 21111);
if (NPCHandler.npcs[j].npcType == 3778)
c.getPA().sendFrame126("" + NPCHandler.npcs[j].HP + "", 21112);
if (NPCHandler.npcs[j].npcType == 3779)
c.getPA().sendFrame126("" + NPCHandler.npcs[j].HP + "", 21113);
if (NPCHandler.npcs[j].npcType == 3780)
c.getPA().sendFrame126("" + NPCHandler.npcs[j].HP + "", 21114);
}
}
c.getPA().sendFrame126("0", 21115);
c.getPA().sendFrame126("0", 21116);
c.getPA().sendFrame126("Time remaining: "+gameTimer+"", 21117);
}
}
}
}
In the process() add setInterface(); at the top...
Now got to Client.java find getPA().showOption(3, 0, "Attack", 1);
under it add
Code:
} else if(inPcBoat()) {
getPA().walkableInterface(21119);
} else if(inPcGame()) {
getPA().walkableInterface(21100);
}
I would suggest making a 1 secound timer as process runs in 600 clocks!
Thank you sanity for pointing out why the Interfaces was flashing