ftiaxnw ta colors sto droplist kai exw ena provlima enw vazw to idio xroma sta rates m vgazei diaforetika. Diladi sto 100% exw valei na einai mple kai den m to vgazei mple ekei pou anagrafete to drop rate opos stin foto:
to 100% kai to 90% to dixnei me prasino xroma enw to item apo katw to dixnei me mple. opos mporite na dite k sto kodika to exw grapsei swsta (i etsi toulaxiston nomizw).
if (getTemplate().getDropData() != null)
{
StringUtil.append(html1,
"<br><center><font color=\"3399FF\">[Drop & Rate Info]</font></center>" +
"<br><font color=\"FF0000\">0%+</font><font color=\"FF3300\">10%+</font><font color=\"FF6600\">20%+</font><font color=\"FF9900\">30%+</font><font color=\"FFCC00\">40%+</font><font color=\"FFFF00\">50%+</font><font color=\"009933\">60%+</font><font color=\"00CC33\">70%+</font><font color=\"00FF33\">80%+</font><font color=\"3366FF\">90%+</font><font color=\"3333FF\">100%</font>" +
"<table border=0 width=\"100%\">"
);
for (L2DropCategory cat : getTemplate().getDropData())
{
for (L2DropData drop : cat.getAllDrops())
{
final L2Item item = ItemTable.getInstance().getTemplate(drop.getItemId());
if (item == null)
continue;
final String color;
if (drop.getChance() >= 1000000)
color = "3333FF";
else if (drop.getChance() >= 900000)
color = "3366FF";
else if (drop.getChance() >= 800000)
color = "00FF33";
else if (drop.getChance() >= 700000)
color = "00CC33";
else if (drop.getChance() >= 600000)
color = "009933";
else if (drop.getChance() >= 500000)
color = "FFFF00";
else if (drop.getChance() >= 400000)
color = "FFCC00";
else if (drop.getChance() >= 300000)
color = "FF9900";
else if (drop.getChance() >= 200000)
color = "FF6600";
else if (drop.getChance() >= 100000)
color = "FF3300";
else
color = "FF0000";
pws mporw na to ftiaksw na dixnei to idio xroma kai sto rate k sto item?
solved... epeftan polla se mia grammi. pros8esa ena <br> sto 90 kai 100% kai m ta vgazei kanonika. :)
Hello, I'm trying to add an icon to my menu. I saved it as a 32-bit TGA file, tried following the example of other icons, and imported it using “masked & alpha":
But it ends up with a black background, and I don’t know why. My icon already has a black background and the correct size (64 x 64), but it still shows up like this:
in the game:
Could someone help me? Where am I going wrong? I’m using the L2 editor to add it to my .u file.
this is the file i send in ( png ) :
just leaving this here
https://github.com/sdrak94/trinity/blob/main/java/luna/discord/MyEventListener.java
https://github.com/sdrak94/trinity/blob/main/java/luna/custom/RefundManager.java
Question
Komnis
ftiaxnw ta colors sto droplist kai exw ena provlima enw vazw to idio xroma sta rates m vgazei diaforetika. Diladi sto 100% exw valei na einai mple kai den m to vgazei mple ekei pou anagrafete to drop rate opos stin foto:
to 100% kai to 90% to dixnei me prasino xroma enw to item apo katw to dixnei me mple. opos mporite na dite k sto kodika to exw grapsei swsta (i etsi toulaxiston nomizw).
pws mporw na to ftiaksw na dixnei to idio xroma kai sto rate k sto item?
solved... epeftan polla se mia grammi. pros8esa ena <br> sto 90 kai 100% kai m ta vgazei kanonika. :)
Edited by Komnis0 answers to this question
Recommended Posts