Faction chat system.

This commit is contained in:
mobius
2015-01-14 11:51:44 +00:00
parent 89f53b2c3d
commit 5395d59c41
11 changed files with 234 additions and 11 deletions

View File

@@ -58,7 +58,24 @@ public class ChatPartyMatchRoom implements IChatHandler
CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text);
for (L2PcInstance _member : _room.getPartyMembers())
{
_member.sendPacket(cs);
if (Config.FACTION_SYSTEM_ENABLED)
{
if (Config.FACTION_SPECIFIC_CHAT)
{
if ((activeChar.isGood() && _member.isGood()) || (activeChar.isEvil() && _member.isEvil()))
{
_member.sendPacket(cs);
}
}
else
{
_member.sendPacket(cs);
}
}
else
{
_member.sendPacket(cs);
}
}
}
}