Examples of unsetVar()


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

    {
      player.teleToLocation(new Location(43768, -48232, -800), 0);
      return;
    }
    player.teleToLocation(Location.parseLoc(var), 0);
    player.unsetVar("DCBackCoords");
  }
}
View Full Code Here

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

    else if(event.equalsIgnoreCase("enterinstance"))
    {
      if(!_npcWaves.isEmpty())
        _npcWaves.clear();
      player.unsetVar("wave");
      player.unsetVar("sel1");
      player.unsetVar("sel2");
      // maybe take some other quest items?
      st.setCond(5);
      enterInstance(st, 185);
View Full Code Here

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

    else if(event.equalsIgnoreCase("enterinstance"))
    {
      if(!_npcWaves.isEmpty())
        _npcWaves.clear();
      player.unsetVar("wave");
      player.unsetVar("sel1");
      player.unsetVar("sel2");
      // maybe take some other quest items?
      st.setCond(5);
      enterInstance(st, 185);
      return null;
View Full Code Here

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

    {
      if(!_npcWaves.isEmpty())
        _npcWaves.clear();
      player.unsetVar("wave");
      player.unsetVar("sel1");
      player.unsetVar("sel2");
      // maybe take some other quest items?
      st.setCond(5);
      enterInstance(st, 185);
      return null;
    }
View Full Code Here

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

    else if(event.equalsIgnoreCase("12"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave12(player);
      // boss is comming after we killed all the waves.
      player.unsetVar("wave");
      player.setVar("wave", 12, -1);
      return null;
    }

    else if(event.equalsIgnoreCase("13"))
View Full Code Here

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

    else if(event.equalsIgnoreCase("13"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.I_DEATH_WOUND_CHAMPION_OF_SHILEN_SHALL_END_YOUR_WORLD, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave13(player);
      // boss is comming after we killed all the waves.
      player.unsetVar("wave");
      player.setVar("wave", 13, -1);
      return null;
    }
    else if(event.equalsIgnoreCase("firstStandCompleted"))
    {
View Full Code Here

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

      return null;
    }

    else if(event.equalsIgnoreCase("secondStandCompleted"))
    {
      player.unsetVar("wave");
      st.setCond(12);
      return null;
    }
    else if(event.startsWith("giveme"))
    {
View Full Code Here

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

    }
    if (activeChar.isDead())
    {
      sendPacket(new Die(activeChar));
    }
    activeChar.unsetVar("offline");
    activeChar.sendActionFailed();
    if (first && activeChar.isGM() && Config.SAVE_GM_EFFECTS && activeChar.getPlayerAccess().CanUseGMCommand)
    {
      if (activeChar.getVarB("gm_silence"))
      {
View Full Code Here

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

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

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

    if (activeChar == null)
    {
      return;
    }
    int storedId = activeChar.getVarInt("NameColorItemOID");
    activeChar.unsetVar("NameColorItemOID");
    if (storedId != _itemObjectId)
    {
      return;
    }
    if ((_colorNum < 0) || (_colorNum >= COLORS.length))
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.