Faction balance online players.
This commit is contained in:
@@ -132,6 +132,11 @@ public abstract class AbstractHtmlPacket extends L2GameServerPacket
|
||||
public final void runImpl()
|
||||
{
|
||||
L2PcInstance player = getClient().getActiveChar();
|
||||
if (player == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
player.clearHtmlActions(getScope());
|
||||
|
||||
if (_disabledValidation)
|
||||
|
@@ -307,6 +307,16 @@ public class CharSelectionInfo extends L2GameServerPacket
|
||||
charInfopackage.setY(chardata.getInt("y"));
|
||||
charInfopackage.setZ(chardata.getInt("z"));
|
||||
|
||||
final int faction = chardata.getInt("faction");
|
||||
if (faction == 1)
|
||||
{
|
||||
charInfopackage.setGood();
|
||||
}
|
||||
if (faction == 2)
|
||||
{
|
||||
charInfopackage.setEvil();
|
||||
}
|
||||
|
||||
if (Config.L2JMOD_MULTILANG_ENABLE)
|
||||
{
|
||||
String lang = chardata.getString("language");
|
||||
|
Reference in New Issue
Block a user