Jump to content
  • 0

[Help] Make item shareable to party members



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 ? :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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())
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 ^^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...