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

    • Acabei de liberar no TopL2.com o nosso MOD Oficial de VoteSystem, criado para servidores Lineage 2 que querem parar de sofrer com voto “fake” e reward entregue sem controle.   O que ele faz? O mod integra seu GameServer com o site TopL2, valida o voto do jogador e só então libera a recompensa — tudo com mais segurança, rastreio e controle.   Principais vantagens Voto verificado: o servidor confirma o voto registrado no site Reward mais seguro: evita abuso/duplicação e reduz exploit Cooldown configurável por jogador Logs e rastreio para auditoria e suporte   Instalação rápida, com arquivos organizados e prontos para copiar/aplicar   Disponível para download no https://TopL2.com   Se você é admin e quer profissionalizar seu sistema de votos e entregar reward com segurança, esse mod é pra você.  
    • Geia sas paidia eimai new edw mesa kai tha ithela na kanw mia erwtisi an kapoios mporei na me voithisei! Exw highfive (L2JMobius) kai thelw na valw custom weapons alla den exw sql file mporw na ta perasw xwris sql file kai na exw mono ta xml arxeia gia na ta valw stats/items?
    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
  • 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..