Jump to content

Recommended Posts

Posted

so  i explain the code if you are dead you cant talk you can disable with little config or enable it

 

L2J-Nova_GameServer/dist/game/config/L2JMods.properties
+#-----------------------
+#Dead Character Chat Protection(by Rayleigh)
+#if you turn false this protection is disable
+#if you turn True this protection is Enable
+#-----------------------
+# False = Disable / True = Enable
+ChatDeadProtection = False

L2J-Nova_GameServer/java/com/l2jserver/gameserver/network/clientpackets/say2.java

if (activeChar.isChatBanned() && (_text.charAt(0) != '.'))
	{
		for (int chatId : Config.BAN_CHAT_CHANNELS)
		{
			if (_type == chatId)
			{
				activeChar.sendPacket(SystemMessageId.CHATTING_IS_CURRENTLY_PROHIBITED);
				return;
			}
		}

		+if (Config.CHAR_IS_DEAD && activeChar.isDead())
		+{
		+	activeChar.sendMessage("You cant talk while you are dead");
		+	return;
		+}


L2J-Nova_GameServer/java/com/l2jserver/Config.java
        public static boolean L2JMOD_ALLOW_CHANGE_PASSWORD;
public static boolean ANNOUNCE_HERO_LOGIN = false;
+public static boolean CHAR_IS_DEAD = false;


         L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.parseBoolean(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
		ANNOUNCE_HERO_LOGIN = Boolean.parseBoolean(L2JModSettings.getProperty("AnnounceHeroLogin", "False"));
		+CHAR_IS_DEAD = Boolean.parseBoolean(L2JModSettings.getProperty("ChatDeadProtection", "False"));      

 

Credits: Rayleigh

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