• 0
Sign in to follow this  
criss22

Help Shift+click

Question

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

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

 

replace the ff9933 with something similar

 

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

 

Share this post


Link to post
Share on other sites
  • 0

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

Edited by BruT

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, BruT said:

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

Thank you! That's works. 

 

Edited by criss22

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.