Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.SkillList


      case admin_buff:
        for(int i = 7041; i <= 7064; i++)
        {
          activeChar.addSkill(SkillTable.getInstance().getInfo(i, 1));
        }
        activeChar.sendPacket(new SkillList(activeChar));
        break;
      case admin_callskill:
        int skillid;
        int skilllevel;
        if(wordList.length < 3)
View Full Code Here


        player.addSkill(sk, true);
      }
      skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getClassId());
    }
    player.sendMessage("Admin gave you " + skillCounter + " skills.");
    player.sendPacket(new SkillList(player));
    activeChar.sendMessage("You gave " + skillCounter + " skills to " + player.getName());
  }
View Full Code Here

        player.removeSkill(element, true);
        counter++;
      }
    }
    player.checkSkills();
    player.sendPacket(new SkillList(player));
    player.sendMessage("[GM]" + activeChar.getName() + " has updated your skills.");
    activeChar.sendMessage(counter + " skills removed.");
    showSkillsPage(activeChar);
  }
View Full Code Here

      L2Skill skill = SkillTable.getInstance().getInfo(id, level);
      if(skill != null)
      {
        player.sendMessage("Admin gave you the skill " + skill.getName() + ".");
        player.addSkill(skill, true);
        player.sendPacket(new SkillList(player));
        activeChar.sendMessage("You gave the skill " + skill.getName() + " to " + player.getName() + ".");
      }
      else
      {
        activeChar.sendMessage("Error: there is no such skill.");
View Full Code Here

      L2Skill skill = SkillTable.getInstance().getInfo(id, level);
      if(skill != null)
      {
        player.sendMessage("Admin removed the skill " + skill.getName() + ".");
        player.removeSkill(skill, true);
        player.sendPacket(new SkillList(player));
        activeChar.sendMessage("You removed the skill " + skill.getName() + " from " + player.getName() + ".");
      }
      else
      {
        activeChar.sendMessage("Error: there is no such skill.");
View Full Code Here

        }
        player.addSkill(sk, true);
      }
      skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getClassId());
    }
    player.sendPacket(new SkillList(player));
    player.broadcastUserInfo(true);
  }
View Full Code Here

    }
    Olympiad.addNoble(player);
    player.setNoble(true);
    player.updatePledgeClass();
    player.updateNobleSkills();
    player.sendPacket(new SkillList(player));
    player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
    player.broadcastUserInfo(true);
    player.sendMessage("Поздравляем, вы стали дворянином");
  }
View Full Code Here

      {
        player.setHero(true);
        player.updatePledgeClass();
        Hero.addSkills(player);
      }
      player.sendPacket(new SkillList(player));
      if(player.isHero())
      {
        player.broadcastPacket(new SocialAction(player.getObjectId(), 16));
        Announcements.getInstance().announceToAll(player.getName() + " has become a hero.");
      }
      player.sendMessage("Admin changed your hero status.");
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_setnoble"))
    {
      // Статус сохраняется в базе
      L2Object target = activeChar.getTarget();
      L2Player player;
      if(wordList.length > 1 && wordList[1] != null)
      {
        player = L2ObjectsStorage.getPlayer(wordList[1]);
        if(player == null)
        {
          activeChar.sendMessage("Character " + wordList[1] + " not found in game.");
          return false;
        }
      }
      else if(target != null && target.isPlayer())
      {
        player = (L2Player) target;
      }
      else
      {
        activeChar.sendMessage("You must specify the name or target character.");
        return false;
      }
      if(player.isNoble())
      {
        Olympiad.removeNoble(player);
        player.setNoble(false);
        player.sendMessage("Admin changed your noble status, now you are not nobless.");
      }
      else
      {
        Olympiad.addNoble(player);
        player.setNoble(true);
        player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
        player.sendMessage("Admin changed your noble status, now you nobless.");
      }
      player.updatePledgeClass();
      player.updateNobleSkills();
      player.sendPacket(new SkillList(player));
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_setsex"))
    {
      L2Object target = activeChar.getTarget();
View Full Code Here

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

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

TOP

Related Classes of l2p.gameserver.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.