Faction auto nobless.

This commit is contained in:
mobius
2015-01-15 02:18:20 +00:00
parent 01bb57d197
commit 6528b7daff
3 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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);