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.


×
×
  • Create New...