Faction auto nobless.
This commit is contained in:
parent
01bb57d197
commit
6528b7daff
4
trunk/dist/game/config/Custom.properties
vendored
4
trunk/dist/game/config/Custom.properties
vendored
@ -667,6 +667,10 @@ EnableFactionGuards = True
|
||||
# Default: True
|
||||
RespawnAtFactionBase = True
|
||||
|
||||
# Upon selecting faction, players become nobless.
|
||||
# Default: False
|
||||
FactionAutoNobless = False
|
||||
|
||||
# Disallow chat between factions.
|
||||
# Default: True
|
||||
EnableFactionChat = True
|
||||
|
@ -74,6 +74,10 @@ public class FactionManager extends AbstractNpcAI
|
||||
player.sendPacket(packet);
|
||||
return htmltext;
|
||||
}
|
||||
if (Config.FACTION_AUTO_NOBLESS)
|
||||
{
|
||||
player.setNoble(true);
|
||||
}
|
||||
player.setGood();
|
||||
player.getAppearance().setNameColor(Config.FACTION_GOOD_NAME_COLOR);
|
||||
player.getAppearance().setTitleColor(Config.FACTION_GOOD_NAME_COLOR);
|
||||
@ -97,6 +101,10 @@ public class FactionManager extends AbstractNpcAI
|
||||
player.sendPacket(packet);
|
||||
return htmltext;
|
||||
}
|
||||
if (Config.FACTION_AUTO_NOBLESS)
|
||||
{
|
||||
player.setNoble(true);
|
||||
}
|
||||
player.setEvil();
|
||||
player.getAppearance().setNameColor(Config.FACTION_EVIL_NAME_COLOR);
|
||||
player.getAppearance().setTitleColor(Config.FACTION_EVIL_NAME_COLOR);
|
||||
|
@ -833,6 +833,7 @@ public final class Config
|
||||
public static int FACTION_EVIL_NAME_COLOR;
|
||||
public static boolean FACTION_GUARDS_ENABLED;
|
||||
public static boolean FACTION_RESPAWN_AT_BASE;
|
||||
public static boolean FACTION_AUTO_NOBLESS;
|
||||
public static boolean FACTION_SPECIFIC_CHAT;
|
||||
public static boolean FACTION_BALANCE_ONLINE_PLAYERS;
|
||||
public static int FACTION_BALANCE_PLAYER_EXCEED_LIMIT;
|
||||
@ -2657,6 +2658,7 @@ public final class Config
|
||||
FACTION_EVIL_NAME_COLOR = Integer.decode("0x" + CustomSettings.getString("EvilNameColor", "0000FF"));
|
||||
FACTION_GUARDS_ENABLED = CustomSettings.getBoolean("EnableFactionGuards", true);
|
||||
FACTION_RESPAWN_AT_BASE = CustomSettings.getBoolean("RespawnAtFactionBase", true);
|
||||
FACTION_AUTO_NOBLESS = CustomSettings.getBoolean("FactionAutoNobless", false);
|
||||
FACTION_SPECIFIC_CHAT = CustomSettings.getBoolean("EnableFactionChat", true);
|
||||
FACTION_BALANCE_ONLINE_PLAYERS = CustomSettings.getBoolean("BalanceOnlinePlayers", true);
|
||||
FACTION_BALANCE_PLAYER_EXCEED_LIMIT = CustomSettings.getInt("BalancePlayerExceedLimit", 20);
|
||||
|
Loading…
Reference in New Issue
Block a user