Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.unsetVar()


      for (Map.Entry<Integer, String> entry : varMap.entrySet())
      {
        Player player = GameObjectsStorage.getPlayer(entry.getKey());
        if ((player != null) && player.isOnline())
        {
          player.unsetVar(entry.getValue());
        }
        else
        {
          mysql.set("DELETE FROM `character_variables` WHERE `obj_id`=? AND `type`='user-var' AND `name`=? LIMIT 1", entry.getKey(), entry.getValue());
        }
View Full Code Here


      st.setState(STARTED);
      st.playSound(SOUND_ACCEPT);
    }
    else if (event.equals("reward") && (cond == 1) && player.getVar("q726").equalsIgnoreCase("done"))
    {
      player.unsetVar("q726");
      st.giveItems(KnightsEpaulette, 200);
      st.playSound(SOUND_FINISH);
      st.exitCurrentQuest(true);
      return null;
    }
View Full Code Here

            {
              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.stopUnjailTask();
              target.unsetVar("jailedFrom");
              target.unsetVar("jailed");
              target.unblock();
              target.standUp();
              activeChar.sendMessage("You unjailed " + player + ".");
            }
View Full Code Here

              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.stopUnjailTask();
              target.unsetVar("jailedFrom");
              target.unsetVar("jailed");
              target.unblock();
              target.standUp();
              activeChar.sendMessage("You unjailed " + player + ".");
            }
            else
View Full Code Here

    if ((activeChar.getTarget() == null) || !activeChar.getTarget().isPlayer())
    {
      return false;
    }
    Player targ = (Player) activeChar.getTarget();
    targ.unsetVar("tradeBan");
    if (Config.BANCHAT_ANNOUNCE_FOR_ALL_WORLD)
    {
      Announcements.getInstance().announceToAll(activeChar + " has banned " + targ + "from chat.");
    }
    else
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.