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

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