Jump to content
  • 0

Provlima Me To Color Sto Droplist


Komnis

Question

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:

 

1q1fnn.png

 

 

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. :)

Edited by Komnis
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.


  • Posts

    • Hello, I need help with this: When I paste the skilldata in the skilldata of the program, when I click generate show a error:   See the end of this message for details on how to invoke Just-In-Time (JIT) debugging instead of this dialog box.  Just-In-Time (JIT) debugging instead of this dialog box. ************** Exception text ************** System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length    in System.String.Substring(Int32 startIndex, Int32 length)    in L2OFFGMPanel.Editor.pchMK.ex0fw1kAOte16pCJFCj(Object , Int32 , Int32 )    in L2OFFGMPanel.Editor.pchMK.tW0WWWF2JnU(Object , EventArgs )    in System.Windows.Forms.Control.OnClick(EventArgs e)    in System.Windows.Forms.Button.OnClick(EventArgs e)    in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)    in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)    in System.Windows.Forms.Control.WndProc(Message& m)    in System.Windows.Forms.ButtonBase.WndProc(Message& m)    in System.Windows.Forms.Button.WndProc(Message& m)    in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded assemblies ************** mscorlib     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- _     Assembly version: 0.0.0.0.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- L2OFFGMPanel     Assembly version: 4.7.1.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- System     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4605.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4550.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4390.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4190.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Micros  
    • GRAND OPENING FROM - 16/06/2023, FRIDAY, 20:00 +2 GMT !
    • 내 서버는 2개의 클러스터로 구성되어 있습니다. 하는 부부가 있어서 그 사람만 할 수 있는 동아리 4개 어떻게 설정하는지 알려주세요
    • Hello everyone, my problem is: that when adding the .wav or .uax to sound in unrealED "Patched" is added, but the sound is not heard, you press play and nothing. But if I do the same process in unrealruntime2 if the audio is heard in the animation created in notify, but it is not patched and it does not create the .ukx correctly. what do i need to solve this problem? Could anyone help me? (I will need a different UrealED) I also tried unrealedpostal and neither. A greeting and I hope to answer.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock