L2jNBR Posted April 19, 2022 Posted April 19, 2022 (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 April 19, 2022 by NBR
0 Kara Posted April 20, 2022 Posted April 20, 2022 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? 1
0 L2jNBR Posted April 20, 2022 Author Posted April 20, 2022 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 Amenadiel Posted April 20, 2022 Posted April 20, 2022 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 Kara Posted April 20, 2022 Posted April 20, 2022 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 L2jNBR Posted April 20, 2022 Author Posted April 20, 2022 (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 April 20, 2022 by NBR
0 Kara Posted April 20, 2022 Posted April 20, 2022 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 Rootware Posted April 20, 2022 Posted April 20, 2022 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 Amenadiel Posted April 20, 2022 Posted April 20, 2022 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 Kara Posted April 20, 2022 Posted April 20, 2022 (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 April 20, 2022 by Kara
0 L2jNBR Posted April 20, 2022 Author Posted April 20, 2022 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 L2jNBR Posted April 21, 2022 Author Posted April 21, 2022 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!!!
0 Zake Posted April 21, 2022 Posted April 21, 2022 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.
Question
L2jNBR
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
12 answers to this question
Recommended Posts