Jump to content
  • 0

Java : Item Icon Inside Html (Pref With .xml Path)


Question

Posted (edited)

Hello guys :)

 

I have end my "Shift Click Action" but i dont know how to link (Item Icon)

 

If somebody can help me :)

 

Preview :
 

zjU8qdj.png

 

//EDIT

 

Source : l2jaCis

Edited by T9Text

Recommended Posts

  • 0
Posted

Do they have the icon names in the xml files?

 

No :/

 

but i think i can find this .xml ( i think is shared like)

 

<list>
  <id=57 icon=icon.etc_adena_i00>
  <id=.....>
</list>
  • 0
Posted

Then just put a getter in the parser and you're done... just like l2jserver.

 

I dont know how to connect html with xml :/

 

<img width=32 height=32 src=" + itemId.getIcon() + "> ?? or what... dont need on java side something ? only one xml ?

  • 0
Posted

You need to create the getIcon() method which takes the icon name.

 

How ? :S im new on aCis :P

 

i was use l2jfrozen and i know only how to connect sql :S

 

can you give me the method ? and i miss and xml atm :S

  • 0
Posted

A workbench is currently under process to add getIcon() and other missing L2OFF tags (reparsing infos directly from L2OFF to fix few L2J errors aswell). I can't tell you how much time it will take, as it's a secondary workbench, not performed by myself (but followed).

 

If you don't count to add icons on items XMLs, simply hardcode it under a static Map<Integer, String> waiting.

  • 0
Posted

If i add this code ( http://pastebin.com/TmngATeH ) you think i will have lag or any problem ? 

 

I loled on the code. It generates a hashmap and populate it everytime you request a icon. It's a performance overkill.

  • 0
Posted

I loled on the code. It generates a hashmap and populate it everytime you request a icon. It's a performance overkill.

 

Thank you for your opinion but that not help me :/

 

Somebody please.... ?

Guest
This topic is now closed to further replies.


  • Posts

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • 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