Jump to content
  • 0

[Help] Make item shareable to party members


Question

Posted

Hello guys,

 

Look what i want. i have created a certain mob that drops festival adena. But if we got a party then only the one who killed it takes them or if it is random, then random ;D

 

My question is how to make festival adena to be like normal adena. What i mean? if we have a party depentless on the party mode

and they ppl kill a mob that drops 30 festival adena, they should share them. not only 1 take them all

 

Any help ? :)

1 answer to this question

Recommended Posts

  • 0
Posted

You can make a few changes to L2Monster Instance (Or L2NpcInstance now since its changed).Smth like:

public void doDie(L2PcInstance Killer)
{
if(npcId() == yourid)
for(L2PcInstance p : killer.getParty().getMembers())
{
if(p.isDecayded())
   continue;
else p.addItem("Drop",itemid,itemquantity,this,0);
}

I dun have eclipse here so the methods might be slightly wrong,but you get the picture ^^

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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..

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