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

    • Hello community, I’d like to share an improved version of the L2smr editor for StaticMeshes, focused on solving some workflow issues I found in the original tool. CreditsThis project is based on the original acmi/L2smr repository https://github.com/acmi/L2smr , created by acmi, and I updated it to Java 17 with some additional features. Issues in the original L2smr Too many windows: each StaticMesh opened in a new one → cluttered desktop. No search: navigating through hundreds of StaticMeshActors was slow and tedious. Added improvements Flexible views Single Window Mode: reuse one window instead of opening new ones. Multiple Window Mode: still available for those who prefer having several views open simultaneously. Real-time Search Field Instant filtering as you type. Case-insensitive search. “Reset” button to quickly clear the search.     Installation and Execution: Clone the repository: git clone https://github.com/Jeep12/l2smr.git cd l2smr        2.Build the project:   ./gradlew build        3. Run the application:     ./run.bat      Or simply double-click on run.bat.     The run.bat script automatically extracts JavaFX from the included javafx-17.0.2.zip file in the javafx/ directory, sets up the required libraries, and launches the application. You don’t    need to install JavaFX separately.      Repository: https://github.com/Jeep12/l2smr     Maybe these features already existed in another version or fork, and they might not be very big changes, but since I didn’t know about them and found them necessary, I decided to          implement them myself and wanted to share them.      
    • no....Mobius L2Clientdat and L2FileEditor can do that...but still cant works with TaiWanese Grand Crusade ,especially Armorgrp.dat and Armorgrp-Classic.dat
    • L2GOLD - Halcyon x45 Project Classic Interlude   C6 - Classic Interlude: Protocol 110     Is a complete copy of L2Gold in Classic [110 Protocol] with L2OFF files.   Fully L2Gold Features - Daily Quest - Daily Mining Quest - Ancient Weapons -Refine System  -Rebirth System -Fully configurable everything you want -Gold stats/Gold skills/Gold items working 100% -Zones 100% alike  -Unique donations system (npc or voicedcommand .donate) - On Enchant success announcement ( if +16 for weapon, 8 for armor , 7 for jewel) - Announce of Castle Lord - Announce of Hero  - Olympiad Max A grade - Olympiad Buffs on matches changed to Gold Alike - Working fully Dreadbane   - AI Mods: Static Time for RB   Automated Events: Squash Watermelon RB Event High rate  (those are fully automated)   Server is running a Test Server: Online to anyone can test it.   Game Client: https://www.mediafire.com/file/1d8xe18rvgi04lx/L2_Classic_Interlude_Client_V2.rar/file   Game Patch: https://www.mediafire.com/file/3z4b8ezy93h2z1g/L2Halcyon+Gold+Patch.rar/file   GM Accounts: ID: root pass root [ accounts go from  root1 until root20 ]   Regular Accounts Registrations: http://84.247.164.27/?page=register   Some Screenshots: https://imgur.com/a/o7TxzTN   Contact me here via PM (only serious buyers).    Price of the product: Fully Server Pack + Source ( 250 Euros )
    • ✨ A Service with Vibes  Vibe SMS ✨   Vibe SMS is not just a platform for working with numbers. We’ve built it to be simple, convenient, and stress-free, so your tasks get done without hassle. We value real communication: we listen to your ideas, provide support, and make sure everyone feels calm and confident. With us, you’re not just a client  you’re part of a space built on trust, support, and a human touch. Vibe SMS is a place where people matter and where we create an atmosphere you’ll want to stay in.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock