Examples of ExEnchantSkillInfo


Examples of com.l2jfrozen.gameserver.network.serverpackets.ExEnchantSkillInfo

      return; // cheater

    int requiredSp = SkillTreeTable.getInstance().getSkillSpCost(activeChar, skill);
    int requiredExp = SkillTreeTable.getInstance().getSkillExpCost(activeChar, skill);
    byte rate = SkillTreeTable.getInstance().getSkillRate(activeChar, skill);
    ExEnchantSkillInfo asi = new ExEnchantSkillInfo(skill.getId(), skill.getLevel(), requiredSp, requiredExp, rate);

    if(Config.ES_SP_BOOK_NEEDED && (skill.getLevel() == 101 || skill.getLevel() == 141)) // only first lvl requires book
    {
      int spbId = 6622;
      asi.addRequirement(4, spbId, 1, 0);
    }
    sendPacket(asi);

  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExEnchantSkillInfo

      activeChar.sendPacket(new SystemMessage(SystemMessage.FAILED_IN_ENCHANTING_SKILL_S1).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(0));
      Log.add(activeChar.getName() + "|Failed to enchant|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    activeChar.addSkill(skill, true);
    updateSkillShortcuts(activeChar);
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)));
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExEnchantSkillInfo

      SystemMessage sm = new SystemMessage(SystemMessage.Untrain_of_enchant_skill_was_successful_Current_level_of_enchant_skill_S1_became_0_and_enchant_skill_will_be_initialized);
      sm.addSkillName(_skillId, _skillLvl);
      activeChar.sendPacket(sm);
    }
    Log.add(activeChar.getName() + "|Successfully untranes|" + _skillId + "|to+" + _skillLvl + "|---", "enchant_skills");
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, newSkill.getDisplayLevel()), new ExEnchantSkillResult(1), new SkillList(activeChar));
    updateSkillShortcuts(activeChar);
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExEnchantSkillInfo

    else if(activeChar.getSkillLevel(_skillId) != _skillLvl)
    {
      activeChar.sendMessage("Skill not found");
      return;
    }
    sendPacket(new ExEnchantSkillInfo(_skillId, _skillLvl));
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExEnchantSkillInfo

      sm.addSkillName(_skillId, _skillLvl);
      sm.addNumber(levelPenalty);
      activeChar.sendPacket(sm);
    }
    Log.add(activeChar.getName() + "|Successfully changed route|" + _skillId + "|to+" + _skillLvl + "|" + levelPenalty, "enchant_skills");
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)), new ExEnchantSkillResult(1));
    updateSkillShortcuts(activeChar);
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.ExEnchantSkillInfo

    else
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.Skill_enchant_failed_Current_level_of_enchant_skill_S1_will_remain_unchanged).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(0));
      Log.add(activeChar.getName() + "|Failed to safe enchant|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExEnchantSkillInfo

      Log.add(activeChar.getName() + "|Failed to enchant|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    activeChar.addSkill(skill, true);
    activeChar.sendSkillList();
    updateSkillShortcuts(activeChar, _skillId, _skillLvl);
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExEnchantSkillInfo

    else
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.Skill_enchant_failed_Current_level_of_enchant_skill_S1_will_remain_unchanged).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(0));
      Log.add(activeChar.getName() + "|Failed to safe enchant|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
    }
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExEnchantSkillInfo

    else if (activeChar.getSkillLevel(_skillId) != _skillLvl)
    {
      activeChar.sendMessage("Skill not found");
      return;
    }
    sendPacket(new ExEnchantSkillInfo(_skillId, _skillLvl));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExEnchantSkillInfo

      sm.addSkillName(_skillId, _skillLvl);
      sm.addNumber(levelPenalty);
      activeChar.sendPacket(sm);
    }
    Log.add(activeChar.getName() + "|Successfully changed route|" + _skillId + "|" + slevel + "|to+" + _skillLvl + "|" + levelPenalty, "enchant_skills");
    activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, activeChar.getSkillDisplayLevel(_skillId)), new ExEnchantSkillResult(1));
    RequestExEnchantSkill.updateSkillShortcuts(activeChar, _skillId, _skillLvl);
  }
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.