Jump to content
  • 0

Question

Posted

hello i have make a droplist panel and i need use one button after stats to go droplist

but i have stuck in button. i tried to use voice command and is not work. i tried to make

connect like (public void) but again nathing. can any help me for make this problem ?
 

image.jpg

Code for go to droplist
i want to add a button for go to droplist

 html1.append("<table border=1 width=\"100%\">");
	        html1.append("<tr><td><center>Item Name</center></td><td width=\"55\" valign=middle align=center><center>Category</center></td><td width=\"50\" valign=middle align=center><center>Chance</center></td></tr>");

	        if (getTemplate().getDropData() != null)
	            for (L2DropCategory cat : getTemplate().getDropData())
	                for (L2DropData drop : cat.getAllDrops())
	                {
	                    String name = ItemTable.getInstance().getTemplate(drop.getItemId()).getName();
	                    html1.append("<tr><td><font color=\"33EEEE\">" + name + "</font></td><td width=\"55\" valign=middle align=center>" + (drop.isQuestDrop() ? "<font color=\"FF6600\">Quest</font>" : (cat.isSweep() ? "<font color=\"LEVEL\">Sweep</font>" : "<font color=\"33FF77\">Drop</font>")) + "</td><td width=\"50\" valign=middle align=center>" + (drop.getChance() >= 10000 ? (double)drop.getChance() / 10000 : drop.getChance() < 10000 ? (double)drop.getChance() / 10000 : "N/A") + "%</td></tr>");
	                }

	        html1.append("</table>");

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...