Jump to content

GM Yellow(Battlefield) Announcements.


Recommended Posts

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

Link to comment
Share on other sites

  • 5 weeks later...

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