Jump to content

Question

Posted (edited)

Well, i need a bit help. Back in past. Not more. I want to fix something and i didn't know.

I make 2 category of drop. DROP and SPOIL . All good. I see Drop with Orange color. but Spoil i see still like Drop. Not like Fuchsya. I put cat.isSweep(). No chance.

First Item it is Spoil drop. Second it is Drop normal

jFPStK1.png

Here it is java line.

StringUtil.append(html1, "<tr>", "<td><center><img src=\"" + item.getIcon() + "\" height=32 width=32></center><br>", "<center><font color=\"ff9933\">" + item.getName() + "</font></center>", "<br1>" + "<center><font color=\"00cc66\">Chance:  </font>", "<font color=\"ffffff\">" + roundChance + "0%" + "</font>", "<font color=\"00cc66\">    Min:</font>" + "<font color=\"ffffff\">" + drop.getMinDrop() + "</font>" + "<font color=\"00cc66\">    Max:</font>", "<font color=\"ffffff\">" + drop.getMaxDrop() + "</font></center>" + "<img src=\"L2UI.SquareWhite\" width=280 height=1>", "<br>", "</td>", "</tr>");
					

How i can set this line to add Drop Spoil like this color?

Thanks

Edited by criss22

4 answers to this question

Recommended Posts

  • 0
Posted

<font color=ff9933>" + item.getName() + "</font>

 

replace the ff9933 with something similar

 

" + (cat.isSweep() ? ("COLOR") : ("COLOR")) + "

 

  • 0
Posted (edited)

<font color=" + (cat.isSweep() ? ("COLOR") : ("COLOR")) + " >" + item.getName() + "</font>

Edited by BruT
  • 0
Posted (edited)
10 hours ago, BruT said:

<font color=" + (cat.isSweep() ? ("COLOR") : ("COLOR")) + " >" + item.getName() + "</font>

Thank you! That's works. 

 

Edited by criss22
Guest
This topic is now closed to further replies.
×
×
  • Create New...