Alright, i was writing a pest control interface for Project Insanity, i did some research to get the numbers i used, but it doesn't seem to be working.. This is what i've done.
*** This is for when you enter the boat ***
Code:
void boatInterface(int players) {
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
if (Server.playerHandler.players[j].inPcBoat()) {
Client c = (Client) Server.playerHandler.players[j];
c.getPA().sendFrame126("Pest Control", 21006);
c.getPA().sendFrame126("Next departure: "+waitTimer, 21007);
c.getPA().sendFrame126("Players ready: "+players, 21008);
c.getPA().sendFrame126("(Need atleast 3 players.)",21009);
c.getPA().sendFrame126("pest Points: "+ c.pcPoints, 21010);
}
}
}
}
and i have
Code:
boatInterface(playersInBoat());
placed in the process() function in pest-control.java, although it's not doing anything, and i'm confused as to why.
I'm using the original PI client/source released by insanity.