Examples of unsetVar()


Examples of l2p.gameserver.model.L2Player.unsetVar()

    if(var == null || var.equals(""))
    {
      return;
    }
    player.teleToLocation(new Location(var), 0);
    player.unsetVar("DCBackCoords");
  }

  public void enterDC(String[] param)
  {
    if(param.length < 1)
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

            {
              String[] re = target.getVar("jailedFrom").split(";");
              target.teleToLocation(Integer.parseInt(re[0]), Integer.parseInt(re[1]), Integer.parseInt(re[2]));
              target.setReflection(re.length > 3 ? Integer.parseInt(re[3]) : 0);
              target._unjailTask.cancel(true);
              target.unsetVar("jailedFrom");
              target.unsetVar("jailed");
              activeChar.sendMessage("You unjailed " + player + ".");
            }
            else
            {
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

              String[] re = target.getVar("jailedFrom").split(";");
              target.teleToLocation(Integer.parseInt(re[0]), Integer.parseInt(re[1]), Integer.parseInt(re[2]));
              target.setReflection(re.length > 3 ? Integer.parseInt(re[3]) : 0);
              target._unjailTask.cancel(true);
              target.unsetVar("jailedFrom");
              target.unsetVar("jailed");
              activeChar.sendMessage("You unjailed " + player + ".");
            }
            else
            {
              activeChar.sendMessage("Can't find char " + player + ".");
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

    if(activeChar.getTarget() == null || !activeChar.getTarget().isPlayer())
    {
      return false;
    }
    L2Player targ = (L2Player) activeChar.getTarget();
    targ.unsetVar("tradeBan");
    if(Config.MAT_ANNOUNCE_FOR_ALL_WORLD)
    {
      Announcements.getInstance().announceToAll(activeChar + " разблокировал торговлю персонажу " + targ + ".");
    }
    else
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

      for(OneScheme oneScheme : player.schemes)
      {
        if(oneScheme.getName().equals(name))
        {
          player.schemes.remove(oneScheme);
          player.unsetVar("Buf_" + name);
          break;
        }
      }
      Community.getInstance().show(objectId, showBuffer(objectId, null));
    }
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

    {
      return;
    }
    if(param[0].equalsIgnoreCase("FFFFFF"))
    {
      player.unsetVar("titlecolor");
      player.setTitleColor(Integer.decode("0xFFFFFF"));
      player.broadcastUserInfo(true);
      return;
    }
    char c[];
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

    else if(command.startsWith("_bbsteleport_del"))
    {
      StringTokenizer st = new StringTokenizer(command, " ");
      st.nextToken();
      String name = st.nextToken();
      player.unsetVar("bbsteleport_" + name);
      player.getTeleportLocations().remove(name);
      Community.getInstance().show(objectId, mGeneratePage.addToTemplate(showTeleport(objectId, false, null)));
    }
  }
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

    {
      if(ValakasManager.isEnableEnterToLair())
      {
        ValakasManager.setValakasSpawnTask();
        player.teleToLocation(TELEPORT_POSITION2);
        player.unsetVar("ValakasEnter");
      }
      else
      {
        show("<html><body>Heart of Volcano:<br>Valakas is already awake!<br>You may not enter the Lair of Valakas.</body></html>", player, npc);
      }
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

    {
      packets.add(new Die(activeChar));
    }
    sendPackets(packets);
    packets.clear();
    activeChar.unsetVar("offline");
    // на всякий случай
    activeChar.sendActionFailed();
    if(first && activeChar.isGM() && Config.SAVE_GM_EFFECTS && activeChar.getPlayerAccess().CanUseGMCommand)
    {
      //silence
View Full Code Here

Examples of l2p.gameserver.model.L2Player.unsetVar()

        else
        {
          player.setReflection(0);
        }
        st.takeItems(SacredSwordofEinhasad, -1);
        player.unsetVar("backCoords");
        return "32587-00.htm";
      }
    }
    if(npcId == Shunaiman)
    {
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.