Jump to content
  • 0

Farm in Party for Player Vip!


Question

Posted (edited)

I'm trying to put the player who is vip and is in PT to continue farming 2x, but it's not working, only the adena that he farms 2x! Could someone help me?

Rev aCis

 

L2PcInstance

public void doAutoLoot(L2Attackable target, ItemHolder item)
    {
        if (isInParty())
            getParty().distributeItem(this, item, false, target);
        else if (item.getId() == 57)
            addAdena("Loot", item.getCount(), target, true);
        else if (isVip())
            addItem("Loot", item.getId(), item.getCount() * Config.VIP_DROP_RATE, target, true);
        else
            addItem("Loot", item.getId(), item.getCount(), target, true);
    }

 

Edited by NBR

12 answers to this question

Recommended Posts

  • 0
Posted
11 hours ago, NBR said:

I'm trying to put the player who is vip and is in PT to continue farming 2x, but it's not working, only the adena that he farms 2x! Could someone help me?

Rev aCis

 

L2PcInstance

public void doAutoLoot(L2Attackable target, ItemHolder item)
    {
        if (isInParty())
            getParty().distributeItem(this, item, false, target);
        else if (item.getId() == 57)
            addAdena("Loot", item.getCount(), target, true);
        else if (isVip())
            addItem("Loot", item.getId(), item.getCount() * Config.VIP_DROP_RATE, target, true);
        else
            addItem("Loot", item.getId(), item.getCount(), target, true);
    }

 

 

You're trying to do what? You confused me as fuck. You want VIP player to distribute item + get also the item himself ? So basically you mean you want to throw the isInParty() outside else if check in case he is VIP?

  • Upvote 1
  • 0
Posted
42 minutes ago, Kara said:

 

You're trying to do what? You confused me as fuck. You want VIP player to distribute item + get also the item himself ? So basically you mean you want to throw the isInParty() outside else if check in case he is VIP?

 

I want to make the player who is vip, being in the pt with another vip or not! Let the farm that is for him be in 2x as config! Because he is only able to farm in 2x if he is out of pt

 

  • 0
Posted
 if (isInParty())
            getParty().distributeItem(this, item, false, target);
        else if (item.getId() == 57)
            addAdena("Loot", item.getCount(), target, true);
        else if (isInParty() && isVip || !isVip())
            addItem("Loot", item.getId(), item.getCount() * Config.VIP_DROP_RATE, target, true);

i just made what you ask with your words. Not that is correct

if (isInParty() || isInParty && isVip || !isVip)
            getParty().distributeItem(this, item, false, target);

can work the same way , u just missed calling the vip that is inParty so u have to add it on isInParty too

  • 0
Posted
2 hours ago, NBR said:

 

I want to make the player who is vip, being in the pt with another vip or not! Let the farm that is for him be in 2x as config! Because he is only able to farm in 2x if he is out of pt

 

 

If you want the player who is in party and he is VIP to receive 2x then you need open distributeItem method and there is where items are given at the players. Make the x 2 for that specific player (or any VIP inside) in there.

  • 0
Posted (edited)
41 minutes ago, Kara said:

 

If you want the player who is in party and he is VIP to receive 2x then you need open distributeItem method and there is where items are given at the players. Make the x 2 for that specific player (or any VIP inside) in there.

 

Can you write the code for me?

 

53 minutes ago, Amenadiel said:
 if (isInParty())
            getParty().distributeItem(this, item, false, target);
        else if (item.getId() == 57)
            addAdena("Loot", item.getCount(), target, true);
        else if (isInParty() && isVip || !isVip())
            addItem("Loot", item.getId(), item.getCount() * Config.VIP_DROP_RATE, target, true);

i just made what you ask with your words. Not that is correct

if (isInParty() || isInParty && isVip || !isVip)
            getParty().distributeItem(this, item, false, target);

can work the same way , u just missed calling the vip that is inParty so u have to add it on isInParty too

 

It didn't work that way!

Edited by NBR
  • 0
Posted
31 minutes ago, NBR said:

 

Can you write the code for me?

 

 

It didn't work that way!

Afcourse the guy's code didn't work cause he don't even know how methods are working.

Either you listen to me and do what i said and put some effort or nop. 

I explained you exactly what you need to do. Open distributeItem method and you will understand.

  • 0
Posted

I remember what on Innova L2OFF last hit in party always made player with premium account. It means, drop rates and experience was relative with killer's account status. You made madness implementation. Premium user does not need be activity in a party for getting benefits.

  • 0
Posted
33 minutes ago, Kara said:

Afcourse the guy's code didn't work cause he don't even know how methods are working.

Either you listen to me and do what i said and put some effort or nop. 

I explained you exactly what you need to do. Open distributeItem method and you will understand.

I just wrote what he say in first post, i also said that its not correct, stop being an egomaniac 

