Jump to content

Recommended Posts

Posted

lipon ... exo kani merikes alages! gia to GMCHAT

 

1. to vlepoun oli

2. alagi chanel (Criticall_Announce - ID =18)  ara alo xroma :P ( Einai Blue  - Look Image)

 

tha borousate kalista na pite giati den alakses tin id se afto to komati:

CreatureSay cs = new CreatureSay(0, 18, activeChar.getName(), text);

 

lipon, me to sigikrimeno CHANEL me tin alagi mono tou ID den emfanizi to onoma tou apostolea! .... mono to mimima :)

 

Den einai tipota tromero, ena minishare einai.... den ixa skopo na to kano share :P ala ena filaraki to ide se enan server kai to thele poli afto :P

pistevo einai poli afti p theloun afto to pragma... exei kai oreo xroma :P

 

SS

i441003_icon.bmp

 

PATCH

 

Index: java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGmChat.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGmChat.java	(revision 2751)
+++ java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGmChat.java	(working copy)
@@ -14,9 +14,12 @@
  */
package net.sf.l2j.gameserver.handler.admincommandhandlers;

+import java.util.Collection;

import net.sf.l2j.gameserver.GmListTable;
import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
import net.sf.l2j.gameserver.model.L2Object;
+import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.CreatureSay;
@@ -91,9 +94,22 @@
				offset = 17;
			else
				offset = 13;
-			text = command.substring(offset);
-			CreatureSay cs = new CreatureSay(0, 9, activeChar.getName(), text);
-			GmListTable.broadcastToGMs(cs);
+			text = activeChar.getName() + ": " + command.substring(offset);
+			
+			//This is a default code, can't be used in Critical_Announce Channel because don't print Name
+			/** text = command.substring(offset); **/ 
+			
+			CreatureSay cs = new CreatureSay(0, 18, activeChar.getName(), text); 
+			
+			Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
+			{
+				for (L2PcInstance player : pls)
+				{
+					player.sendPacket(cs);
+					//GmListTable.broadcastToGMs(cs);
+				}
+			}
+			
		}
		catch (StringIndexOutOfBoundsException e)
		{

Posted

EliasFTW

 

min berdevese, den einai to Announcementes Chanel

 

Announcementes - 10 ID CHANEL

Critical_Announcementes - 18 ID CHANEL

 

sta announces nai :P

 

anyway afta boris na ta alaksis kai monos sou .... an thes na grafi Announcementes: Message kane afto

 

text = "Announcementes: " + command.substring(offset);

 

i an thes na grafi mono to minima .. oute name brosta oute announcement tote poli apla alakse tin id edw

CreatureSay cs = new CreatureSay(0, 18, activeChar.getName(), text); 

kai ase ton kodika opos einai... to arxiko!

 

 

 

olataolata

 

oxi, gti ston c6 den eiparxi afto to CHANEL

 

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