Jump to content
  • 0

Custom Announce


Question

Posted

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

4 answers to this question

Recommended Posts

  • 0
Posted

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.


×
×
  • Create New...