Removed known command. Also NPC abnormal broadcast fix.

This commit is contained in:
MobiusDev
2018-09-23 18:50:42 +00:00
parent 94887eab04
commit b87d0427a3
48 changed files with 44 additions and 265 deletions

View File

@@ -918,7 +918,6 @@ public final class Config
// No classification assigned to the following yet
// --------------------------------------------------
public static int MAX_ITEM_IN_PACKET;
public static boolean CHECK_KNOWN;
public static int GAME_SERVER_LOGIN_PORT;
public static String GAME_SERVER_LOGIN_HOST;
public static List<String> GAME_SERVER_SUBNETS;

View File

@@ -293,7 +293,7 @@ public class L2Npc extends L2Character
*/
public boolean hasRandomAnimation()
{
return ((Config.MAX_NPC_ANIMATION > 0) && isRandomAnimationEnabled() && getAiType() != AIType.CORPSE);
return ((Config.MAX_NPC_ANIMATION > 0) && isRandomAnimationEnabled() && (getAiType() != AIType.CORPSE));
}
/**
@@ -1502,11 +1502,6 @@ public class L2Npc extends L2Character
{
if (isVisibleFor(activeChar))
{
if (Config.CHECK_KNOWN && activeChar.isGM())
{
activeChar.sendMessage("Added NPC: " + getName());
}
if (_isFakePlayer)
{
activeChar.sendPacket(new FakePlayerInfo(this));
@@ -1579,7 +1574,7 @@ public class L2Npc extends L2Character
@Override
public boolean isMovementDisabled()
{
return super.isMovementDisabled() || !canMove() || getAiType() == AIType.CORPSE;
return super.isMovementDisabled() || !canMove() || (getAiType() == AIType.CORPSE);
}
public AIType getAiType()