Examples of OlympiadManager


Examples of l2p.gameserver.model.entity.olympiad.OlympiadManager

      NpcHtmlMessage reply = new NpcHtmlMessage(player, this);
      switch(val)
      {
        case 1:
          StringBuffer replace = new StringBuffer("");
          OlympiadManager manager = Olympiad._manager;
          if(manager != null)
          {
            for(int i = 0; i < Olympiad.STADIUMS.length; i++)
            {
              OlympiadGame game = manager.getOlympiadInstance(i);
              if(game != null && game.getState() > 0)
              {
                if(game.getType() == CompType.TEAM || game.getType() == CompType.TEAM_RANDOM)
                {
                  replace.append("<br1>Arena " + (i + 1) + ":&nbsp;<a action=\"bypass -h npc_%objectId%_Olympiad 3_" + i + "\">Team vs Team:</a>");
                  replace.append("<br1>- " + game.getTeam1Title() + "<br1>- " + game.getTeam2Title());
                }
                else
                {
                  replace.append("<br1>Arena " + (i + 1) + ":&nbsp;<a action=\"bypass -h npc_%objectId%_Olympiad 3_" + i + "\">" + manager.getOlympiadInstance(i).getTitle() + "</a>");
                }
                replace.append("<img src=\"L2UI.SquareWhite\" width=270 height=1> <img src=\"L2UI.SquareBlank\" width=1 height=3>");
              }
            }
          }
View Full Code Here

Examples of l2p.gameserver.model.entity.olympiad.OlympiadManager

        activeChar.sendMessage("Old points: " + curPoints + ", new points: " + newPoints);
        break;
      }
      case admin_oly_start:
      {
        Olympiad._manager = new OlympiadManager();
        Olympiad._inCompPeriod = true;
        new Thread(Olympiad._manager).start();
        Announcements.getInstance().announceToAll(Msg.THE_OLYMPIAD_GAME_HAS_STARTED);
        Olympiad._log.info("Olympiad System: Olympiad Game Started");
        break;
View Full Code Here

Examples of l2p.gameserver.model.entity.olympiad.OlympiadManager

      return;
    }
    NpcHtmlMessage reply = new NpcHtmlMessage(0);
    StringBuffer msg = new StringBuffer("");
    msg.append("!Grand Olympiad Game View:<br>");
    OlympiadManager manager = Olympiad._manager;
    if(manager != null)
    {
      for(int i = 0; i < Olympiad.STADIUMS.length; i++)
      {
        OlympiadGame game = manager.getOlympiadInstance(i);
        if(game != null && game.getState() > 0)
        {
          if(game.getType() == CompType.TEAM || game.getType() == CompType.TEAM_RANDOM)
          {
            msg.append("<br1>Arena " + i + ":&nbsp;<a action=\"bypass -h oly_" + (i + 1) + "\">Team vs Team:</a>");
            msg.append("<br1>- " + game.getTeam1Title() + "<br1>- " + game.getTeam2Title());
          }
          else
          {
            msg.append("<br1>Arena " + i + ":&nbsp;<a action=\"bypass -h oly_" + (i + 1) + "\">" + manager.getOlympiadInstance(i).getTitle() + "</a>");
          }
          msg.append("<img src=\"L2UI.SquareWhite\" width=270 height=1> <img src=\"L2UI.SquareBlank\" width=1 height=3>");
        }
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.entity.olympiad.OlympiadManager

        {
          _log.warning(activeChar.getName() + " possible cheater: tried to switch arena usind not standart method!");
          return;
        }
        int arenaId = Integer.parseInt(bypass.substring(4));
        OlympiadManager manager = Olympiad._manager;
        if(manager == null || manager.getOlympiadInstance(arenaId) == null)
        {
          return;
        }
        activeChar.switchOlympiadObserverArena(arenaId);
      }
View Full Code Here

Examples of lineage2.gameserver.model.entity.olympiad.OlympiadManager

    private List<ArenaInfo> _arenaList = Collections.emptyList();

    public MatchList()
    {
      super(0);
      OlympiadManager manager = Olympiad._manager;
      if (manager != null)
      {
        _arenaList = new ArrayList<ArenaInfo>();
        for (int i = 0; i < Olympiad.STADIUMS.length; i++)
        {
          OlympiadGame game = manager.getOlympiadInstance(i);
          if (game != null && game.getState() > 0)
            _arenaList.add(new ArenaInfo(i, game.getState(), game.getType().ordinal(), game.getTeamName1(), game.getTeamName2()));
        }
      }
    }
View Full Code Here

Examples of lineage2.gameserver.model.entity.olympiad.OlympiadManager

        activeChar.sendMessage("Old points: " + curPoints + ", new points: " + newPoints);
        break;
      }
      case admin_oly_start:
      {
        Olympiad._manager = new OlympiadManager();
        Olympiad._inCompPeriod = true;
        new Thread(Olympiad._manager).start();
        Announcements.getInstance().announceToAll(Msg.THE_OLYMPIAD_GAME_HAS_STARTED);
        break;
      }
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.