L2JMobius

The Kamael Ranking with images

robikbobik · 3 · 1575

Offline robikbobik

  • Knight
  • ***
    • Posts: 56
Hi,

I try to make ranking like TOP PVP....

When i get data from database and write to table - html.. than i want to add icon for every TOP 10 place..

Like 1,2,3,4,5 position.

Code: [Select]
int i = 1;
builder.append("<td height=40><img src=icon.xmas_pcwin" + i + "_i00 width=32 height=32></td>");



How to do it?

Thank you.


Online bctey

  • Knight
  • ***
    • Posts: 96
Code: [Select]
<table border=0 width="545" height="32" bgcolor="222222">
<tr height="32">
<td width="30"><img src="L2UI_CT1.VIPmark_1" width="32" height="32"></td>
<td width="6"></td>
<td width="115"><font color="00CD00">%name_0%</font></td>
<td width="115" align="left"><font color="00CD00">%clan_0%</font></td>
<td width="115" align="left"><font color="00CD00">%class_0%</font></td>
<td width="50" align="left"><font color="00CD00">%on_0%</font></td>
<td width="115" align="left"><font color="00CD00">%count_0%</font></td>
</tr>
</table>
<table border=0 width="545" height="32" bgcolor="444444">
<tr height="32">
<td width="30"><img src="L2UI_CT1.VIPmark_2" width="32" height="32"></td>
<td width="6"></td>
<td width="115"><font color="00EE66">%name_1%</font></td>
<td width="115" align="left"><font color="00EE66">%clan_1%</font></td>
<td width="115" align="left"><font color="00EE66">%class_1%</font></td>
<td width="50" align="left"><font color="00EE66">%on_1%</font></td>
<td width="115" align="left"><font color="00EE66">%count_1%</font></td>
</tr>
</table>
<table border=0 width="545" height="32" bgcolor="222222">
<tr height="32">
<td width="30"><img src="L2UI_CT1.VIPmark_3" width="32" height="32"></td>
<td width="6"></td>
<td width="115"><font color="54FF9F">%name_2%</font></td>
<td width="115" align="left"><font color="54FF9F">%clan_2%</font></td>
<td width="115" align="left"><font color="54FF9F">%class_2%</font></td>
<td width="50" align="left"><font color="54FF9F">%on_2%</font></td>
<td width="115" align="left"><font color="54FF9F">%count_2%</font></td>
</tr>
</table>


Offline robikbobik

  • Knight
  • ***
    • Posts: 56
We do not understand each other.

What you wrote is simple html where you put an image on the next line.

It will show me the data from the database and the first top 10 players.

And I want to add a picture to the data.

1 st player will have picture number 1
The 2nd player will have picture number 2
3rd rd player will have picture number 3
..... and further.