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.
🎮 **Multeria [REWORK MULTI-SUB] x10** — a unique Lineage 2 server combining classic High Five mechanics with the latest Master Class ch.3 features!
🔥 **Key Features:**
- **Multi-Subclass System**: up to 35 subclasses with the ability to mix skills from different professions for truly unique builds.
- **Maximum Level**: 130, with two rebirth lines (up to 410 rebirths total).
- **Autofarm System**: built-in flexible farming assistant with skill and buff looping options.
- **Unique Zones and Bosses**: new areas and enhanced raid bosses adapted from Master Class ch.3.
- **Rates**: EXP x10, SP x5, Adena x1.5, Drop x1, Spoil x1.
- **Gameplay without penalties**: no drop/spoil penalties, 65 buff slots available.
- **No questing for professions**: class changes are purchased for Adena or Gold Einhasad through Alt+B.
- **Accessibility**: all donation items are obtainable through gameplay.
🔗 **Join now**: [rework.multeria.world](https://rework.multeria.world/about)
🚀 **Start 13.06 20:00 MSK**
I can compile, but the new file (which I just compiled) comes without Textures and without StaticMesh, I will try to redo it with your suggestions, I will come back later to say if it worked. 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.