Tested & working.
I'm just using a ready code from class master rewards.
https://pastebin.com/HVhtQ7kj
Don't forget to add the handler to your item.
- Config explaination:
boxId;[];[itemId1(itemCount1)],[itemId2(itemCount2)],[itemId3(itemCount3)];
9308;[];[57(100)],[57(1000)],[57(10000)];
And you can add as many items as you want.
private static int getCurrentBuffs(Player p)
{
int i = 0;
for (L2Effect e : p.getAllEffects())
{
if (e.getSkillType() == L2SkillType.BUFF)
i++;
}
return i;
}
This is the X and the max buff slots of your server is the Y.
Buff Slots: x/y
The numeric buff count is java side. The line which shows the graphic count of your buffs it's client and I have no clue. I think Elfocrash did something similar in the past for his server. About the half buff icons, just import the icons as they are and decrease the height.
At the second image, I am not sure if it's a new client icon or something that already exists in the client.