Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SkillList


          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
    }
    for (Player player : getPlayers(players_list2))
    {
      if (player == null)
      {
        continue;
      }
      try
      {
        player.getEffectList().stopAllEffects();
        if (!ALLOW_CLAN_SKILL)
        {
          if (player.getClan() != null)
          {
            for (Skill skill : player.getClan().getAllSkills())
            {
              if (skill.getMinPledgeClass() <= player.getPledgeClass())
              {
                player.addSkill(skill, false);
              }
            }
          }
        }
        if (!ALLOW_HERO_SKILL)
        {
          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
    }
    for (Player player : getPlayers(players_list3))
    {
      if (player == null)
      {
        continue;
      }
      try
      {
        player.getEffectList().stopAllEffects();
        if (!ALLOW_CLAN_SKILL)
        {
          if (player.getClan() != null)
          {
            for (Skill skill : player.getClan().getAllSkills())
            {
              if (skill.getMinPledgeClass() <= player.getPledgeClass())
              {
                player.addSkill(skill, false);
              }
            }
          }
        }
        if (!ALLOW_HERO_SKILL)
        {
          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

          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
    }
    for (Player player : getPlayers(players_list2))
    {
      if (player == null)
      {
        continue;
      }
      try
      {
        player.getEffectList().stopAllEffects();
        if (!ALLOW_CLAN_SKILL)
        {
          if (player.getClan() != null)
          {
            for (Skill skill : player.getClan().getAllSkills())
            {
              if (skill.getMinPledgeClass() <= player.getPledgeClass())
              {
                player.addSkill(skill, false);
              }
            }
          }
        }
        if (!ALLOW_HERO_SKILL)
        {
          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
    }
    for (Player player : getPlayers(players_list3))
    {
      if (player == null)
      {
        continue;
      }
      try
      {
        player.getEffectList().stopAllEffects();
        if (!ALLOW_CLAN_SKILL)
        {
          if (player.getClan() != null)
          {
            for (Skill skill : player.getClan().getAllSkills())
            {
              if (skill.getMinPledgeClass() <= player.getPledgeClass())
              {
                player.addSkill(skill, false);
              }
            }
          }
        }
        if (!ALLOW_HERO_SKILL)
        {
          if (player.isHero())
          {
            Hero.addSkills(player);
          }
        }
        player.sendPacket(new SkillList(player));
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

      }
      player.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_EARNED_S1_SKILL).addSkillName(skill.getId(), skill.getLevel()));
      player.addSkill(skill, true);
    }
    player.updateStats();
    player.sendPacket(new SkillList(player));
    player.broadcastPacket(new MagicSkillUse(player, player, 2790, 1, 1, 0));
    return true;
  }
View Full Code Here

  /**
   * Method sendSkillList.
   */
  public void sendSkillList()
  {
    sendPacket(new SkillList(this));
    sendPacket(new ExAcquirableSkillListByClass(this));
  }
View Full Code Here

    player.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_EARNED_S1_SKILL).addSkillName(skill.getId(), skill.getLevel()));
    player.setSp(player.getSp() - skillLearn.getCost());
    player.addSkill(skill, true);
    player.sendUserInfo();
    player.updateStats();
    player.sendPacket(new SkillList(player, skill.getId()));
    player.sendPacket(new ExAcquirableSkillListByClass(player));
    RequestExEnchantSkill.updateSkillShortcuts(player, skill.getId(), skill.getLevel());
  }
View Full Code Here

    }
    player.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_EARNED_S1_SKILL).addSkillName(skill.getId(), skill.getLevel()));
    player.addCertSkill(skill, isDual);
    player.sendUserInfo();
    player.updateStats();
    player.sendPacket(new SkillList(player, skill.getId()));
    player.sendPacket(new ExAcquirableSkillListByClass(player));
    RequestExEnchantSkill.updateSkillShortcuts(player, skill.getId(), skill.getLevel());
  }
View Full Code Here

  {
    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

          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here

            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
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.