Always use static modifier when adding values to static lists and maps.
This commit is contained in:
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class Q10790_AMercenaryHelper extends Quest
|
|||||||
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
|
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
|
||||||
private static final int NEEDLE_STAKATO_DRONE = 21516;
|
private static final int NEEDLE_STAKATO_DRONE = 21516;
|
||||||
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
|
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
|
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class Q10790_AMercenaryHelper extends Quest
|
|||||||
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
|
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
|
||||||
private static final int NEEDLE_STAKATO_DRONE = 21516;
|
private static final int NEEDLE_STAKATO_DRONE = 21516;
|
||||||
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
|
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
|
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
// Misc
|
// Misc
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
||||||
@@ -89,6 +90,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
||||||
@@ -102,6 +104,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
||||||
@@ -115,6 +118,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
// Misc
|
// Misc
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
||||||
@@ -89,6 +90,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
||||||
@@ -102,6 +104,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
||||||
@@ -115,6 +118,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
// Misc
|
// Misc
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
||||||
@@ -87,6 +88,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
||||||
@@ -100,6 +102,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
||||||
@@ -113,6 +116,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
// Misc
|
// Misc
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
|
||||||
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
|
||||||
@@ -87,6 +88,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
|
||||||
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
|
||||||
@@ -100,6 +102,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
|
||||||
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
|
||||||
@@ -113,6 +116,7 @@ public class AdventureGuildsman extends AbstractNpcAI
|
|||||||
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
|
||||||
}
|
}
|
||||||
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
|
||||||
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
|
|||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
CLASS_MASTERS.add(31756); // Mr. Cat
|
CLASS_MASTERS.add(31756); // Mr. Cat
|
||||||
CLASS_MASTERS.add(31757); // Queen of Hearts
|
CLASS_MASTERS.add(31757); // Queen of Hearts
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
|||||||
private static final int MANAGER = 31688;
|
private static final int MANAGER = 31688;
|
||||||
// Misc
|
// Misc
|
||||||
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
|
||||||
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
|
|||||||
{
|
{
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
|
||||||
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
|
|||||||
|
|
||||||
// skill data
|
// skill data
|
||||||
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
|
||||||
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
|
|||||||
public class ChangeAttributeCrystal implements IItemHandler
|
public class ChangeAttributeCrystal implements IItemHandler
|
||||||
{
|
{
|
||||||
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ITEM_GRADES.put(33502, ItemGrade.S);
|
ITEM_GRADES.put(33502, ItemGrade.S);
|
||||||
ITEM_GRADES.put(35749, ItemGrade.R);
|
ITEM_GRADES.put(35749, ItemGrade.R);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
|
|||||||
private static final int MIN_LVL = 45;
|
private static final int MIN_LVL = 45;
|
||||||
// Reward
|
// Reward
|
||||||
private static final Map<String, Integer> EARS = new HashMap<>();
|
private static final Map<String, Integer> EARS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EARS.put("cat", 6843); // Cat Ears
|
EARS.put("cat", 6843); // Cat Ears
|
||||||
EARS.put("raccoon", 7680); // Raccoon ears
|
EARS.put("raccoon", 7680); // Raccoon ears
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
|
|||||||
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
|
||||||
// Monsters
|
// Monsters
|
||||||
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
|
||||||
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
|
|||||||
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
|
||||||
// Drake Drops
|
// Drake Drops
|
||||||
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
|
||||||
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
public class MountEnabledSkillList
|
public class MountEnabledSkillList
|
||||||
{
|
{
|
||||||
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
ENABLED_SKILLS.add(4289); // Wyvern Breath
|
||||||
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
ENABLED_SKILLS.add(325); // Strider Siege Assault
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|||||||
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
public class ExChangeAttributeInfo implements IClientOutgoingPacket
|
||||||
{
|
{
|
||||||
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
|
||||||
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public abstract class Operators
|
|||||||
private static final int INDEX_UNARYPLUS = 7;
|
private static final int INDEX_UNARYPLUS = 7;
|
||||||
|
|
||||||
private static final Operator[] builtinOperators = new Operator[8];
|
private static final Operator[] builtinOperators = new Operator[8];
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
|
|||||||
private static final int LEOPARD_DRAGON = 23435;
|
private static final int LEOPARD_DRAGON = 23435;
|
||||||
// Locations
|
// Locations
|
||||||
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
|
||||||
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
|
||||||
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
|
||||||
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
private static final List<PlayerClass> dualClassList = new ArrayList<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
|
||||||
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
|
|||||||
private static final int HEART = 13001; // Heart of Warding
|
private static final int HEART = 13001; // Heart of Warding
|
||||||
private static final int CUBE = 31859; // Teleportation Cubic
|
private static final int CUBE = 31859; // Teleportation Cubic
|
||||||
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
|
||||||
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
|
|||||||
private static final int SUSCEPTOR = 29011;
|
private static final int SUSCEPTOR = 29011;
|
||||||
// Spawns
|
// Spawns
|
||||||
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
|
||||||
|
static
|
||||||
{
|
{
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
|
||||||
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user