Jump to content
  • 0

Raid Drop For Full Party Or Who Give More Dmg


Tachi

Question

hello folks , how i can make 1 raid boss to drop 1 item for the fulll party or for the party who did more dmg :)

 

sorry for my english 

 

i need java code or just from xml :?

Edited by Tachi
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

check this post http://www.maxcheaters.com/topic/199170-noblesse-killing-barakiel-l2jacis/

 

Delete the nobless status and the if nobless checks and keep the 

 

members.getInventory().addItem("Noblesse Tiara",7694,1,members,null);

 

and just change the drop

Edited by L2LostWard
Link to comment
Share on other sites

  • 0

check this post http://www.maxcheaters.com/topic/199170-noblesse-killing-barakiel-l2jacis/

 

Delete the nobless status and the if nobless checks and keep the 

 

members.getInventory().addItem("Noblesse Tiara",7694,1,members,null);

 

and just change the drop

i have 1 npc for nobles manager..he ask you to kill 4 rb like  

http://postimg.org/image/74uzkd52f/

 

i wand to drop for full party and autopick-up inventori quest item..not normal drop down :)

Link to comment
Share on other sites

  • 0

this is the correct read it how its work i edit it for you 

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
* You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.l2j.gameserver.scripting.scripts.custom;


import net.sf.l2j.gameserver.model.actor.L2Npc;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.scripting.Quest;


	public class RaidPartyDrop extends Quest
	{
	public RaidPartyDrop()
	{
	super(-1, "custom");

	addKillId(25325);   <------------- Change the raid id who you like to 
	}

		@Override
		public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)    <--------When you kill raid
			{
				if (player.getParty() != null)      <---------IF player who kill got a party
			{
				for (L2PcInstance members : player.getParty().getPartyMembers())     <-------The players who is on the party 
			{
				if (!members.isInsideRadius(npc, 2000, false, false))  <------If player is near raid //check
			{
				members.sendMessage("You Was On Wrong Place");  <----------If players wasnt near send msg about "fail"
				continue;
			}
				if (!members.isInsideRadius(npc, 2000, true, true)) <--- if member is in radius correct check 
			{
				members.getInventory().addItem("Noblesse Tiara",7694,1,members,null); <--- change the ids and give to all party the item which you like to 
				members.sendMessage("You Are Noblesse now."); <--- chance the msg or delete it 
			}

members.broadcastUserInfo();
		}
	}

return null;
	}

public static void main(String args[])
{
new PartyRaidDrop();
}
}
Link to comment
Share on other sites

  • 0

 

                if (!members.isInsideRadius(npc, 2000, false, false)) <------If player is near raid //check
            {
                members.sendMessage("You Was On Wrong Place"); <----------If players wasnt near send msg about "fail"
                continue;
            }
                if (!members.isInsideRadius(npc, 2000, true, true)) <--- if member is in radius correct check
            {
                members.getInventory().addItem("Noblesse Tiara",7694,1,members,null); <--- change the ids and give to all party the item which you like to
                members.sendMessage("You Are Noblesse now."); <--- chance the msg or delete it
            }

 

Fail.

Link to comment
Share on other sites

  • 0

You can propably delete 

if (!members.isInsideRadius(npc, 2000, true, true)) <--- if member is in radius correct check

and put this after continue 

               members.getInventory().addItem("Noblesse Tiara",7694,1,members,null); <--- change the ids and give to all party the item which you like to
                members.sendMessage("You Are Noblesse now."); <--- chance the msg or delete it

P.S i didnt test it live if its work but one way is for sure

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.

Guest
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...