Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.MonRaceInfo


    L2RaceManagerInstance actor = getActor();
    if(actor == null)
    {
      return;
    }
    MonRaceInfo packet = actor.getPacket();
    if(packet == null)
    {
      return;
    }
    synchronized(thinking)
View Full Code Here


    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);
    }
  }
View Full Code Here

       * int[] speed = new int[8]; for(int i=0; i<8; i++) { for(int j=0; j<20;
       * j++) { //System.out.println("Adding "+speeds1[i][j] +" and "+
       * speeds2[i][j]); speed[i] += (speeds1[i][j]*1);// + (speeds2[i][j]*1); }
       * System.out.println("Total speed for "+(i+1)+" = "+speed[i]); }
       */
      activeChar.broadcastPacket(new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds()));
      ThreadPoolManager.getInstance().scheduleGeneral(new RunEnd(activeChar), 30000);
    }
View Full Code Here

      //state++;
      PlaySound SRace = new PlaySound("S_Race");
      broadcast(SRace);
      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, new Location(12125, 182487, -3559));
      broadcast(SRace2);
      packet = new MonRaceInfo(codes[1][0], codes[1][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
      ThreadPoolManager.getInstance().scheduleAi(new RunRace(), 5000, false);
    }
    else
    {
      //state++;
      race.newRace();
      race.newSpeeds();
      packet = new MonRaceInfo(codes[0][0], codes[0][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
    }
  }
View Full Code Here

  class RunRace implements Runnable
  {
    public void run()
    {
      packet = new MonRaceInfo(codes[2][0], codes[2][1], MonsterRace.getInstance().getMonsters(), MonsterRace.getInstance().getSpeeds());
      sendMonsterInfo();
      ThreadPoolManager.getInstance().scheduleGeneral(new RunEnd(), 30000);
    }
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.MonRaceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.