Jump to content
  • 0

Question

Posted

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?

3 answers to this question

Recommended Posts

  • 0
Posted

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);

  • 0
Posted

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);

Guest
This topic is now closed to further replies.


×
×
  • Create New...