Jump to content
  • 0

Pvp Awards Color


nortim

Question

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
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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?
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119 Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119
    • The heavy lifting is done in the client, because while you can get away with small imperfections in the java, everything in the client must be impecable. So, if you haven't touched the client, I'd say pick the newest protocol version you can find the client editing tools and Interface.u (mandatory) / NWindow.dll (better to have it) / Engine.dll (optional) sources for. At the very least, you need the Interface.u to fix the Clan Window and enable skill enchanting on Classic/Essence versions, if you decide to use one of them instead of MAIN/LIVE.
    • Thanks for clarification. Do you think the newest clients offer solid advantages compared to the classic ones like Salvation? I'm also in the process of porting h5 to one of them just for the sake of it, so I was wondering if I should just attempt to go to the newest possible.
    • Upgrading to Salvation is exactly the same as upgrading to the newest client with the only difference being access to free-shared client editing tools and resources. I am speaking from experience. I have upgraded my HF source to one of the newest clients by myself (in terms of server side. got help with the client) and hit every single wall there was in the process. Now, I already have several multi-protocool server cores so I can easily compare different approaches to tackling the same issue, which also helped the learning process. Best way to learn would be to use this one (link below) to snoop around and figure out what has been changed in the server side (the packet structure will be different, for sure, but works for understanding/figuring the process out in general terms). https://github.com/iBezneR/L2J_SunriseProject_Purity The client side will always be the same, always the same files, only the DAT structure will be different. I personally wrote myself some parsers for the data of the DAT files from OLD -> NEW client.
  • Topics

×
×
  • Create New...