Well... Because i can't explain that great what i want to do, im going to show you a picture to make it easier ->
So i want to make the dances in that way, to be sorted 12-12, not all together on 1 lane because its really fucked up as you can see.
"com/l2jserver/gameserver/model/CharEffectList.java". I think that i have to edit something on this file.
Edit:
I think that the following lanes are the lanes that we will have to edit (CharEffectList.java file):
// Icons order: buffs, 7s, toggles, dances
if (newSkill.isDance())
_buffs.addLast(newEffect);
else
{
int pos = 0;
if (newSkill.isToggle())
{
// toggle skill - before all dances
for (L2Effect e : _buffs)
{
if (e == null)
continue;
if (e.getSkill().isDance())
break;
pos++;
}
}
else
{
// normal buff - before toggles and 7s and dances
for (L2Effect e : _buffs)
{
if (e == null)
continue;
if (e.getSkill().isToggle() || e.getSkill().is7Signs() || e.getSkill().isDance())
break;
pos++;
}
}
_buffs.add(pos, newEffect);
}
Here is a try to make it the way i want (But failed ^^) ->
Thanks for reading it and wasting your time to help me :P !
Question
pipiou21
Well... Because i can't explain that great what i want to do, im going to show you a picture to make it easier ->
So i want to make the dances in that way, to be sorted 12-12, not all together on 1 lane because its really fucked up as you can see.
"com/l2jserver/gameserver/model/CharEffectList.java". I think that i have to edit something on this file.
Edit:
I think that the following lanes are the lanes that we will have to edit (CharEffectList.java file):
// Icons order: buffs, 7s, toggles, dances if (newSkill.isDance()) _buffs.addLast(newEffect); else { int pos = 0; if (newSkill.isToggle()) { // toggle skill - before all dances for (L2Effect e : _buffs) { if (e == null) continue; if (e.getSkill().isDance()) break; pos++; } } else { // normal buff - before toggles and 7s and dances for (L2Effect e : _buffs) { if (e == null) continue; if (e.getSkill().isToggle() || e.getSkill().is7Signs() || e.getSkill().isDance()) break; pos++; } } _buffs.add(pos, newEffect); }Here is a try to make it the way i want (But failed ^^) ->
Thanks for reading it and wasting your time to help me :P !
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now