Package lineage2.gameserver.model

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


        player.sendPacket(new EnchantResult(0, 0, 0L, item.getEnchantLevel()));

        if (Config.SHOW_ENCHANT_EFFECT_RESULT)
        {
          player.broadcastPacket(new L2GameServerPacket[] { new SystemMessage(3013).addName(player).addNumber(item.getEnchantLevel()).addItemName(item.getItemId()) });
          player.broadcastPacket(new L2GameServerPacket[] { new MagicSkillUse(player, player, 5965, 1, 500, 1500L) });
        }
      }
      else
      {
        switch (esi.getType())
View Full Code Here


    _state.setState(EpicBossState.State.ALIVE);
    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
    setLastAttackTime();
    baium.startImmobilized();
    baium.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().schedule(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().schedule(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().schedule(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().schedule(new KillPc(awake_by, baium), 26000);
View Full Code Here

    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
    setLastAttackTime();
    baium.startImmobilized();
    baium.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().schedule(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().schedule(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().schedule(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().schedule(new KillPc(awake_by, baium), 26000);
    _callAngelTask = ThreadPoolManager.getInstance().schedule(new CallArchAngel(), 35000);
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
    Functions.npcSay(actor, "A fatal error has occurred");
    Functions.npcSay(actor, "System is being shut down...");
    Functions.npcSay(actor, "......");
    try
    {
View Full Code Here

  protected void onEvtAttacked(Creature attacker, int damage)
  {
    final NpcInstance actor = getActor();
    if (!_firstAttack)
    {
      actor.broadcastPacket(new MagicSkillUse(actor, actor, 5980, 1, 0, 0));
      _firstAttack = true;
    }
  }
 
  /**
 
View Full Code Here

            wait_timeout = System.currentTimeMillis() + 15000;
            Functions.npcSay(actor, "Вы в�?е еще тут? Я ва�? предупреждал!!!!!");
            wait = true;
            return true;
          case 33:
            actor.broadcastPacket(new MagicSkillUse(actor, actor, 2025, 1, 500, 0));
            wait_timeout = System.currentTimeMillis() + 1000;
            wait = true;
            return true;
          case 35:
            wait_timeout = System.currentTimeMillis() + 10000;
View Full Code Here

    player.getReflection().addSpawnWithoutRespawn(Priest_Darkness, new Location(55864, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Pursuer, new Location(55768, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56376, -177544, -8320, 16383), 0);
    player.getReflection().addSpawnWithoutRespawn(Guard_Darkness, new Location(56336, -177544, -8320, 16383), 0);
    NpcInstance boss = player.getReflection().addSpawnWithoutRespawn(Death_wound, new Location(56168, -177544, -7974, 16383), 0);
    boss.broadcastPacket(new Earthquake(boss.getLoc(), 40, 10));
    boss.addListener(deathListener);

  }

  private void initWave12(Player player)
View Full Code Here

      if ((around != null) && !around.isEmpty())
      {
        switch (Rnd.get(1, 3))
        {
          case 1:
            actor.broadcastPacket(new SocialAction(actor.getObjectId(), 7));
            for (NpcInstance mob : around)
            {
              if (ArrayUtils.contains(recruits, mob.getNpcId()))
              {
                mob.broadcastPacket(new SocialAction(mob.getObjectId(), 7));
View Full Code Here

                mob.broadcastPacket(new SocialAction(mob.getObjectId(), 7));
              }
            }
            break;
          case 2:
            actor.broadcastPacket(new SocialAction(actor.getObjectId(), 7));
            for (NpcInstance mob : around)
            {
              if (ArrayUtils.contains(recruits, mob.getNpcId()))
              {
                mob.broadcastPacket(new SocialAction(mob.getObjectId(), 4));
View Full Code Here

                mob.broadcastPacket(new SocialAction(mob.getObjectId(), 4));
              }
            }
            break;
          case 3:
            actor.broadcastPacket(new SocialAction(actor.getObjectId(), 7));
            for (NpcInstance mob : around)
            {
              if (ArrayUtils.contains(recruits, mob.getNpcId()))
              {
                mob.broadcastPacket(new SocialAction(mob.getObjectId(), 5));
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.