Jump to content
  • 0

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


T9Text

Question

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
Link to comment
Share on other sites

Recommended Posts

  • 0

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 ?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

You can look at the other item related methods for example.

 

I make the xml by myself :) http://pastebin.com/V8iHWBC8

 

If you want to help me with java side im waiting :)

 

//Edit Pastebin

Edited by T9Text
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.... ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • 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