Jump to content

[Share]Announce Character Hero Name & Class Login [H5]


Roronoa

Recommended Posts

### 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)
			{

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...