nortim Posted March 29, 2017 Posted March 29, 2017 (edited) Boa tarde maxcheaters, tenho um pouco de dúvida .. Como posso colocar o anúncio pvp premio para aparecer em amarelo igual à foto acima? Eles estavam com um varejo .. queria colocá-los em amarelo .. Eles parecem com isso: Minha linha tem esta aparência: sendMessage ("Voce obteve" + quantidade + "unidade de" + reward.getName () + "."); Meu projeto é L2JFrozen Código: If (Config.PVP_REWARD_ENABLED) Se (Config.PVP_REWARD_ENABLED1) { Final item int = Config.PVP_REWARD_ID; Final int item1 = Config.PVP_REWARD_ID1; Final L2Item recompensa = ItemTable.getInstance (). GetTemplate (item); Final L2Item reward1 = ItemTable.getInstance (). GetTemplate (item1); Final int amount = Config.PVP_REWARD_AMOUNT; Final int amount1 = Config.PVP_REWARD_AMOUNT1; GetInventory (). AddItem ("Ganhar PvP", Config.PVP_REWARD_ID, Config.PVP_REWARD_AMOUNT, isto, nulo); GetInventory (). AddItem ("Ganhando PvP", Config.PVP_REWARD_ID1, Config.PVP_REWARD_AMOUNT1, isto, nulo); SendMessage ("Voce obteve" + quantidade + "unidade de" + reward.getName () + "."); SendMessage ("Voce obteve" + quantidade1 + "unidades de" + reward1.getName () + "."); } Edited March 29, 2017 by nortim
0 Solomun Posted March 29, 2017 Posted March 29, 2017 Create a system message id with string builder and u append...
0 nortim Posted March 29, 2017 Author Posted March 29, 2017 Create a system message id with string builder and u append... Hello solomun, you are always very attentive! I'm sorry for the little knowledge, but how can I do this?
0 SweeTs Posted March 29, 2017 Posted March 29, 2017 The "color" is simply addItem( with boolean true to send message.
0 nortim Posted March 29, 2017 Author Posted March 29, 2017 The "color" is simply addItem( with boolean true to send message... But what I want is that the message when winning the pvp come in yellow and not add a new item ..
0 nortim Posted March 30, 2017 Author Posted March 30, 2017 The "color" is simply addItem( with boolean true to send message. I created the line here in SystemMessageId however everyone who has it has the $ 1 in the sentence, and mine is different .. Example: /** * ID: 2155<br> * Message: $s1 request teleport to $s2. Do you accept? */ S1_REQUEST_TELEPORT_TO_S2_DO_YOU_ACCEPT(2155), My line looks like this: sendMessage ("Voce obteve" + quantidade + "unidade de" + reward.getName () + "."); How do I have to stay so I can call the pvp line?
0 nortim Posted March 30, 2017 Author Posted March 30, 2017 The same way. Yes, but my line does not have $ 1 and yes + amount +, how would it look?
0 SweeTs Posted March 30, 2017 Posted March 30, 2017 (edited) As said before, the same, similar way. $s1, $s2 will be replaced with proper code line. Search over eclipse for the code and see how it works. Edited March 30, 2017 by SweeTs
Question
nortim
9 answers to this question
Recommended Posts