Or is there another way? I was also thinking about simply copy+pasting this code with the ID of the other zone, but honestly I don't want to mess around and probably get owned by a bunch of errors, that would be a pity. :) I have no Java knowledge, I am trying to understand how it works, and I can edit some numbers, thats all.
As title say. I’m from America, so the only thing I’m using is PayPal. I don’t mine to have a middleman for the transaction.
i don’t want to waste time with scammers as I got scams couple time on here and had reported several people on here to get banned.
Telegram chan: https://t.me/Lineage2dexcom
Dear Dexters!
We are pleased to inform you that on Saturday (May 18) from 16:00(UTC +3) the 9x9 GvG tournament will be held at the NEW server!
✅ Basical information about tournament:
➡️ The tournament will be held according to the Double Elimination system (up to two defeats), but if there will be more than 8 teams participating in Tournament, we will use the Single Elimination system (elimination after first loose)
➡️ Every match will be played until two wins (best of 3 system).
➡️ The tournament grid will be published after the registration is completed, and will be updated periodically during the tournament.
➡️ There will be no restrictions on equipment, enchantment level, skills or classes. You can use everything, including hero weapons, hero skills or quick healing potions.
Its a preannounce of tournament. All details, how register on it, location where tournament will be, detailed rules and process of tournament we post later.
Old Tournament on Dex https://youtu.be/Ug0kqPjtEIw?si=girGvagas3UMnn4L
✅ Episode 2 - Primeval Wars (April 29 - May 5)
➡️ Event: 🍉Watermelons (for 2 weeks) Details (we will provide a link to the forum here a little later)
➡️ Instances: TOP A-Grade at Rune available
➡️ Giran Harbor Fair (without temporary epic jewelry) - For details press in game: ALT+B -> Events tab -> Giran Harbor Fair
➡️ Preparation for Grand Olympiad Games (week without fights)
➡️ May 5 - first sieges
Question
Romotheone
Hello dear person who is reading my topic.
I have a question, more like a request to find out how to add a zoneID into an already existing Java code.
[table][tr]
[td]
public void increasePvpKills(L2Character target)
{
if (((target instanceof L2PcInstance)) && (AntiFeedManager.getInstance().check(this, target)))
{
setPvpKills(getPvpKills() + 1);
for (L2ZoneType zone : L2World.getInstance().getRegion(getX(), getY()).getZones()) {
if ((zone.isCharacterInZone(this)) && (zone.getName() != null) && (zone.getId() == 40001)) {
addItem("PvPReward", 14720, 1L, this, true);
}
}
sendPacket(new UserInfo(this));
sendPacket(new ExBrExtraUserInfo(this));
}
}
[/td]
[/tr][/table]
This code is supposed to spawn an item after every PvP kill in a certain zone. My question is:
How can I add another zone and keep this one aswell? Is it enough to seperate the 2 zones by writing a "," between the 2 zone IDs? Like this:
[table][tr]
[td]
if ((zone.isCharacterInZone(this)) && (zone.getName() != null) && (zone.getId() == 40001, 40002))
[/td]
[/tr][/table]
Or is there another way? I was also thinking about simply copy+pasting this code with the ID of the other zone, but honestly I don't want to mess around and probably get owned by a bunch of errors, that would be a pity. :) I have no Java knowledge, I am trying to understand how it works, and I can edit some numbers, thats all.
Thanks in advance.
Link to comment
Share on other sites
2 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.