Addition of friendly command channel configuration.

This commit is contained in:
MobiusDevelopment 2020-04-30 21:46:27 +00:00
parent d6c62b24af
commit de8e676534
90 changed files with 810 additions and 0 deletions

View File

@ -640,6 +640,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -264,6 +264,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1811,6 +1812,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -640,6 +640,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -50,6 +52,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -48,6 +50,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -59,6 +61,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -59,6 +61,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -270,6 +270,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1827,6 +1828,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -640,6 +640,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -50,6 +52,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -48,6 +50,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -59,6 +61,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -59,6 +61,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -270,6 +270,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1840,6 +1841,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -616,6 +616,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -264,6 +264,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1821,6 +1822,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -616,6 +616,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -271,6 +271,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1822,6 +1823,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -616,6 +616,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -271,6 +271,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1829,6 +1830,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -636,6 +636,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -272,6 +272,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1868,6 +1869,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -646,6 +646,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -273,6 +273,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1880,6 +1881,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -557,6 +557,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -269,6 +269,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1735,6 +1736,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -557,6 +557,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -269,6 +269,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1739,6 +1740,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -557,6 +557,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -269,6 +269,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1739,6 +1740,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -557,6 +557,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -269,6 +269,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1740,6 +1741,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -573,6 +573,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -269,6 +269,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1749,6 +1750,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -573,6 +573,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -270,6 +270,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1756,6 +1757,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);

View File

@ -557,6 +557,10 @@ AltPartyRange = 1500
# Default: False
AltLeavePartyLeader = False
# Consider same command channel members friends. (Used by target handlers.)
# Retail is supposed to be false, but have no proof that it is like that.
AltCommandChannelFriends = False
# ---------------------------------------------------------------------------
# Initial Settings:

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -49,6 +51,16 @@ public class Friend implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -47,6 +49,16 @@ public class FriendPc implements IAffectObjectHandler
return true;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return true;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -16,7 +16,9 @@
*/
package handlers.targethandlers.affectobject;
import org.l2jmobius.Config;
import org.l2jmobius.gameserver.handler.IAffectObjectHandler;
import org.l2jmobius.gameserver.model.CommandChannel;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@ -58,6 +60,16 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
if (Config.ALT_COMMAND_CHANNEL_FRIENDS)
{
final CommandChannel playerCC = player.getCommandChannel();
final CommandChannel targetCC = targetPlayer.getCommandChannel();
if ((playerCC != null) && (targetCC != null) && (playerCC.getLeaderObjectId() == targetCC.getLeaderObjectId()))
{
return false;
}
}
// Party (command channel doesn't make you friends).
final Party party = player.getParty();
final Party targetParty = targetPlayer.getParty();

View File

@ -270,6 +270,7 @@ public class Config
public static int ALT_PARTY_MAX_MEMBERS;
public static int ALT_PARTY_RANGE;
public static boolean ALT_LEAVE_PARTY_LEADER;
public static boolean ALT_COMMAND_CHANNEL_FRIENDS;
public static boolean INITIAL_EQUIPMENT_EVENT;
public static long STARTING_ADENA;
public static byte STARTING_LEVEL;
@ -1753,6 +1754,7 @@ public class Config
ALT_PARTY_MAX_MEMBERS = Character.getInt("AltPartyMaxMembers", 7);
ALT_PARTY_RANGE = Character.getInt("AltPartyRange", 1500);
ALT_LEAVE_PARTY_LEADER = Character.getBoolean("AltLeavePartyLeader", false);
ALT_COMMAND_CHANNEL_FRIENDS = Character.getBoolean("AltCommandChannelFriends", false);
INITIAL_EQUIPMENT_EVENT = Character.getBoolean("InitialEquipmentEvent", false);
STARTING_ADENA = Character.getLong("StartingAdena", 0);
STARTING_LEVEL = Character.getByte("StartingLevel", (byte) 1);