Skip to content

Announcement color change

Featured Replies

 

I would like to know how to change the color of announcements? checked client and also java but till 2 days i've got nothing usefull. would be nice if somebody could give me a tip

First, you're in wrong section.

 

Two, use 'Search' button.

  • Author

First, you're in wrong section.

 

Two, use 'Search' button.

 

Don't replay with such useless comments.

Test for this man  RED  ;)

 

 

Index: trunk/Core/java/com/l2jserver/gameserver/Announcements.java
===================================================================
--- a/trunk/Core/java/com/l2jserver/gameserver/Announcements.java
+++ b/trunk/Core/java/com/l2jserver/gameserver/Announcements.java
@@ -234,4 +234,9 @@
         }
         
+        public void announceVote(String text)
+        {
+                Broadcast.announceVote(text);
+        }
+        
         public void announceToInstance(SystemMessage sm, int instanceId)
         {

 

Index: trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
===================================================================
--- a/trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
+++ b/trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
@@ -247,3 +247,10 @@
                 }
         }
+        
+        public static void announceVote(String text)
+        {
+                CreatureSay cs = new CreatureSay(0, Say2.SHOUT, "Vote System", text);
+                toAllOnlinePlayers(cs);
+        }
+        
}

Test for this man  RED  ;)

 

 

Index: trunk/Core/java/com/l2jserver/gameserver/Announcements.java
===================================================================
--- a/trunk/Core/java/com/l2jserver/gameserver/Announcements.java
+++ b/trunk/Core/java/com/l2jserver/gameserver/Announcements.java
@@ -234,4 +234,9 @@
         }
         
+        public void announceVote(String text)
+        {
+                Broadcast.announceVote(text);
+        }
+        
         public void announceToInstance(SystemMessage sm, int instanceId)
         {

 

Index: trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
===================================================================
--- a/trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
+++ b/trunk/Core/java/com/l2jserver/gameserver/util/Broadcast.java
@@ -247,3 +247,10 @@
                 }
         }
+        
+        public static void announceVote(String text)
+        {
+                CreatureSay cs = new CreatureSay(0, Say2.SHOUT, "Vote System", text);
+                toAllOnlinePlayers(cs);
+        }
+        
}

did you have something else with out java? :S

 

Read the rules, this isn't the right section, also learn some manners.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.