Jump to content

Recommended Posts

Posted

Hello there, with this, Gm is able to speak like that to all players with yellow chat. It is just one simple code for people who like this chat (me).

 

shot00000o.png

 

Here is the code:

 

Index: L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers
===================================================================
--- L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminAmin.java
+++ L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminAmin.java
@@  +90,6 @@
                "admin_setconfig",
+		"admin_msgall",
	"admin_config_server"

@@ +104,42  @@
                else if (command.equals("admin_config_server"))
	{
		showConfigPage(activeChar);
	}
+		 else if (command.startsWith("admin_msgall"))
+			{
+				try
+				{
+					String val = command.substring(13);
+					Broadcast.toAllOnlinePlayers(new CreatureSay(0, Say2.BATTLEFIELD, activeChar.getName() , val));
+				}
+				catch (Exception e)
+				{
+					activeChar.sendMessage("Something went wrong");
+				}
+			}
	else if (command.startsWith("admin_gmliston"))
	{
		GmListTable.getInstance().showGm(activeChar);

 

SQL Query:

INSERT INTO `admin_command_access_rights` VALUES ('admin_msgall', '1', 'false');

 

 

Credits: Me

Posted

I think no since this yellow chat is used on Territory wars. So, acis is interlude where there are not any territory wars...anyway i am not 100% sure

  • 5 weeks later...

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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