so how can help or tell me whare is the problem? i have test it all.
and code is this
Spoiler
// create party players
public void createPartyOfTeam(int teamId)
{
final List<PcInstance> _players = new ArrayList<>();
for (PcInstance p : players.keySet())
{
if (getTeam(p) == teamId)
{
if (p.isInParty())
{
p.getParty().removePartyMember(p, MessageType.EXPELLED);
}
System.out.println(p.getName() + " ");
_players.add(p);
}
}
if (_players.size() >= 2)
{
int i = 0;
PcInstance leader = _players.get(0);
Party party = new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);
leader.setParty(party);
for (PcInstance player : _players)
{
if (i < 2)
{
i++;
}
else
{
party.addPartyMember(player);
player.setParty(party);
i++;
}
}
Announcement.announceToAll("i time run " + i);
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 automatically party create for event's but i have big problem with
packets like i have open 6 box like 3vs3 in one team i see last player and have double add same player
like
1 tester
2 tester1
3 tester2
4 tester2
all is good on event he add 3 player pet party and in party.java use same 3 vs 3 add
i use threadpool if maybe have problem with fast add and with delay he make party good
as normal
image for hava a idea
so how can help or tell me whare is the problem? i have test it all.
and code is this
// create party players
public void createPartyOfTeam(int teamId)
{
final List<PcInstance> _players = new ArrayList<>();
for (PcInstance p : players.keySet())
{
if (getTeam(p) == teamId)
{
if (p.isInParty())
{
p.getParty().removePartyMember(p, MessageType.EXPELLED);
}
System.out.println(p.getName() + " ");
_players.add(p);
}
}
if (_players.size() >= 2)
{
int i = 0;
PcInstance leader = _players.get(0);
Party party = new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);
leader.setParty(party);
for (PcInstance player : _players)
{
if (i < 2)
{
i++;
}
else
{
party.addPartyMember(player);
player.setParty(party);
i++;
}
}
Announcement.announceToAll("i time run " + i);
}
}
10 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.