Package l2p.gameserver.model.entity.olympiad

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


        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

      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

        {
          _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

TOP

Related Classes of l2p.gameserver.model.entity.olympiad.OlympiadManager

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.