Skip to content

Droplist Help

Featured Replies

Hello, im playing with drops in l2jserver high five version (through xml), but im getting weird results.

 

Im getting: https://imgur.com/a/fVSDsEk

When i write: https://pastebin.com/zJpLRBvQ

 

While im trying to set the values the same with that i have in XML (100,100,50,15,3).

Thx in advance

Edited by ganjaradio

Paste the code, the xml can't help us..

  • Author
53 minutes ago, 'Baggos' said:

Paste the code, the xml can't help us..

which file do you need? (I havent edited the retail code)

36 minutes ago, ganjaradio said:

which file do you need? (I havent edited the retail code)

I don't know what file is.. I'm talking about the main code for this drop list.. Maybe the HTML, which show the droplist.

  • Author
17 hours ago, 'Baggos' said:

I don't know what file is.. I'm talking about the main code for this drop list.. Maybe the HTML, which show the droplist.

the problem isnt with the html, the problem is that it will say 60% in html, when i set to 100% and it wont drop every thime the item

you should post the code about the calculations . How do you appear those informations on your placeholders of the html?

  • Author

there is nothing wrong with the html.. the code isnt setting the normal values. As i said im using l2jserver (

 

somewhere on your code you replacing the placeholders for that html get real.

 

example:

 

html.replace("%ammount%",item.getCount());

Droplist htm is most likely a string builder construction. Check the file responsible for the calculation / display and debug it. 

  • Author

the problem is that i havent edited the code

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.