else if (currentCommand.startsWith("fighterSet"))
{
int fighterSet[] = Config.FIGHTER_SET_LIST;
player.stopAllEffectsExceptThoseThatLastThroughDeath();
L2Skill buff ;
for (int id: fighterSet)
{
buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
buff.getEffects(this, player);
player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
}
final NpcHtmlMessage html = new NpcHtmlMessage(0);
html.setFile(getHtmlPath(getNpcId(), 0));
html.replace("%objectId%", getObjectId());
player.sendPacket(html);
}
else if (currentCommand.startsWith("mageSet"))
{
int mageSet[] = Config.MAGE_SET_LIST;
player.stopAllEffectsExceptThoseThatLastThroughDeath();
L2Skill buff ;
for (int id: mageSet)
{
buff = SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id));
buff.getEffects(this, player);
player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0));
}
final NpcHtmlMessage html = new NpcHtmlMessage(0);
html.setFile(getHtmlPath(getNpcId(), 0));
html.replace("%objectId%", getObjectId());
player.sendPacket(html);
}
what about this one ?...