Skip to content

Pvp Awards Color

Featured Replies

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

  • Author

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?

The "color" is simply addItem( with boolean true to send message.

  • Author

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 ..
  • Author

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?
  • Author

The same way.

Yes, but my line does not have $ 1 and yes + amount +, how would it look?

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

  • Author

Resolved, locked topic.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.