Examples of MonsterRace


Examples of com.l2jfrozen.gameserver.model.entity.MonsterRace

    broadcast(_packet);
  }

  private void startRace()
  {
    MonsterRace race = MonsterRace.getInstance();
    if(_state == STARTING_RACE)
    {
      //state++;
      PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
      broadcast(SRace);
      SRace = null;
      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, 12125, 182487, -3559);
      broadcast(SRace2);
      SRace2 = null;
      _packet = new MonRaceInfo(_codes[1][0], _codes[1][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();

      ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(), 5000);
    }
    else
    {
      //state++;
      race.newRace();
      race.newSpeeds();
      _packet = new MonRaceInfo(_codes[0][0], _codes[0][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
    }
    race = null;
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.entity.MonsterRace

        },
        {
            -1, 0
        }
    };
    MonsterRace race = MonsterRace.getInstance();

    if(state == -1)
    {
      state++;
      race.newRace();
      race.newSpeeds();
      MonRaceInfo spk = new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds());
      activeChar.sendPacket(spk);
      activeChar.broadcastPacket(spk);
      spk = null;
    }
    else if(state == 0)
    {
      state++;

      SystemMessage sm = new SystemMessage(SystemMessageId.MONSRACE_RACE_START);
      sm.addNumber(0);
      activeChar.sendPacket(sm);
      sm = null;

      PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
      activeChar.sendPacket(SRace);
      activeChar.broadcastPacket(SRace);
      SRace = null;

      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, 12125, 182487, -3559);
      activeChar.sendPacket(SRace2);
      activeChar.broadcastPacket(SRace2);
      SRace2 = null;

      MonRaceInfo spk = new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds());
      activeChar.sendPacket(spk);
      activeChar.broadcastPacket(spk);
      spk = null;

      ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(codes, activeChar), 5000);
View Full Code Here

Examples of l2p.gameserver.model.entity.MonsterRace

     * -1 0 to end the race
     *
     * 8003 to 8027
     */
    int[][] codes = {{-1, 0}, {0, 15322}, {13765, -1}, {-1, 0}};
    MonsterRace race = MonsterRace.getInstance();
    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

Examples of l2p.gameserver.model.entity.MonsterRace

    broadcast(packet);
  }

  private void startRace()
  {
    MonsterRace race = MonsterRace.getInstance();
    if(state == STARTING_RACE)
    {
      //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

Examples of lineage2.gameserver.model.entity.MonsterRace

      {
        -1,
        0
      }
    };
    MonsterRace race = MonsterRace.getInstance();
    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(PlaySound.Type.SOUND, "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().schedule(new RunRace(codes, activeChar), 5000);
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.MonsterRace

  /**
   * Method startRace.
   */
  private void startRace()
  {
    MonsterRace race = MonsterRace.getInstance();
    if (state == STARTING_RACE)
    {
      PlaySound SRace = new PlaySound("S_Race");
      broadcast(SRace);
      PlaySound SRace2 = new PlaySound(PlaySound.Type.SOUND, "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().schedule(new RunRace(), 5000);
    }
    else
    {
      race.newRace();
      race.newSpeeds();
      packet = new MonRaceInfo(codes[0][0], codes[0][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
    }
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.MonsterRace

         *
         * 8003 to 8027
         */

        int[][] codes = { {-1, 0}, {0, 15322}, {13765, -1}, {-1, 0}};
        MonsterRace race = MonsterRace.getInstance();

        if (state == -1)
        {
            state++;
            race.newRace();
            race.newSpeeds();
            MonRaceInfo spk = new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(),
                                              race.getSpeeds());
            activeChar.sendPacket(spk);
            activeChar.broadcastPacket(spk);
        }
        else if (state == 0)
        {
            state++;
            SystemMessage sm = new SystemMessage(SystemMessageId.MONSRACE_RACE_START);
            sm.addNumber(0);
            activeChar.sendPacket(sm);
            PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
            activeChar.sendPacket(SRace);
            activeChar.broadcastPacket(SRace);
            PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, 12125, 182487,
                                             -3559);
            activeChar.sendPacket(SRace2);
            activeChar.broadcastPacket(SRace2);
            MonRaceInfo spk = new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(),
                                              race.getSpeeds());
            activeChar.sendPacket(spk);
            activeChar.broadcastPacket(spk);

            ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(codes, activeChar), 5000);
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.MonsterRace

        broadcast(_packet);
    }

    private void startRace()
    {
        MonsterRace race = MonsterRace.getInstance();
        if (_state == STARTING_RACE)
        {
            //state++;
            PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
            broadcast(SRace);
            PlaySound SRace2 = new PlaySound(0,"ItemSound2.race_start",1,121209259,12125,182487,-3559);
            broadcast(SRace2);
            _packet = new MonRaceInfo(_codes[1][0], _codes[1][1], race.getMonsters(), race.getSpeeds());
            sendMonsterInfo();

            ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(), 5000);
        }
        else
        {
            //state++;
            race.newRace();
            race.newSpeeds();
            _packet = new MonRaceInfo(_codes[0][0], _codes[0][1], race.getMonsters(), race.getSpeeds());
            sendMonsterInfo();
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.