Jump to content

Recommended Posts

Posted
### Eclipse Workspace Patch 1.0
#P L2J-Nova_GameServer
Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java	(revision 5689)
+++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -226,6 +226,16 @@
			activeChar.setIsDead(true);
		}

	if (Config.ANNOUNCE_NOBLESSE_LOGIN && activeChar.isNoble())
	{
		Announcements.getInstance().announceToAll("Noblesse: " + activeChar.getName() + " is now online!");
                }
+		
+		if (Config.ANNOUNCE_HERO_LOGIN && activeChar.isHero())
+		{
+			Announcements.getInstance().announceToAll("Hero: " + activeChar.getName() + "Class: " + activeChar.getClassId() + " is now online!");
+		}
+		
		boolean showClanNotice = false;

		// Clan related checks are here
Index: dist/game/config/L2JMods.properties
===================================================================
--- dist/game/config/L2JMods.properties	(revision 5689)
+++ dist/game/config/L2JMods.properties	(working copy)
@@ -479,4 +479,17 @@

# Enables .changepassword voiced command which allows the players to change their account's password ingame.
# Default: False
-AllowChangePassword = False
\ No newline at end of file
AllowChangePassword = False

#-----------------------
#Noblesse Announce Login
#-----------------------
# False = Disable / True = Enable
AnnounceNoblesseLogin = False

+#-----------------------
+#Hero / Class Announce Login
+#-----------------------
+# False = Disable / True = Enable
+AnnounceHeroLogin = False
+
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java	(revision 5689)
+++ java/com/l2jserver/Config.java	(working copy)
@@ -777,6 +777,8 @@
	public static int L2JMOD_DUALBOX_CHECK_MAX_L2EVENT_PARTICIPANTS_PER_IP;
	public static Map<Integer, Integer> L2JMOD_DUALBOX_CHECK_WHITELIST;
	public static boolean L2JMOD_ALLOW_CHANGE_PASSWORD;
public static boolean ANNOUNCE_NOBLESSE_LOGIN = false;
+	public static boolean ANNOUNCE_HERO_LOGIN = false;

	// --------------------------------------------------
	// NPC Settings
@@ -2378,6 +2380,8 @@

			L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.parseBoolean(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
			L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.parseBoolean(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
		ANNOUNCE_NOBLESSE_LOGIN = Boolean.parseBoolean(L2JModSettings.getProperty("AnnounceNoblesseLogin", "False"));
+			ANNOUNCE_HERO_LOGIN = Boolean.parseBoolean(L2JModSettings.getProperty("AnnounceHeroLogin", "False"));

			if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
			{

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock