Addition of ChampionAura configuration.
Contributed by junin00.
This commit is contained in:
parent
16d6cd367f
commit
fe8c34b0d6
@ -46,4 +46,9 @@ ChampionRewardItemID = 6393
|
||||
ChampionRewardItemQty = 1
|
||||
|
||||
# Custom title for champion monsters.
|
||||
ChampionTitle = Champion
|
||||
ChampionTitle = Champion
|
||||
|
||||
# Enable aura for champion monsters.
|
||||
# 0 - no aura / 1 - blue aura / 2 - red aura
|
||||
# Default = 2
|
||||
ChampionAura = 2
|
||||
|
@ -454,6 +454,7 @@ public class Config
|
||||
public static int CHAMPION_REWARD_ID;
|
||||
public static int CHAMPION_REWARD_QTY;
|
||||
public static String CHAMP_TITLE;
|
||||
public static int CHAMPION_AURA;
|
||||
|
||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||
@ -1624,6 +1625,11 @@ public class Config
|
||||
CHAMPION_REWARD_ID = championConfig.getInt("ChampionRewardItemID", 6393);
|
||||
CHAMPION_REWARD_QTY = championConfig.getInt("ChampionRewardItemQty", 1);
|
||||
CHAMP_TITLE = championConfig.getString("ChampionTitle", "Champion");
|
||||
CHAMPION_AURA = championConfig.getInt("ChampionAura", 0);
|
||||
if ((CHAMPION_AURA < 0) || (CHAMPION_AURA > 2))
|
||||
{
|
||||
CHAMPION_AURA = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static void loadCustomMailManagerConfig()
|
||||
|
@ -266,7 +266,15 @@ public class NpcInfo extends GameServerPacket
|
||||
writeD(_allyCrest); // C2
|
||||
writeC(0x00); // C2
|
||||
|
||||
writeC(0x00); // C3 team circle 1-blue, 2-red
|
||||
if (Config.CHAMPION_ENABLE)
|
||||
{
|
||||
writeC(_creature.isChampion() ? Config.CHAMPION_AURA : 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
writeC(0x00); // C3 team circle 1-blue, 2-red
|
||||
}
|
||||
|
||||
writeF(_collisionRadius);
|
||||
writeF(_collisionHeight);
|
||||
writeD(0x00); // C4
|
||||
|
@ -46,4 +46,9 @@ ChampionRewardItemID = 6393
|
||||
ChampionRewardItemQty = 1
|
||||
|
||||
# Custom title for champion monsters.
|
||||
ChampionTitle = Champion
|
||||
ChampionTitle = Champion
|
||||
|
||||
# Enable aura for champion monsters.
|
||||
# 0 - no aura / 1 - blue aura / 2 - red aura
|
||||
# Default = 2
|
||||
ChampionAura = 2
|
||||
|
@ -473,6 +473,7 @@ public class Config
|
||||
public static int CHAMPION_REWARD_ID;
|
||||
public static int CHAMPION_REWARD_QTY;
|
||||
public static String CHAMP_TITLE;
|
||||
public static int CHAMPION_AURA;
|
||||
|
||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||
@ -1674,6 +1675,11 @@ public class Config
|
||||
CHAMPION_REWARD_ID = championConfig.getInt("ChampionRewardItemID", 6393);
|
||||
CHAMPION_REWARD_QTY = championConfig.getInt("ChampionRewardItemQty", 1);
|
||||
CHAMP_TITLE = championConfig.getString("ChampionTitle", "Champion");
|
||||
CHAMPION_AURA = championConfig.getInt("ChampionAura", 0);
|
||||
if ((CHAMPION_AURA < 0) || (CHAMPION_AURA > 2))
|
||||
{
|
||||
CHAMPION_AURA = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static void loadCustomMailManagerConfig()
|
||||
|
@ -266,7 +266,15 @@ public class NpcInfo extends GameServerPacket
|
||||
writeD(_allyCrest); // C2
|
||||
writeC(0x00); // C2
|
||||
|
||||
writeC(0x00); // C3 team circle 1-blue, 2-red
|
||||
if (Config.CHAMPION_ENABLE)
|
||||
{
|
||||
writeC(_creature.isChampion() ? Config.CHAMPION_AURA : 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
writeC(0x00); // C3 team circle 1-blue, 2-red
|
||||
}
|
||||
|
||||
writeF(_collisionRadius);
|
||||
writeF(_collisionHeight);
|
||||
writeD(0x00); // C4
|
||||
|
Loading…
Reference in New Issue
Block a user