Prevent the extensive use of the lvl abbreviation.
This commit is contained in:
@@ -185,7 +185,7 @@ public class DenOfEvil extends AbstractNpcAI
|
||||
{
|
||||
for (int i = SKILL_ID; i <= (SKILL_ID + 4); i += 2)
|
||||
{
|
||||
// test 3 skills if some is lvl 4
|
||||
// test 3 skills if some is level 4
|
||||
if (_zone.getSkillLevel(i) > 3)
|
||||
{
|
||||
destroyZone();
|
||||
|
@@ -89,7 +89,7 @@ public class Kekropus extends AbstractNpcAI
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "34222-01.html"));
|
||||
packet.replace("%min%", Integer.toString(Config.HELIOS_MIN_PLAYER));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.HELIOS_MIN_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.HELIOS_MIN_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
@@ -106,18 +106,18 @@ public class Kekropus extends AbstractNpcAI
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "34222-01.html"));
|
||||
packet.replace("%min%", Integer.toString(Config.HELIOS_MIN_PLAYER));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.HELIOS_MIN_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.HELIOS_MIN_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
for (PlayerInstance member : members)
|
||||
{
|
||||
if (member.getLevel() < Config.HELIOS_MIN_PLAYER_LVL)
|
||||
if (member.getLevel() < Config.HELIOS_MIN_PLAYER_LEVEL)
|
||||
{
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "34222-01.html"));
|
||||
packet.replace("%min%", Integer.toString(Config.HELIOS_MIN_PLAYER));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.HELIOS_MIN_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.HELIOS_MIN_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
|
@@ -291,7 +291,7 @@ public class Raina extends AbstractNpcAI
|
||||
}
|
||||
case "ertheiaDualClass":
|
||||
{
|
||||
// TODO: Maybe html is different when you have 85lvl but you haven't completed quest
|
||||
// TODO: Maybe html is different when you have 85level but you haven't completed quest
|
||||
if ((player.getRace() != Race.ERTHEIA) || (player.getLevel() < 85) || !player.isInCategory(CategoryType.SIXTH_CLASS_GROUP) || player.hasDualClass() || !haveDoneQuest(player, true))
|
||||
{
|
||||
htmltext = "addDualClassErtheiaFailed.html";
|
||||
|
@@ -517,12 +517,12 @@ public class Anakim extends AbstractNpcAI
|
||||
|
||||
for (PlayerInstance member : members)
|
||||
{
|
||||
if ((member.getLevel() < Config.ANAKIM_MIN_PLAYER_LVL) || (member.getLevel() > Config.ANAKIM_MAX_PLAYER_LVL))
|
||||
if ((member.getLevel() < Config.ANAKIM_MIN_PLAYER_LEVEL) || (member.getLevel() > Config.ANAKIM_MAX_PLAYER_LEVEL))
|
||||
{
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "31101-04.html"));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.ANAKIM_MIN_PLAYER_LVL));
|
||||
packet.replace("%maxlvl%", Integer.toString(Config.ANAKIM_MAX_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.ANAKIM_MIN_PLAYER_LEVEL));
|
||||
packet.replace("%maxLevel%", Integer.toString(Config.ANAKIM_MAX_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
|
@@ -543,12 +543,12 @@ public class Lilith extends AbstractNpcAI
|
||||
|
||||
for (PlayerInstance member : members)
|
||||
{
|
||||
if ((member.getLevel() < Config.LILITH_MIN_PLAYER_LVL) || (member.getLevel() > Config.LILITH_MAX_PLAYER_LVL))
|
||||
if ((member.getLevel() < Config.LILITH_MIN_PLAYER_LEVEL) || (member.getLevel() > Config.LILITH_MAX_PLAYER_LEVEL))
|
||||
{
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "31118-04.html"));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.LILITH_MIN_PLAYER_LVL));
|
||||
packet.replace("%maxlvl%", Integer.toString(Config.LILITH_MAX_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.LILITH_MIN_PLAYER_LEVEL));
|
||||
packet.replace("%maxLevel%", Integer.toString(Config.LILITH_MAX_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
|
@@ -93,11 +93,11 @@ public class KatoSicanus extends AbstractNpcAI
|
||||
}
|
||||
for (PlayerInstance member : members)
|
||||
{
|
||||
if (member.getLevel() < Config.LINDVIOR_MIN_PLAYER_LVL)
|
||||
if (member.getLevel() < Config.LINDVIOR_MIN_PLAYER_LEVEL)
|
||||
{
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "33881-5.html"));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.LINDVIOR_MIN_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.LINDVIOR_MIN_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
|
@@ -93,11 +93,11 @@ public class Daichir extends AbstractNpcAI
|
||||
}
|
||||
for (PlayerInstance member : members)
|
||||
{
|
||||
if (member.getLevel() < Config.TRASKEN_MIN_PLAYER_LVL)
|
||||
if (member.getLevel() < Config.TRASKEN_MIN_PLAYER_LEVEL)
|
||||
{
|
||||
final NpcHtmlMessage packet = new NpcHtmlMessage(npc.getObjectId());
|
||||
packet.setHtml(getHtm(player, "30537-5.html"));
|
||||
packet.replace("%minlvl%", Integer.toString(Config.TRASKEN_MIN_PLAYER_LVL));
|
||||
packet.replace("%minLevel%", Integer.toString(Config.TRASKEN_MIN_PLAYER_LEVEL));
|
||||
player.sendPacket(packet);
|
||||
return null;
|
||||
}
|
||||
|
@@ -239,28 +239,28 @@ public class Valakas extends AbstractNpcAI
|
||||
|
||||
// Verify if "Valakas Regeneration" skill is active.
|
||||
final BuffInfo info = npc.getEffectList().getBuffInfoBySkillId(VALAKAS_REGENERATION);
|
||||
final int lvl = info != null ? info.getSkill().getLevel() : 0;
|
||||
final int level = info != null ? info.getSkill().getLevel() : 0;
|
||||
|
||||
// Current HPs are inferior to 25% ; apply lvl 4 of regen skill.
|
||||
if ((npc.getCurrentHp() < (npc.getMaxHp() / 4)) && (lvl != 4))
|
||||
// Current HPs are inferior to 25% ; apply level 4 of regen skill.
|
||||
if ((npc.getCurrentHp() < (npc.getMaxHp() / 4)) && (level != 4))
|
||||
{
|
||||
npc.setTarget(npc);
|
||||
npc.doCast(SkillData.getInstance().getSkill(VALAKAS_REGENERATION, 4));
|
||||
}
|
||||
// Current HPs are inferior to 50% ; apply lvl 3 of regen skill.
|
||||
else if ((npc.getCurrentHp() < ((npc.getMaxHp() * 2) / 4.0)) && (lvl != 3))
|
||||
// Current HPs are inferior to 50% ; apply level 3 of regen skill.
|
||||
else if ((npc.getCurrentHp() < ((npc.getMaxHp() * 2) / 4.0)) && (level != 3))
|
||||
{
|
||||
npc.setTarget(npc);
|
||||
npc.doCast(SkillData.getInstance().getSkill(VALAKAS_REGENERATION, 3));
|
||||
}
|
||||
// Current HPs are inferior to 75% ; apply lvl 2 of regen skill.
|
||||
else if ((npc.getCurrentHp() < ((npc.getMaxHp() * 3) / 4.0)) && (lvl != 2))
|
||||
// Current HPs are inferior to 75% ; apply level 2 of regen skill.
|
||||
else if ((npc.getCurrentHp() < ((npc.getMaxHp() * 3) / 4.0)) && (level != 2))
|
||||
{
|
||||
npc.setTarget(npc);
|
||||
npc.doCast(SkillData.getInstance().getSkill(VALAKAS_REGENERATION, 2));
|
||||
}
|
||||
// Apply lvl 1.
|
||||
else if (lvl != 1)
|
||||
// Apply level 1.
|
||||
else if (level != 1)
|
||||
{
|
||||
npc.setTarget(npc);
|
||||
npc.doCast(SkillData.getInstance().getSkill(VALAKAS_REGENERATION, 1));
|
||||
|
@@ -45,7 +45,7 @@ public class CavernOfThePirateCaptain extends AbstractInstance
|
||||
// Items
|
||||
private static final int VORPAL_RING = 15763; // Sealed Vorpal Ring
|
||||
private static final int VORPAL_EARRING = 15764; // Sealed Vorpal Earring
|
||||
// Reward - Zaken lvl 83 @formatter:off
|
||||
// Reward - Zaken level 83 @formatter:off
|
||||
private static final int[][] VORPAL_JEWELS =
|
||||
{
|
||||
// Time, jewel id, chance
|
||||
|
@@ -36,11 +36,11 @@ public class FameManager extends AbstractNpcAI
|
||||
36480, // Scipio
|
||||
};
|
||||
// Misc
|
||||
private static final int MIN_LVL = 40;
|
||||
private static final int MIN_LEVEL = 40;
|
||||
private static final int DECREASE_COST = 5000;
|
||||
private static final int REPUTATION_COST = 1000;
|
||||
private static final int MIN_CLAN_LVL = 5;
|
||||
private static final int CLASS_LVL = 2;
|
||||
private static final int MIN_CLAN_LEVEL = 5;
|
||||
private static final int CLASS_LEVEL = 2;
|
||||
|
||||
private FameManager()
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class FameManager extends AbstractNpcAI
|
||||
{
|
||||
if (player.getPkKills() > 0)
|
||||
{
|
||||
if ((player.getFame() >= DECREASE_COST) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL))
|
||||
if ((player.getFame() >= DECREASE_COST) && (player.getLevel() >= MIN_LEVEL) && (player.getClassId().level() >= CLASS_LEVEL))
|
||||
{
|
||||
player.setFame(player.getFame() - DECREASE_COST);
|
||||
player.setPkKills(player.getPkKills() - 1);
|
||||
@@ -89,9 +89,9 @@ public class FameManager extends AbstractNpcAI
|
||||
}
|
||||
case "clanRep":
|
||||
{
|
||||
if ((player.getClan() != null) && (player.getClan().getLevel() >= MIN_CLAN_LVL))
|
||||
if ((player.getClan() != null) && (player.getClan().getLevel() >= MIN_CLAN_LEVEL))
|
||||
{
|
||||
if ((player.getFame() >= REPUTATION_COST) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL))
|
||||
if ((player.getFame() >= REPUTATION_COST) && (player.getLevel() >= MIN_LEVEL) && (player.getClassId().level() >= CLASS_LEVEL))
|
||||
{
|
||||
player.setFame(player.getFame() - REPUTATION_COST);
|
||||
player.getClan().addReputationScore(50, true);
|
||||
@@ -117,7 +117,7 @@ public class FameManager extends AbstractNpcAI
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
return ((player.getFame() > 0) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL)) ? npc.getId() + ".html" : npc.getId() + "-01.html";
|
||||
return ((player.getFame() > 0) && (player.getLevel() >= MIN_LEVEL) && (player.getClassId().level() >= CLASS_LEVEL)) ? npc.getId() + ".html" : npc.getId() + "-01.html";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
|
@@ -44,7 +44,7 @@ public class WyvernManager extends AbstractNpcAI
|
||||
private static final int CRYSTAL_B_GRADE = 1460;
|
||||
private static final int WYVERN = 12621;
|
||||
private static final int WYVERN_FEE = 25;
|
||||
private static final int STRIDER_LVL = 55;
|
||||
private static final int STRIDER_LEVEL = 55;
|
||||
private static final int[] STRIDERS =
|
||||
{
|
||||
12526,
|
||||
@@ -104,7 +104,7 @@ public class WyvernManager extends AbstractNpcAI
|
||||
|
||||
private String mountWyvern(Npc npc, PlayerInstance player)
|
||||
{
|
||||
if (player.isMounted() && (player.getMountLevel() >= STRIDER_LVL) && CommonUtil.contains(STRIDERS, player.getMountNpcId()))
|
||||
if (player.isMounted() && (player.getMountLevel() >= STRIDER_LEVEL) && CommonUtil.contains(STRIDERS, player.getMountNpcId()))
|
||||
{
|
||||
if (isOwnerClan(npc, player) && (getQuestItemsCount(player, CRYSTAL_B_GRADE) >= WYVERN_FEE))
|
||||
{
|
||||
@@ -203,7 +203,7 @@ public class WyvernManager extends AbstractNpcAI
|
||||
|
||||
private String replacePart(PlayerInstance player, String htmlFile)
|
||||
{
|
||||
return getHtm(player, htmlFile).replace("%wyvern_fee%", String.valueOf(WYVERN_FEE)).replace("%strider_level%", String.valueOf(STRIDER_LVL));
|
||||
return getHtm(player, htmlFile).replace("%wyvern_fee%", String.valueOf(WYVERN_FEE)).replace("%strider_level%", String.valueOf(STRIDER_LEVEL));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -82,8 +82,8 @@ public class PlayerInstanceAction implements IActionHandler
|
||||
// Check if this PlayerInstance is autoAttackable
|
||||
if (target.isAutoAttackable(player))
|
||||
{
|
||||
// Player with lvl < 21 can't attack a cursed weapon holder
|
||||
// And a cursed weapon holder can't attack players with lvl < 21
|
||||
// Player with level < 21 can't attack a cursed weapon holder
|
||||
// And a cursed weapon holder can't attack players with level < 21
|
||||
if ((targetPlayer.isCursedWeaponEquipped() && (player.getLevel() < CURSED_WEAPON_VICTIM_MIN_LEVEL)) //
|
||||
|| (player.isCursedWeaponEquipped() && (targetPlayer.getLevel() < CURSED_WEAPON_VICTIM_MIN_LEVEL)))
|
||||
{
|
||||
|
@@ -89,7 +89,7 @@ public class AdminBuffs implements IAdminCommandHandler
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill == null)
|
||||
{
|
||||
BuilderUtil.sendSysMessage(activeChar, "Skill with id: " + skillId + ", lvl: " + skillLevel + " not found.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Skill with id: " + skillId + ", level: " + skillLevel + " not found.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -78,14 +78,14 @@ public class AdminLevel implements IAdminCommandHandler
|
||||
|
||||
try
|
||||
{
|
||||
final byte lvl = Byte.parseByte(val);
|
||||
if ((lvl >= 1) && (lvl <= maxLevel))
|
||||
final byte level = Byte.parseByte(val);
|
||||
if ((level >= 1) && (level <= maxLevel))
|
||||
{
|
||||
final long pXp = targetPlayer.getExp();
|
||||
final long tXp = ExperienceData.getInstance().getExpForLevel(lvl);
|
||||
final long tXp = ExperienceData.getInstance().getExpForLevel(level);
|
||||
if (pXp > tXp)
|
||||
{
|
||||
targetPlayer.getStat().setLevel(lvl);
|
||||
targetPlayer.getStat().setLevel(level);
|
||||
targetPlayer.removeExpAndSp(pXp - tXp, 0);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Removed " + (pXp - tXp) + " exp.");
|
||||
}
|
||||
|
@@ -205,18 +205,18 @@ public class AdminSkill implements IAdminCommandHandler
|
||||
{
|
||||
final String[] split = command.split(" ");
|
||||
final int id = Integer.parseInt(split[1]);
|
||||
final int lvl = Integer.parseInt(split[2]);
|
||||
final Skill skill = SkillData.getInstance().getSkill(id, lvl);
|
||||
final int level = Integer.parseInt(split[2]);
|
||||
final Skill skill = SkillData.getInstance().getSkill(id, level);
|
||||
if (skill != null)
|
||||
{
|
||||
activeChar.addSkill(skill);
|
||||
activeChar.sendSkillList();
|
||||
BuilderUtil.sendSysMessage(activeChar, "You added yourself skill " + skill.getName() + "(" + id + ") level " + lvl);
|
||||
BuilderUtil.sendSysMessage(activeChar, "You added yourself skill " + skill.getName() + "(" + id + ") level " + level);
|
||||
activeChar.sendPacket(new AcquireSkillList(activeChar));
|
||||
}
|
||||
else
|
||||
{
|
||||
BuilderUtil.sendSysMessage(activeChar, "No such skill found. Id: " + id + " Level: " + lvl);
|
||||
BuilderUtil.sendSysMessage(activeChar, "No such skill found. Id: " + id + " Level: " + level);
|
||||
}
|
||||
}
|
||||
else if (command.startsWith("admin_cast"))
|
||||
@@ -237,7 +237,7 @@ public class AdminSkill implements IAdminCommandHandler
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill == null)
|
||||
{
|
||||
BuilderUtil.sendSysMessage(activeChar, "Skill with id: " + skillId + ", lvl: " + skillLevel + " not found.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Skill with id: " + skillId + ", level: " + skillLevel + " not found.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public class CallSkill extends AbstractEffect
|
||||
|
||||
public CallSkill(StatSet params)
|
||||
{
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel", 0));
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel ", 0));
|
||||
_skillLevelScaleTo = params.getInt("skillLevelScaleTo", 0);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class CallSkill extends AbstractEffect
|
||||
final int knownLevel = effector.getSkillLevel(_skill.getSkillId());
|
||||
if (knownLevel > 0)
|
||||
{
|
||||
triggerSkill = SkillData.getInstance().getSkill(_skill.getSkillId(), knownLevel, _skill.getSkillSubLevel());
|
||||
triggerSkill = SkillData.getInstance().getSkill(_skill.getSkillId(), knownLevel, _skill.getSkillSubLevel ());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -37,7 +37,7 @@ public class CallSkillOnActionTime extends AbstractEffect
|
||||
|
||||
public CallSkillOnActionTime(StatSet params)
|
||||
{
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel", 0));
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel ", 0));
|
||||
setTicks(params.getInt("ticks"));
|
||||
}
|
||||
|
||||
|
@@ -72,45 +72,45 @@ public class ManaHealByLevel extends AbstractEffect
|
||||
amount = effected.getStat().getValue(Stat.MANA_CHARGE, amount);
|
||||
if (effected.getLevel() > skill.getMagicLevel())
|
||||
{
|
||||
final int lvlDiff = effected.getLevel() - skill.getMagicLevel();
|
||||
final int levelDiff = effected.getLevel() - skill.getMagicLevel();
|
||||
// if target is too high compared to skill level, the amount of recharged mp gradually decreases.
|
||||
if (lvlDiff == 6)
|
||||
if (levelDiff == 6)
|
||||
{
|
||||
amount *= 0.9; // only 90% effective
|
||||
}
|
||||
else if (lvlDiff == 7)
|
||||
else if (levelDiff == 7)
|
||||
{
|
||||
amount *= 0.8; // 80%
|
||||
}
|
||||
else if (lvlDiff == 8)
|
||||
else if (levelDiff == 8)
|
||||
{
|
||||
amount *= 0.7; // 70%
|
||||
}
|
||||
else if (lvlDiff == 9)
|
||||
else if (levelDiff == 9)
|
||||
{
|
||||
amount *= 0.6; // 60%
|
||||
}
|
||||
else if (lvlDiff == 10)
|
||||
else if (levelDiff == 10)
|
||||
{
|
||||
amount *= 0.5; // 50%
|
||||
}
|
||||
else if (lvlDiff == 11)
|
||||
else if (levelDiff == 11)
|
||||
{
|
||||
amount *= 0.4; // 40%
|
||||
}
|
||||
else if (lvlDiff == 12)
|
||||
else if (levelDiff == 12)
|
||||
{
|
||||
amount *= 0.3; // 30%
|
||||
}
|
||||
else if (lvlDiff == 13)
|
||||
else if (levelDiff == 13)
|
||||
{
|
||||
amount *= 0.2; // 20%
|
||||
}
|
||||
else if (lvlDiff == 14)
|
||||
else if (levelDiff == 14)
|
||||
{
|
||||
amount *= 0.1; // 10%
|
||||
}
|
||||
else if (lvlDiff >= 15)
|
||||
else if (levelDiff >= 15)
|
||||
{
|
||||
amount = 0; // 0mp recharged
|
||||
}
|
||||
|
@@ -39,12 +39,12 @@ public class ResistSkill extends AbstractEffect
|
||||
for (int i = 1;; i++)
|
||||
{
|
||||
final int skillId = params.getInt("skillId" + i, 0);
|
||||
final int skillLvl = params.getInt("skillLvl" + i, 0);
|
||||
final int skillLevel = params.getInt("skillLevel" + i, 0);
|
||||
if (skillId == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
_skills.add(new SkillHolder(skillId, skillLvl));
|
||||
_skills.add(new SkillHolder(skillId, skillLevel));
|
||||
}
|
||||
|
||||
if (_skills.isEmpty())
|
||||
|
@@ -30,12 +30,12 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
public class SetSkill extends AbstractEffect
|
||||
{
|
||||
private final int _skillId;
|
||||
private final int _skillLvl;
|
||||
private final int _skillLevel;
|
||||
|
||||
public SetSkill(StatSet params)
|
||||
{
|
||||
_skillId = params.getInt("skillId", 0);
|
||||
_skillLvl = params.getInt("skillLvl", 1);
|
||||
_skillLevel = params.getInt("skillLevel", 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -52,7 +52,7 @@ public class SetSkill extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
final Skill setSkill = SkillData.getInstance().getSkill(_skillId, _skillLvl);
|
||||
final Skill setSkill = SkillData.getInstance().getSkill(_skillId, _skillLevel);
|
||||
if (setSkill == null)
|
||||
{
|
||||
return;
|
||||
|
@@ -123,7 +123,7 @@ public class BeastSoulShot implements IItemHandler
|
||||
{
|
||||
activeOwner.sendMessage("Your pet uses soulshot."); // activeOwner.sendPacket(SystemMessageId.YOUR_PET_USES_SPIRITSHOT);
|
||||
pet.chargeShot(ShotType.SOULSHOTS);
|
||||
// Visual effect change if player has equipped Ruby lvl 3 or higher
|
||||
// Visual effect change if player has equipped Ruby level 3 or higher
|
||||
if (activeOwner.getActiveRubyJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(pet, pet, activeOwner.getActiveRubyJewel().getEffectId(), 1, 0, 0), 600);
|
||||
@@ -140,7 +140,7 @@ public class BeastSoulShot implements IItemHandler
|
||||
{
|
||||
activeOwner.sendMessage("Your servitor uses soulshot."); // activeOwner.sendPacket(SystemMessageId.YOUR_PET_USES_SPIRITSHOT);
|
||||
s.chargeShot(ShotType.SOULSHOTS);
|
||||
// Visual effect change if player has equipped Ruby lvl 3 or higher
|
||||
// Visual effect change if player has equipped Ruby level 3 or higher
|
||||
if (activeOwner.getActiveRubyJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(s, s, activeOwner.getActiveRubyJewel().getEffectId(), 1, 0, 0), 600);
|
||||
|
@@ -124,7 +124,7 @@ public class BeastSpiritShot implements IItemHandler
|
||||
{
|
||||
activeOwner.sendMessage(isBlessed ? "Your pet uses blessed spiritshot." : "Your pet uses spiritshot."); // activeOwner.sendPacket(SystemMessageId.YOUR_PET_USES_SPIRITSHOT);
|
||||
pet.chargeShot(shotType);
|
||||
// Visual effect change if player has equipped Sapphire lvl 3 or higher
|
||||
// Visual effect change if player has equipped Sapphire level 3 or higher
|
||||
if (activeOwner.getActiveShappireJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(pet, pet, activeOwner.getActiveShappireJewel().getEffectId(), 2, 0, 0), 600);
|
||||
@@ -141,7 +141,7 @@ public class BeastSpiritShot implements IItemHandler
|
||||
{
|
||||
activeOwner.sendMessage(isBlessed ? "Your servitor uses blessed spiritshot." : "Your servitor uses spiritshot."); // activeOwner.sendPacket(SystemMessageId.YOUR_PET_USES_SPIRITSHOT);
|
||||
s.chargeShot(shotType);
|
||||
// Visual effect change if player has equipped Sapphire lvl 3 or higher
|
||||
// Visual effect change if player has equipped Sapphire level 3 or higher
|
||||
if (activeOwner.getActiveShappireJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUse(s, s, activeOwner.getActiveShappireJewel().getEffectId(), 2, 0, 0), 600);
|
||||
|
@@ -109,7 +109,7 @@ public class BlessedSoulShots implements IItemHandler
|
||||
player.sendPacket(SystemMessageId.YOUR_SOULSHOTS_ARE_ENABLED);
|
||||
}
|
||||
|
||||
// Visual effect change if player has equipped Ruby lvl 3 or higher
|
||||
// Visual effect change if player has equipped Ruby level 3 or higher
|
||||
if (player.getActiveRubyJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, player.getActiveRubyJewel().getEffectId(), 1, 0, 0), 600);
|
||||
|
@@ -101,7 +101,7 @@ public class BlessedSpiritShot implements IItemHandler
|
||||
player.sendPacket(SystemMessageId.YOUR_SPIRITSHOT_HAS_BEEN_ENABLED);
|
||||
}
|
||||
|
||||
// Visual effect change if player has equipped Sapphire lvl 3 or higher
|
||||
// Visual effect change if player has equipped Sapphire level 3 or higher
|
||||
if (player.getActiveShappireJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, player.getActiveShappireJewel().getEffectId(), 1, 0, 0), 600);
|
||||
|
@@ -106,7 +106,7 @@ public class SoulShots implements IItemHandler
|
||||
player.sendPacket(SystemMessageId.YOUR_SOULSHOTS_ARE_ENABLED);
|
||||
}
|
||||
|
||||
// Visual effect change if player has equipped Ruby lvl 3 or higher
|
||||
// Visual effect change if player has equipped Ruby level 3 or higher
|
||||
if (player.getActiveRubyJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, player.getActiveRubyJewel().getEffectId(), 1, 0, 0), 600);
|
||||
|
@@ -101,7 +101,7 @@ public class SpiritShot implements IItemHandler
|
||||
player.sendPacket(SystemMessageId.YOUR_SPIRITSHOT_HAS_BEEN_ENABLED);
|
||||
}
|
||||
|
||||
// Visual effect change if player has equipped Sapphire lvl 3 or higher
|
||||
// Visual effect change if player has equipped Sapphire level 3 or higher
|
||||
if (player.getActiveShappireJewel() != null)
|
||||
{
|
||||
Broadcast.toSelfAndKnownPlayersInRadius(player, new MagicSkillUse(player, player, player.getActiveShappireJewel().getEffectId(), 1, 0, 0), 600);
|
||||
|
@@ -51,9 +51,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (activeChar.getLevel() < Config.AUTO_POTION_MIN_LVL)
|
||||
if (activeChar.getLevel() < Config.AUTO_POTION_MIN_LEVEL)
|
||||
{
|
||||
activeChar.sendMessage("You need to be at least " + Config.AUTO_POTION_MIN_LVL + " to use auto potions.");
|
||||
activeChar.sendMessage("You need to be at least " + Config.AUTO_POTION_MIN_LEVEL + " to use auto potions.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -122,7 +122,7 @@ public class Kamaloka extends AbstractInstance
|
||||
* First room information, null if room not spawned.<br>
|
||||
* Skill is casted on the boss when shaman is defeated and mobs respawn stopped<br>
|
||||
* Default: 5699 (decrease pdef)<br>
|
||||
* shaman npcId, minions npcId, skillId, skillLvl
|
||||
* shaman npcId, minions npcId, skillId, skillLevel
|
||||
*/
|
||||
private static final int[][] FIRST_ROOM =
|
||||
{
|
||||
@@ -222,7 +222,7 @@ public class Kamaloka extends AbstractInstance
|
||||
};
|
||||
|
||||
/*
|
||||
* Second room information, null if room not spawned Skill is casted on the boss when all mobs are defeated Default: 5700 (decrease mdef) npcId, skillId, skillLvl
|
||||
* Second room information, null if room not spawned Skill is casted on the boss when all mobs are defeated Default: 5700 (decrease mdef) npcId, skillId, skillLevel
|
||||
*/
|
||||
private static final int[][] SECOND_ROOM =
|
||||
{
|
||||
@@ -293,7 +293,7 @@ public class Kamaloka extends AbstractInstance
|
||||
// skill is casted on the boss when miniboss is defeated
|
||||
// npcId, x, y, z, skill id, skill level
|
||||
/*
|
||||
* Miniboss information, null if miniboss not spawned Skill is casted on the boss when miniboss is defeated Default: 5701 (decrease patk) npcId, x, y, z, skillId, skillLvl
|
||||
* Miniboss information, null if miniboss not spawned Skill is casted on the boss when miniboss is defeated Default: 5701 (decrease patk) npcId, x, y, z, skillId, skillLevel
|
||||
*/
|
||||
private static final int[][] MINIBOSS =
|
||||
{
|
||||
@@ -741,10 +741,10 @@ public class Kamaloka extends AbstractInstance
|
||||
if (world.getParameters().getObject("boss", Npc.class) != null)
|
||||
{
|
||||
final int skillId = FIRST_ROOM[world.getParameters().getInt("index")][2];
|
||||
final int skillLvl = FIRST_ROOM[world.getParameters().getInt("index")][3];
|
||||
if ((skillId != 0) && (skillLvl != 0))
|
||||
final int skillLevel = FIRST_ROOM[world.getParameters().getInt("index")][3];
|
||||
if ((skillId != 0) && (skillLevel != 0))
|
||||
{
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLvl);
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill != null)
|
||||
{
|
||||
skill.applyEffects(world.getParameters().getObject("boss", Npc.class), world.getParameters().getObject("boss", Npc.class));
|
||||
@@ -781,10 +781,10 @@ public class Kamaloka extends AbstractInstance
|
||||
if (world.getParameters().getObject("boss", Npc.class) != null)
|
||||
{
|
||||
final int skillId = SECOND_ROOM[world.getParameters().getInt("index")][1];
|
||||
final int skillLvl = SECOND_ROOM[world.getParameters().getInt("index")][2];
|
||||
if ((skillId != 0) && (skillLvl != 0))
|
||||
final int skillLevel = SECOND_ROOM[world.getParameters().getInt("index")][2];
|
||||
if ((skillId != 0) && (skillLevel != 0))
|
||||
{
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLvl);
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill != null)
|
||||
{
|
||||
skill.applyEffects(world.getParameters().getObject("boss", Npc.class), world.getParameters().getObject("boss", Npc.class));
|
||||
@@ -803,10 +803,10 @@ public class Kamaloka extends AbstractInstance
|
||||
if (world.getParameters().getObject("boss", Npc.class) != null)
|
||||
{
|
||||
final int skillId = MINIBOSS[world.getParameters().getInt("index")][4];
|
||||
final int skillLvl = MINIBOSS[world.getParameters().getInt("index")][5];
|
||||
if ((skillId != 0) && (skillLvl != 0))
|
||||
final int skillLevel = MINIBOSS[world.getParameters().getInt("index")][5];
|
||||
if ((skillId != 0) && (skillLevel != 0))
|
||||
{
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLvl);
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill != null)
|
||||
{
|
||||
skill.applyEffects(world.getParameters().getObject("boss", Npc.class), world.getParameters().getObject("boss", Npc.class));
|
||||
|
@@ -66,8 +66,8 @@ public class PailakaDevilsLegacy extends AbstractInstance
|
||||
private static final int TEMPLATE_ID = 44;
|
||||
private static final int ZONE = 20109;
|
||||
private static final int ZONE_EXIT = 200000;
|
||||
private static final int TIGRESS_LVL1 = 14916;
|
||||
private static final int TIGRESS_LVL2 = 14917;
|
||||
private static final int TIGRESS_LEVEL1 = 14916;
|
||||
private static final int TIGRESS_LEVEL2 = 14917;
|
||||
|
||||
public PailakaDevilsLegacy()
|
||||
{
|
||||
@@ -270,7 +270,7 @@ public class PailakaDevilsLegacy extends AbstractInstance
|
||||
{
|
||||
World.getInstance().forEachVisibleObject(creature, Summon.class, summon ->
|
||||
{
|
||||
if ((summon.getTemplate().getId() == TIGRESS_LVL1) || (summon.getTemplate().getId() == TIGRESS_LVL2))
|
||||
if ((summon.getTemplate().getId() == TIGRESS_LEVEL1) || (summon.getTemplate().getId() == TIGRESS_LEVEL2))
|
||||
{
|
||||
summon.unSummon(((PlayerInstance) creature));
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public class Q00031_SecretBuriedInTheSwamp extends Quest
|
||||
// Items
|
||||
private static final int KRORINS_JOURNAL = 7252;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 66;
|
||||
private static final int MIN_LEVEL = 66;
|
||||
// Monuments
|
||||
private static final List<Integer> MONUMENTS = Arrays.asList(FORGOTTEN_MONUMENT_1, FORGOTTEN_MONUMENT_2, FORGOTTEN_MONUMENT_3, FORGOTTEN_MONUMENT_4);
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Q00031_SecretBuriedInTheSwamp extends Quest
|
||||
addTalkId(ABERCROMBIE, CORPSE_OF_DWARF);
|
||||
addTalkId(MONUMENTS);
|
||||
registerQuestItems(KRORINS_JOURNAL);
|
||||
addCondMinLevel(MIN_LVL, "31555-03.htm");
|
||||
addCondMinLevel(MIN_LEVEL, "31555-03.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -110,7 +110,7 @@ public class Q00031_SecretBuriedInTheSwamp extends Quest
|
||||
if (qs.isCond(7))
|
||||
{
|
||||
giveAdena(player, 343430, true);
|
||||
if (player.getLevel() >= MIN_LVL)
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 1_650_970, 396);
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ public class Q00032_AnObviousLie extends Quest
|
||||
private static final ItemHolder THREAD = new ItemHolder(1868, 1000);
|
||||
private static final ItemHolder SUEDE = new ItemHolder(1866, 500);
|
||||
// Misc
|
||||
private static final int MIN_LVL = 45;
|
||||
private static final int MIN_LEVEL = 45;
|
||||
// Reward
|
||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||
static
|
||||
@@ -189,7 +189,7 @@ public class Q00032_AnObviousLie extends Quest
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LVL) ? "30120-01.htm" : "30120-03.htm";
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30120-01.htm" : "30120-03.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
|
@@ -41,7 +41,7 @@ public class Q00042_HelpTheUncle extends Quest
|
||||
private static final int MAP = 7549;
|
||||
private static final int PET_TICKET = 7583;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 25;
|
||||
private static final int MIN_LEVEL = 25;
|
||||
|
||||
public Q00042_HelpTheUncle()
|
||||
{
|
||||
@@ -50,7 +50,7 @@ public class Q00042_HelpTheUncle extends Quest
|
||||
addTalkId(WATERS, SOPHYA);
|
||||
addKillId(MONSTER_EYE_DESTROYER, MONSTER_EYE_GAZER);
|
||||
registerQuestItems(MAP, MAP_PIECE);
|
||||
addCondMinLevel(MIN_LVL, "30828-00a.html");
|
||||
addCondMinLevel(MIN_LEVEL, "30828-00a.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -47,7 +47,7 @@ public class Q00043_HelpTheSister extends Quest
|
||||
private static final int MAP = 7551;
|
||||
private static final int PET_TICKET = 7584;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 26;
|
||||
private static final int MIN_LEVEL = 26;
|
||||
|
||||
public Q00043_HelpTheSister()
|
||||
{
|
||||
@@ -56,7 +56,7 @@ public class Q00043_HelpTheSister extends Quest
|
||||
addTalkId(COOPER, GALLADUCCI);
|
||||
addKillId(DION_GRIZZLY, HOBGOBLIN, DIRE_WOLF, OL_MAHUM_RANGER, MONSTER_EYE_SEARCHER, MONSTER_EYE_GAZER, ENKU_ORC_HERO, ENKU_ORC_SHAMAN);
|
||||
registerQuestItems(MAP, MAP_PIECE);
|
||||
addCondMinLevel(MIN_LVL, "30829-00a.html");
|
||||
addCondMinLevel(MIN_LEVEL, "30829-00a.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -42,7 +42,7 @@ public class Q00044_HelpTheSon extends Quest
|
||||
private static final int GEMSTONE = 7553;
|
||||
private static final int PET_TICKET = 7585;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 24;
|
||||
private static final int MIN_LEVEL = 24;
|
||||
|
||||
public Q00044_HelpTheSon()
|
||||
{
|
||||
@@ -51,7 +51,7 @@ public class Q00044_HelpTheSon extends Quest
|
||||
addTalkId(LUNDY, DRIKUS);
|
||||
addKillId(MAILLE_GUARD, MAILLE_LIZARDMAN, MAILLE_SCOUT);
|
||||
registerQuestItems(GEMSTONE, GEMSTONE_FRAGMENT);
|
||||
addCondMinLevel(MIN_LVL, "30827-00a.html");
|
||||
addCondMinLevel(MIN_LEVEL, "30827-00a.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -73,8 +73,8 @@ public class Q00344_1000YearsTheEndOfLamentation extends Quest
|
||||
private static final ItemHolder SCROLL_EAC = new ItemHolder(952, 5);
|
||||
private static final ItemHolder DRAKE_LEATHER_BOOTS = new ItemHolder(2437, 1);
|
||||
// Misc
|
||||
private static final int MIN_LVL = 48;
|
||||
private static final int MAX_LVL = 55;
|
||||
private static final int MIN_LEVEL = 48;
|
||||
private static final int MAX_LEVEL = 55;
|
||||
|
||||
public Q00344_1000YearsTheEndOfLamentation()
|
||||
{
|
||||
@@ -82,7 +82,7 @@ public class Q00344_1000YearsTheEndOfLamentation extends Quest
|
||||
addStartNpc(GILMORE);
|
||||
addTalkId(KAIEN, GARVARENTZ, GILMORE, RODEMAI, ORVEN);
|
||||
addKillId(MONSTER_CHANCES.keySet());
|
||||
addCondLevel(MIN_LVL, MAX_LVL, "nolevel.html");
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
|
||||
registerQuestItems(ARTICLES, OLD_KEY.getId(), OLD_HILT.getId(), TOTEM_NECKLACE.getId(), CRUCIFIX.getId());
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class Q00344_1000YearsTheEndOfLamentation extends Quest
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = ((talker.getLevel() >= MIN_LVL) && (talker.getLevel() <= MAX_LVL)) ? "30754-02.htm" : "30754-01.htm";
|
||||
htmltext = ((talker.getLevel() >= MIN_LEVEL) && (talker.getLevel() <= MAX_LEVEL)) ? "30754-02.htm" : "30754-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
|
@@ -114,7 +114,7 @@ public class Q00420_LittleWing extends Quest
|
||||
EGG_DROPS.put(LETO_WARRIOR, EXARION_EGG);
|
||||
}
|
||||
// Misc
|
||||
private static final int MIN_LVL = 35;
|
||||
private static final int MIN_LEVEL = 35;
|
||||
|
||||
public Q00420_LittleWing()
|
||||
{
|
||||
@@ -437,7 +437,7 @@ public class Q00420_LittleWing extends Quest
|
||||
{
|
||||
if (npc.getId() == COOPER)
|
||||
{
|
||||
htmltext = (talker.getLevel() >= MIN_LVL) ? "30829-01.htm" : "30829-03.html";
|
||||
htmltext = (talker.getLevel() >= MIN_LEVEL) ? "30829-01.htm" : "30829-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@@ -63,8 +63,8 @@ public class Q00421_LittleWingsBigAdventure extends Quest
|
||||
private static final int DRAGON_BUGLE_OF_STAR = 4423;
|
||||
private static final int DRAGON_BUGLE_OF_TWILIGHT = 4424;
|
||||
// Misc
|
||||
private static final int MIN_PLAYER_LVL = 45;
|
||||
private static final int MIN_HACHLING_LVL = 55;
|
||||
private static final int MIN_PLAYER_LEVEL = 45;
|
||||
private static final int MIN_HACHLING_LEVEL = 55;
|
||||
private static final Map<Integer, NpcData> NPC_DATA = new HashMap<>();
|
||||
|
||||
static
|
||||
@@ -104,7 +104,7 @@ public class Q00421_LittleWingsBigAdventure extends Quest
|
||||
if (getQuestItemsCount(player, DRAGONFLUTE_OF_WIND, DRAGONFLUTE_OF_STAR, DRAGONFLUTE_OF_TWILIGHT) == 1)
|
||||
{
|
||||
final ItemInstance flute = getFlute(player);
|
||||
if (flute.getEnchantLevel() < MIN_HACHLING_LVL)
|
||||
if (flute.getEnchantLevel() < MIN_HACHLING_LEVEL)
|
||||
{
|
||||
htmltext = "30610-06.html";
|
||||
}
|
||||
@@ -200,7 +200,7 @@ public class Q00421_LittleWingsBigAdventure extends Quest
|
||||
break; // this quest does not show up if no flute in inventory
|
||||
}
|
||||
|
||||
if (talker.getLevel() < MIN_PLAYER_LVL)
|
||||
if (talker.getLevel() < MIN_PLAYER_LEVEL)
|
||||
{
|
||||
htmltext = "30610-01.htm";
|
||||
}
|
||||
@@ -208,7 +208,7 @@ public class Q00421_LittleWingsBigAdventure extends Quest
|
||||
{
|
||||
htmltext = "30610-02.htm";
|
||||
}
|
||||
else if (getFlute(talker).getEnchantLevel() < MIN_HACHLING_LVL)
|
||||
else if (getFlute(talker).getEnchantLevel() < MIN_HACHLING_LEVEL)
|
||||
{
|
||||
htmltext = "30610-03.html";
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ public class Q00621_EggDelivery extends Quest
|
||||
private static final int BOILED_EGG = 7195;
|
||||
private static final int EGG_PRICE = 7196;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 68;
|
||||
private static final int MIN_LEVEL = 68;
|
||||
// Reward
|
||||
private static final int QUICK_STEP_POTION = 734;
|
||||
private static final int SEALED_RING_OF_AURAKYRA = 6849;
|
||||
@@ -182,7 +182,7 @@ public class Q00621_EggDelivery extends Quest
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (talker.getLevel() >= MIN_LVL) ? "31521-01.htm" : "31521-02.htm";
|
||||
htmltext = (talker.getLevel() >= MIN_LEVEL) ? "31521-01.htm" : "31521-02.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
|
@@ -48,7 +48,7 @@ public class Q00622_SpecialtyLiquorDelivery extends Quest
|
||||
private static final int SEALED_SANDDRAGONS_EARING = 6847;
|
||||
private static final int SEALED_DRAGON_NECKLACE = 6851;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 68;
|
||||
private static final int MIN_LEVEL = 68;
|
||||
// Talkers
|
||||
private static final List<Integer> TALKERS = Arrays.asList(KUBER, CROCUS, NAFF, PULIN);
|
||||
|
||||
@@ -182,7 +182,7 @@ public class Q00622_SpecialtyLiquorDelivery extends Quest
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (talker.getLevel() >= MIN_LVL) ? "31521-01.htm" : "31521-02.htm";
|
||||
htmltext = (talker.getLevel() >= MIN_LEVEL) ? "31521-01.htm" : "31521-02.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
|
@@ -46,7 +46,7 @@ public class Q00623_TheFinestFood extends Quest
|
||||
private static final ItemHolder SEALED_SANDDRAGONS_EARING = new ItemHolder(6847, 1);
|
||||
private static final ItemHolder DRAGON_NECKLACE = new ItemHolder(6851, 1);
|
||||
// Misc
|
||||
private static final int MIN_LVL = 71;
|
||||
private static final int MIN_LEVEL = 71;
|
||||
|
||||
private static final Map<Integer, ItemHolder> MONSTER_DROPS = new HashMap<>();
|
||||
static
|
||||
@@ -137,7 +137,7 @@ public class Q00623_TheFinestFood extends Quest
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = (talker.getLevel() >= MIN_LVL) ? "31521-01.htm" : "31521-02.htm";
|
||||
htmltext = (talker.getLevel() >= MIN_LEVEL) ? "31521-01.htm" : "31521-02.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
|
@@ -63,7 +63,7 @@ public class Q00648_AnIceMerchantsDream extends Quest
|
||||
private static final int SILVER_ICE_CRYSTAL = 8077;
|
||||
private static final int BLACK_ICE_CRYSTAL = 8078;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 53;
|
||||
private static final int MIN_LEVEL = 53;
|
||||
// Monsters
|
||||
private static final Map<Integer, DropInfo> MONSTERS = new HashMap<>();
|
||||
static
|
||||
@@ -313,7 +313,7 @@ public class Q00648_AnIceMerchantsDream extends Quest
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
if (player.getLevel() < MIN_LVL)
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "32020-01.htm";
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ public class Q00902_ReclaimOurEra extends Quest
|
||||
// Npc
|
||||
private static final int MATHIAS = 31340;
|
||||
// Misc
|
||||
private static final int MIN_LVL = 80;
|
||||
private static final int MIN_LEVEL = 80;
|
||||
// Items
|
||||
private static final int SHATTERED_BONES = 21997;
|
||||
private static final int CANNIBALISTIC_STAKATO_LDR_CLAW = 21998;
|
||||
@@ -62,7 +62,7 @@ public class Q00902_ReclaimOurEra extends Quest
|
||||
addStartNpc(MATHIAS);
|
||||
addTalkId(MATHIAS);
|
||||
addKillId(MONSTER_DROPS.keySet());
|
||||
addCondMinLevel(MIN_LVL, getNoQuestMsg(null));
|
||||
addCondMinLevel(MIN_LEVEL, getNoQuestMsg(null));
|
||||
registerQuestItems(SHATTERED_BONES, CANNIBALISTIC_STAKATO_LDR_CLAW, ANAIS_SCROLL);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ public class Q00902_ReclaimOurEra extends Quest
|
||||
}
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (player.getLevel() >= MIN_LVL) ? "31340-01.htm" : "31340-03.htm";
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "31340-01.htm" : "31340-03.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
|
Reference in New Issue
Block a user