hello i have make a restore buffer with map & arraylist
so i need make a more option like player can save that list with name + can make a new list like fighter/mage
i think for me this method is better from scheme buffer.
anyway. how to get a list and make a new list with name
private Map<Integer, ArrayList<Integer>> _restore = new HashMap<>();
i call this from add buff
private ArrayList<Integer> getOwnBuffs(final int objectId)
{
if (_restore.get(objectId) == null)
{
synchronized (_restore)
{
_restore.put(objectId, new ArrayList<Integer>());
}
}
return _restore.get(objectId);
}
restore list
ArrayList<Integer> bufs = getOwnBuffs(player.getObjectId());
for (final Integer id : bufs)
{
player.broadcastPacket(new MagicSkillUse(this, player, id, SkillTable.getInstance().getMaxLevel(id), 500, 0));
SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(this, player);
}
from here he add buffs and he check if skill is not same from skill list
if (!getOwnBuffs(player.getObjectId()).contains(skillId))
{
getOwnBuffs(player.getObjectId()).add(skillId);
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
Question
tazerman2
hello i have make a restore buffer with map & arraylist
so i need make a more option like player can save that list with name + can make a new list like fighter/mage
i think for me this method is better from scheme buffer.
anyway. how to get a list and make a new list with name
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.