Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendPacket()


      activeChar.getMenteeMentorList().remove(_charName, true, true);
      activeChar.sendPacket(new ExMentorList(activeChar));
      if ((menteeChar != null) && menteeChar.isOnline())
      {
        menteeChar.getMenteeMentorList().remove(activeChar.getName(), false, false);
        menteeChar.sendPacket(new ExMentorList(menteeChar));
      }
      Mentoring.cancelMentorBuffs(activeChar);
      Mentoring.cancelMenteeBuffs(menteeChar);
      Mentoring.setTimePenalty(activeChar.getObjectId(), System.currentTimeMillis() + (2 * 24 * 3600 * 1000L), -1);
    }
View Full Code Here


      initWave6(player);
      return null;
    }
    else if(event.equalsIgnoreCase("8"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave8(player);
      st.startQuestTimer("9", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("9"))
View Full Code Here

      st.startQuestTimer("9", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("9"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave9(player);
      st.startQuestTimer("10", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("10"))
View Full Code Here

      st.startQuestTimer("10", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("10"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave10(player);
      st.startQuestTimer("11", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("11"))
View Full Code Here

      st.startQuestTimer("11", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("11"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave11(player);
      st.startQuestTimer("12", 30000);
      return null;
    }
    else if(event.equalsIgnoreCase("12"))
View Full Code Here

      st.startQuestTimer("12", 30000);
      return null;
    }
    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;
View Full Code Here

      return null;
    }

    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;
View Full Code Here

      player.setVar("wave", 13, -1);
      return null;
    }
    else if(event.equalsIgnoreCase("firstStandCompleted"))
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_HAVE_STOPPED_THEIR_ATTACK_REST_AND_THEN_SPEAK_WITH_ADOLPH, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      st.setCond(9);
      return null;
    }

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

    {
      // init second stand
      // init waves
      st.startQuestTimer("8", 30000);
      st.setCond(11);
      player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_RESURECTED_DEFEND_YOURSELF, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      initWave7(player);
      return null;
    }

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

      st.takeItems(DeadSoldierOrbs, -1);
      st.setState(COMPLETED);
      st.exitCurrentQuest(false);
      st.playSound(SOUND_FINISH);
      player.broadcastUserInfo();
      player.sendPacket(new ExShowScreenMessage(NpcString.CONGRATULATIONS_YOU_WILL_NOW_GRADUATE_FROM_THE_CLAN_ACADEMY_AND_LEAVE_YOUR_CURRENT_CLAN_AS_A_GRADUATE_OF_THE_ACADEMY_YOU_CAN_IMMEDIATELY_JOIN_A_CLAN_AS_A_REGULAR_MEMBER_WITHOUT_BEING_SUBJECT_TO_ANY_PENALTIES, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      return StartNPC + "-7.htm";
    }
    return htmltext;

  }
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.