Package lineage2.gameserver.model.quest

Examples of lineage2.gameserver.model.quest.QuestState.unset()


    if ((saytimes == 9) || (cond == 0))
    {
      actor.deleteMe();
      st.set("seeksp", 0);
      st.set("zone", 1);
      st.unset("saytimes");
      target.sendPacket(new ExShowScreenMessage(NpcString.KING_HAS_RETURNED_TO_DEF_RETURN_TO_DEF_AND_START_AGAIN, 5500, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
      return false;
    }
    if ((lastSayTimer + SAY_RAFF) < System.currentTimeMillis())
    {
View Full Code Here


    if (zone == 1)
    {
      coords = SMP_COORDS;
      if ((actor.getDistance(target) < 100) || (currentState >= coords.length) || (currentState == 0))
      {
        st.unset("saytimes");
        if (currentState < coords.length)
        {
          actor.moveToLocation(coords[currentState][0], coords[currentState][1], coords[currentState][2], Rnd.get(0, 50), true);
          if (actor.getDestination() == null)
          {
View Full Code Here

      }
      else if (actor.getDistance(target) < 100)
      {
        st.set("zone", 3);
      }
      st.unset("saytimes");
    }
    else if (zone == 3)
    {
      coords = SMP_COORDS2;
      if ((actor.getDistance(target) < 100) || (currentState1 >= coords.length))
View Full Code Here

      coords = SMP_COORDS2;
      if ((actor.getDistance(target) < 100) || (currentState1 >= coords.length))
      {
        if (currentState1 < coords.length)
        {
          st.unset("saytimes");
          actor.moveToLocation(coords[currentState1][0], coords[currentState1][1], coords[currentState1][2], Rnd.get(0, 50), true);
          if (actor.getDestination() == null)
          {
            ++currentState1;
          }
View Full Code Here

        if (player.getVar("NewGuidReward") == null)
        {
          QuestState qs = player.getQuestState("_999_T1Tutorial");
          if (qs != null)
          {
            qs.unset("step");
          }
          player.setVar("NewGuidReward", "1", -1);
          boolean isMage = (player.getRace() != Race.orc) && player.getClassId().isMage();
          if (isMage)
          {
View Full Code Here

      activeChar.sendMessage("//quest id|name STATE 1|2|3 [target]");
      return false;
    }
    if (wordList[4].equalsIgnoreCase("~") || wordList[4].equalsIgnoreCase("#"))
    {
      qs.unset(wordList[3]);
    }
    else
    {
      qs.set(wordList[3], wordList[4]);
    }
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.