if(state == -1)
{
state++;
race.newRace();
race.newSpeeds();
activeChar.broadcastPacket(new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds()));
}
else if(state == 0)
{
state++;
activeChar.sendPacket(Msg.THEYRE_OFF);
activeChar.broadcastPacket(new PlaySound("S_Race"));
activeChar.broadcastPacket(new PlaySound(0, "ItemSound2.race_start", 1, 121209259, new Location(12125, 182487, -3559)));
activeChar.broadcastPacket(new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds()));
ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(codes, activeChar), 5000);
}
}