Jump to content
  • 0

Question

Posted (edited)

2drrleb.png

 

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:
5tvvwi.jpg
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 by nortim

9 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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
Posted

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
Posted (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 by SweeTs
Guest
This topic is now closed to further replies.


×
×
  • Create New...