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.
L2Avalon Mid-Rate Server: Dynamic and Exciting Gameplay Awaits!
Greetings, adventurers!
We are thrilled to introduce the L2Avalon Mid-Rate Server, designed with a perfect blend of challenge, innovation, and accessibility. With dynamic rates, tailored rewards, and a plethora of custom features, your journey in Aden will be more engaging than ever. Below are the highlights of what you can expect:
Server Rates
More details here
Dynamic XP Rates: Scale from 30x (Lv 1-40) to 1x (Lv 78+) for balanced progression.
Adena, Drop, Spoil: 5x for a rewarding grind.
Raid XP/Drop: 10x to spice up boss hunts.
GM Shop
Full D and C-grade gear available in main city shops.
Low B-grade items available in the Luxury Shop for crystals.
Class System
1st and 2nd professions are FREE!
3rd profession requires 700 Halisha marks, with an added reward of GC upon completion.
Raids & Epic Bosses
Raid Respawn: 12+4 hours for more opportunities to engage.
Epic Boss Schedule: Rotating timings keep encounters fresh.
(Details here)
Soul Shard System: Unique drops to enhance your gear.
Learn more.
Skills & Buffs
Buff slots: 20+12 + 4 Divine slots for full control of your builds.
3rd Class Skills: Inspired by Essence, requiring Magic tablets from select areas.
Class Balance Rework: Enhanced for better PvE/PvP gameplay.
Custom 2-hour NPC Buffs: Save and load schemes with ease!
Olympiad
Detailed info here
Held Thursday-Sunday weekly, featuring High Five arenas and buffer systems.
Olympiad Jewels: Updated from later chronicles.
Improved Hero Weapons: Now provide 30% PvP damage.
Hero Skills: Fully functional on subclasses!
Reworked Locations
Primeval Isle Shop: Exchange zone drop items for top A weapon recipes, parts, and materials.
Monastery of Silence: Collect Magic tablets on the first floor for 3rd class skills.
Seven Signs
The Seven Signs system is disabled, but you can access all Mammon services via Valar in Giran.
Teleporters: Found in every town for Priest of Dawn/Dusk access.
Instances & Quests
Instances: Customized for level-specific rewards, from C-grade items to S-grade recipes and parts.
(Details here).
Quest System Rework: Enhanced to make your journey more immersive.
Check here.
Get ready to explore a world of endless possibilities with a community-focused server that values player feedback and innovation. Join the adventure on launch day and experience a truly improved Interlude experience!
🌟 Join our Discord for updates!
L2Avalon.net
Hi everyone, I need to make the amulets stackable, as well as the spellbooks, but I need to control their consumption. I have modified the item.xml like this for example:
<item id="8885" type="EtcItem" name="Amulet: Magnus' Chant">
<set name="material" val="PAPER" />
<set name="weight" val="120" />
<set name="price" val="120" />
<set name="is_stackable" val="true" />
</item>
But I can see that within the spellbooks.xml it handles, I believe its consumption since I see the following for the same amulet:
<book skillId="1413" itemId="8885"/><!-- Amulet: Magnus' Chant -->
My question is the following, how do I make sure that when these are stacked, they are not all consumed in a single use.
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.