_displayId

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
MeanMischief
Posts: 13
Joined: Mon Sep 24, 2012 9:55 pm

_displayId

Post by MeanMischief »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 9232:
L2JDP Revision 5667:

How does this code gets the values?

Code: Select all

public int getDisplayId(){    return _displayId;}
It just does not give me all the values and some of the displays are emty cells. If there is a precalculated table, plz tell me so i can fill it with the proper id's and then share for update. If it is not in a table or something, where is the calculation area so i can fix it.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: _displayId

Post by Zoey76 »

Use this for skills (and items):

Code: Select all

<set name="displayId" val="2288" />
Check the XML files at custom folder and you will get an idea.

Is the "icon" to display for the custom skill (or item).
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
MeanMischief
Posts: 13
Joined: Mon Sep 24, 2012 9:55 pm

Re: _displayId

Post by MeanMischief »

its nothing custom, :) yet..
it does not show me dances and songs images, pet buffs, and some other. they are not properly set or missing i think. I tought they are in some kind of calculations but as i fallowed the functions they got me nowhere.
MeanMischief
Posts: 13
Joined: Mon Sep 24, 2012 9:55 pm

Re: _displayId

Post by MeanMischief »

Hmm, here is another question, maybe something is already implemented which i couldn't find out.
What i need is to find the skill icon from the icon.utx

Code: Select all

int displayid = SkillTable.getInstance().getInfo(id, level).getDisplayId();return "<img src=\"icon.skill" + displayid + "\" width=20 height=20>";
This does not helps much. Maybe something more appropriate way to find the right path.
As an example, this code does not returns me the icons of dances and songs and instead of adding another value to all the skills. Maybe something to calculate the properly is already there. Any suggestions?
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: _displayId

Post by tukune »

Code: Select all

 return "<img src=\"Icon.skill" + getSkillIconNumber(id, level) + "\" width=32 height=32>";
:arrow: viewtopic.php?f=73&t=24033&p=140165#p140157

Code: Select all

     private String getSkillIconNumber(int id, int level)    {        String formato;        if (id == 4) formato = "0004";        else if (id > 9 && id < 100) formato = "00" + id;        else if (id > 99 && id < 1000) formato = "0" + id;        else if (id == 1517) formato = "1536";        else if (id == 1518) formato = "1537";        else if (id == 1547) formato = "0065";        else if (id == 2076) formato = "0195";        else if (id > 4550 && id < 4555) formato = "5739";        else if (id > 4698 && id < 4701) formato = "1331";        else if (id > 4701 && id < 4704) formato = "1332";        else if (id == 6049) formato = "0094";        else formato = String.valueOf(id);        return formato;    }
MeanMischief
Posts: 13
Joined: Mon Sep 24, 2012 9:55 pm

Re: _displayId

Post by MeanMischief »

@IamOR,
This just does not solve my problem. It is only a half solution for some skills that are icons are named skillXXXX format and not just all of them. So beyond the numbers those are given in the mothod given in the tukune @h5 scheme buffer, gives me the solution for his buff in allready chosen and got the number range.
what about a skill that does not even have a skillXXXX format name?
for example:
skill Bless of Angel (id=571, lvl=from 1 to 4) that one has icon name "skill_transform_buff"
so to use this i have to use <img src=\"icon.skill_transform_buff\" ...>
with that preconditioned solution i will get nowhere close into this.

what i realy need is somehow to read skillgrp.dat from system folder in the client.
so, any solution?
i was simply thinking of a scan method to compare the first and second element from the file and if they are equal to the id and level getting the 12th element as filename string. the problem is i dont know how to make it read that file without adding it into the build and a fixed pathmae like "c:\program files\NCZ0ft\ .... \skillgrp.dat" is not a proper solution since everyone can have different installation paths.
Post Reply