Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SkillList


  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here


        effect.get(0).exit();
      }
      skill.getEffects(actor, player, false, false);
      if (animation)
      {
        actor.broadcastPacket(new MagicSkillUse(actor, player, skill.getId(), skill.getLevel(), skill.getHitTime(), 0));
      }
    }
  }
View Full Code Here

      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
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

        update = true;
      }
    }
    if (update)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
View Full Code Here

        if (!player.getOpenCloak() && (player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_BACK, null) != null))
        {
          player.sendPacket(SystemMsg.YOUR_CLOAK_HAS_BEEN_UNEQUIPPED_BECAUSE_YOUR_ARMOR_SET_IS_NO_LONGER_COMPLETE);
        }
      }
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
View Full Code Here

   
    activeChar.getMacroses().sendUpdate(0x01, 0, true);
        activeChar.sendPacket(new SSQInfo(), new HennaInfo(activeChar));
    activeChar.sendItemList(false);
    activeChar.sendPacket(new ShortCutInit(activeChar));
        activeChar.sendPacket(new ShortCutInit(activeChar), new SkillList(activeChar), new SkillCoolTime(activeChar));
    activeChar.sendPacket(new SkillCoolTime(activeChar));
    //activeChar.sendPacket(new ExCastleState(_castle));
        activeChar.sendPacket(new ExVitalityEffectInfo(activeChar));
    for(Castle castle : ResidenceHolder.getInstance().getResidenceList(Castle.class))
    {
View Full Code Here

            if (player.getAgathionId() > 0)
            {
              player.setAgathion(0);
            }
          }
          player.sendPacket(new SkillList(player));
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
View Full Code Here

          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

          if (!ALLOW_BUFFS)
          {
            player.getEffectList().stopAllEffects();
            ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
          }
          player.sendPacket(new SkillList(player));
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
      }
    }
    for (Player player : getPlayers(players_list2))
    {
      if (player != null)
      {
        try
        {
          if (player.isCastingNow())
          {
            player.abortCast(true, true);
          }
          if (!ALLOW_CLAN_SKILL)
          {
            if (player.getClan() != null)
            {
              for (Skill skill : player.getClan().getAllSkills())
              {
                player.removeSkill(skill, false);
              }
            }
          }
          if (!ALLOW_HERO_SKILL)
          {
            if (player.isHero())
            {
              Hero.removeSkills(player);
            }
          }
          if (!ALLOW_BUFFS)
          {
            player.getEffectList().stopAllEffects();
            ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
          }
          player.sendPacket(new SkillList(player));
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
      }
    }
    for (Player player : getPlayers(players_list3))
    {
      if (player != null)
      {
        try
        {
          if (player.isCastingNow())
          {
            player.abortCast(true, true);
          }
          if (!ALLOW_CLAN_SKILL)
          {
            if (player.getClan() != null)
            {
              for (Skill skill : player.getClan().getAllSkills())
              {
                player.removeSkill(skill, false);
              }
            }
          }
          if (!ALLOW_HERO_SKILL)
          {
            if (player.isHero())
            {
              Hero.removeSkills(player);
            }
          }
          if (!ALLOW_BUFFS)
          {
            player.getEffectList().stopAllEffects();
            ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
          }
          player.sendPacket(new SkillList(player));
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.SkillList

Copyright © 2018 www.massapicom. 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.