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.
yeah ok, if you say what is fuctional 100% i can't say something different 😛
but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.
I have access to modify everything even to make the clock to stop show how many time users play in server.
1) so maybe keep some personal info more hide.
2) i dont use ogg.dll
3) i create it and give it ready + support to install it.
Plus what is mine can working with what ever .exe you want not just l2 with same simple method.
And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too
thats my source
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.