Nbr add me on Amenadiel#2435 i will write the code for you free just because Kara is an egomaniac

  • 0
Posted (edited)
14 minutes ago, Amenadiel said:

I just wrote what he say in first post, i also said that its not correct, stop being an egomaniac 

Nbr add me on Amenadiel#2435 i will write the code for you free just because Kara is an egomaniac

 

Good luck with your services.

Edited by Kara
  • 0
Posted
42 minutes ago, Amenadiel said:

I just wrote what he say in first post, i also said that its not correct, stop being an egomaniac 

Nbr add me on Amenadiel#2435 i will write the code for you free just because Kara is an egomaniac

 Thanks

  • 0
Posted
1 hour ago, NBR said:

 I want to thank @Emenadiel for his free services that he gave me for the two days to be able to develop the solution! Thank you very much!!!

Topic locked.

Guest
This topic is now closed to further replies.


  • Posts

    • Server Description L2 Karma is a permanent Interlude 1x server built on L2J with retail-like mechanics and a long-term vision — not a seasonal reset or wipe server. We focus on competitive longevity, fair play, and a community where every player matters. Core Features ✔ True x1 Experience (XP / SP / Adena / Drop / Spoil) ✔ Retail mechanics — no forced progression shortcuts ✔ Single-box only (1 client per player — no multi-boxing advantage) ✔ No Pay-to-Win & strict anti-RMT policy ✔ Already live and active with players progressing ✔ Long-term commitment — 3-year guarantee ✔ Designed for meaningful PvP and community cohesion 📏 Server Rules No Multi-Boxing Advantage — Only one client per account is allowed. No Pay-to-Win Items or Services — VIP runes are optional and do not lock content. No Bots, Scripts, or Automation — Zero tolerance. Suspicious accounts will be banned. No Exploit Abuse — Reporting exploits immediately avoids penalties. No RMT / Real Money Trading — Strict enforcement — economy integrity matters. Fair Play Only — Harassment and racism are not allowed in chat or Discord. Respect Admin Decisions — Official rulings are final to keep the server stable. 📥 How to Join 🔗 Website: https://l2karma.org 🔗 Discord: https://discord.gg/VV9RAfmnth Chronicle: Interlude Rates: x1 (Classic) Box Limit: Single Box 🧠 What Makes Us Different ✔ Permanent World — No resets ever ✔ Designed for players tired of wipe-cycle servers ✔ Community-centric growth — not rinse-and-repeat launches ✔ Competitive but fair environment ✔ Events, structured seasons, and ongoing content support
    • A widespread proxy service, operating through hijacked devices, has been shut down in a cross-industry effort led by Google. The network, known as IPIDEA, functioned by secretly converting millions of personal devices into proxies for malicious actors. The Mechanism of the Scheme The operation distributed hidden code within seemingly legitimate free apps and VPN services. Once installed, this code enrolled the user’s device into a pool of residential IP addresses. These addresses were then sold anonymously, primarily to cybercriminal and state-sponsored groups, to mask the origin of attacks, fraud, and espionage. Key impacts of the network included: Facilitating operations for more than 550 identified threat actors. Exposing unsuspecting device owners to potential legal and security risks by associating their IP addresses with criminal traffic. The Takedown Strategy Google and its partners disrupted the service by: Seizing core operational domains. Using Google Play Protect to detect and remove malicious applications. Coordinating with infrastructure providers to prevent the network from reestablishing itself. The action highlights the necessity of continuous user awareness, developer diligence in code reviews, and proactive industry cooperation to maintain cybersecurity. Front Companies Associated with IPIDEA IPIDEA masked its activities under various brand names, such as: Proxy Brands: 360 Proxy, 922 Proxy, Luna Proxy, IP2World, ABC Proxy. VPN Brands: Door VPN, Radish VPN, Galleon VPN. SDK Brands: PacketSDK, HexSDK (the toolkits used to embed proxy code).   Choosing Ethical Proxy Services Alternatives For lawful purposes like market research, ad verification, or data aggregation, selecting a transparent and consensual provider is essential. Reputable services obtain explicit user permission for their networks and enforce strict compliance measures. Examples of Established Providers: Bright Data: A leading, consent-based residential proxy network. Oxylabs: Provides large-scale proxy solutions for enterprise needs. MoMoProxy: Maintains a large pool of residential IPs for tasks like web scraping.   Only $850/1TB.  https://momoproxy.com   Identifying a Legitimate Provider: A trustworthy service will typically demonstrate: Informed Consent: Networks are built with the clear agreement of participants. Robust Compliance: Proactive systems to prevent abuse and respect website terms. Operational Transparency: Public-facing policies, identifiable corporate structure, and genuine customer support. Conduct thorough due diligence. Opt for providers that are clear about their IP sources and maintain strong anti-abuse policies, ensuring your legitimate activities do not inadvertently support harmful operations.
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..