Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

  • 0
Posted

 

 

public final static int ALL = 0;

public final static int SHOUT = 1; //!

public final static int TELL = 2;

public final static int PARTY = 3; //#

public final static int CLAN = 4;  //@

public final static int GM = 5;

public final static int PETITION_PLAYER = 6; // used for petition

public final static int PETITION_GM = 7; //* used for petition

public final static int TRADE = 8; //+

public final static int ALLIANCE = 9; //$

public final static int ANNOUNCEMENT = 10;

public final static int PARTYROOM_ALL = 16; //(Red)

public final static int PARTYROOM_COMMANDER = 15; //(Yellow)

public final static int HERO_VOICE = 17;

 

Announcements.java

 

public void announceToAll(String text)

{

CreatureSay cs = new CreatureSay(0, Say2.ANNOUNCEMENT, "", text);

 

for (L2PcInstance player : L2World.getInstance().getAllPlayers())

{

player.sendPacket(cs);

}

}

 

 

Replace 'ANNOUNCEMENT" with one from above list :)

 

  • 0
Posted

Thx bro very nice  :P

But this only announcement txt file.... how change color when write in game?

Lots of laugh, read the code juice :D

 

 

Shot00009-2.jpg

public void announceToAll(String text) 
   {
      CreatureSay cs = new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "Announce", text);


      for (L2PcInstance player : L2World.getInstance().getAllPlayers())
      {
         player.sendPacket(cs);
      }
   }

 

 

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
Answer this question...

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