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.


×
×
  • Create New...