Skip to content

Chat Type

Featured Replies

Hello folks.

If i want to send a msg to the player with one of this chat types, how can i do it?

Like this activeChar.SendMsg(.....etc etc..

Lets say with the type 15?

	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;
public final static int PETITION_GM = 7;
public final static int TRADE = 8; // +
public final static int ALLIANCE = 9; // $
public final static int ANNOUNCEMENT = 10;
public final static int BOAT = 11;
public final static int L2FRIEND = 12;
public final static int MSNCHAT = 13;
public final static int PARTYMATCH_ROOM = 14;
public final static int PARTYROOM_COMMANDER = 15; // (Yellow)

 

or how can i send a msg to player with my own color chat?

CreatureSay cs = new CreatureSay(0, 15, "prefix, for example Server(it will be shown as Server: bla bla)", "here the message you wanna send");

(L2PcInstance).sendPacket(cs);

CreatureSay cs = new CreatureSay(0, 15, "prefix, for example Server(it will be shown as Server: bla bla)", "here the message you wanna send");

(L2PcInstance).sendPacket(cs);

CreatureSay cs = new CreatureSay(0, ChatType.PARTYROOM_COMMANDER, "prefix, for example Server(it will be shown as Server: bla bla)", "here the message you wanna send");

activeChar.sendPacket(cs);

  • Author

thank you guys.

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.