Kamira Posted July 5, 2011 Posted July 5, 2011 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
0 Tryskell Posted July 5, 2011 Posted July 5, 2011 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 Kamira Posted July 5, 2011 Author Posted July 5, 2011 Thx for your help ^^ i solved it this way : String spoilresited = target.getName() + " has resisted your spoil."; activeChar.sendPacket(new ExShowScreenMessage(spoilresited , 5000));
Question
Kamira
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