Jump to content
  • 0

ExShowScreenMessage with Target


Question

Posted

Hi Guys,

Since i'm not able to search this forums im sorry if such a topic already exsist...

 

Im looking for a way to add the Target of a player into the ExShowScreenMessage.

I use to display the player if the spoil was successful or not.

 

There is a Method in Systemmessages afaik .. but im to noob in L2J to adapt it.. i dont even know if its possible.

 

Any1 can gimme a hand on this plz ?

 

//REV => Latest High Five release

 

greetings

4 answers to this question

Recommended Posts

  • 0
Posted

you simply have to prepare your string before to send it to the serverpacket.

 

String blabla = "" + monster.getName() + " has been spoiled";

or

String blabla =  "You successfully spoiled" + monster.getName();

 

Then send it via the serverpacket

 

activeChar.sendPacket(new ExShowScreenMessage(blabla, 10000));

 


 

monster, blabla && activeChar are obviously samples... Don't try with that without checking your code...

  • 0
Posted

Thx for your help ^^

i solved it this way :

 

String spoilresited = target.getName() + " has resisted your spoil.";
activeChar.sendPacket(new ExShowScreenMessage(spoilresited , 5000));

Guest
This topic is now closed to further replies.


×
×
  • Create New...