Package lineage2.gameserver.model

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


      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

  {
    Player player = st.getPlayer();
    int wave = Integer.parseInt(player.getVar("wave"));
    if(npc.getNpcId() == Death_wound)
    {
      player.sendPacket(new ExShowScreenMessage(NpcString.AGH_HUMANS_HA_IT_DOES_NOT_MATTER_YOUR_WORLD_WILL_END_ANYWAYS, 10000, ScreenMessageAlign.MIDDLE_CENTER, true));
      st.startQuestTimer("secondStandCompleted", 1000);
      return null;
    }

    if(checkWave(player, npc, wave, st))
View Full Code Here

    {
      return;
    }
    if (activeChar.isActionsDisabled())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInStoreMode())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
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.