Skip to content

Custom Announce

Featured Replies

Well ,  i wanna change some autoannouncements like autovotereward auto events e.t.c

I use l2jfrozen and this is what i want

 

now is  like this : http://prntscr.com/5g6b7b

and i would  like  to change to this : http://prntscr.com/5g6bm9

but for votereward and auto events

 

the meaning is to remove "Announcements" and write only VoteReward and CTF for example.

 

Code  now is like this:

 

Announcements.getInstance().gameAnnounceToAll

  • Author

You need to remove each announcement call from every script.

Can you explain me better?

com/l2jfrozen/gameserver/model/entity/Announcements.java

 add this method

public void gameAnnounceToAllTvT(final String text)
    {
        CreatureSay cs = new CreatureSay(0, 18, "", "TvT: " + text);
        
        for (final L2PcInstance player : L2World.getInstance().getAllPlayers())
        {
            if (player != null)
                if (player.isOnline() != 0)
                    player.sendPacket(cs);
        }
        
        cs = null;
    }

 

 

after gameAnnounceToAll

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.