Jump to content

[Share] Announce Noblesse Characters Login [H5]


Roronoa

Recommended Posts

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,10 @@
			activeChar.setIsDead(true);
		}

+		if (Config.ANNOUNCE_NOBLESSE_LOGIN && activeChar.isNoble())
+		{
+			Announcements.getInstance().announceToAll("Noblesse: " + activeChar.getName() + " 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,10 @@

# 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
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java	(revision 5689)
+++ java/com/l2jserver/Config.java	(working copy)
@@ -777,6 +777,7 @@
	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;

	// --------------------------------------------------
	// NPC Settings
@@ -2378,7 +2379,7 @@

			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"));
+
			if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
			{
				TVT_EVENT_ENABLED = false;

 

Credits:Rayleigh

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...