ZURSULUS L2

Supplier of Reagents

ID
373
Название
Supplier of Reagents
start_npcs_json
[30166]
npc_ids_json
[20813,20822,20828,21061,21066,21111,21115,30166,31149]
constants_json
{"WESLEY":30166,"URN":31149,"CRENDION":20813,"HALLATE_MAID":20822,"HALLATE_GUARDIAN":21061,"PLATINUM_TRIBE_SHAMAN":20828,"PLATINUM_GUARDIAN_SHAMAN":21066,"LAVA_WYRM":21111,"HAMES_ORC_SHAMAN":21115,"MIXING_STONE":5904,"MIXING_MANUAL":6317,"REAGENT_POUCH_1":6007,"REAGENT_POUCH_2":6008,"REAGENT_POUCH_3":6009,"REAGENT_BOX":6010,"WYRMS_BLOOD":6011,"LAVA_STONE":6012,"MOONSTONE_SHARD":6013,"ROTTEN_BONE":6014,"DEMONS_BLOOD":6015,"INFERNIUM_ORE":6016,"BLOOD_ROOT":6017,"VOLCANIC_ASH":6018,"QUICKSILVER":6019,"SULFUR":6020,"DEMONIC_ESSENCE":6031,"MIDNIGHT_OIL":6030,"DRACOPLASM":6021,"MAGMA_DUST":6022,"MOON_DUST":6023,"NECROPLASM":6024,"DEMONPLASM":6025,"INFERNO_DUST":6026,"FIRE_ESSENCE":6028,"LUNARGENT":6029,"DRACONIC_ESSENCE":6027,"ABYSS_OIL":6032,"HELLFIRE_OIL":6033,"NIGHTMARE_OIL":6034,"PURE_SILVER":6320}
Статус разбора
metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
Источник
game/data/scripts/quests/Q00373_SupplierOfReagents/Q00373_SupplierOfReagents.java

NPC квеста

IDНазваниеСтарт квестаУровень
20813CrendionНет62
20822Hallate's MaidНет66
20828Platinum Tribe ShamanНет70
21061Hallate's GuardianНет69
21066Platinum Guardian ShamanНет73
21111Lava WyrmНет70
21115Hames Orc ShamanНет74
30166WesleyДа70
31149Alchemist's Mixing UrnНет70

Условия уровней: выражения из Java

htmltext = (player.getLevel() < 57) ? "30166-01.htm" : "30166-02.htm";

Выдача предметов, адены и опыта: выражения из Java

giveItems(player, MIXING_STONE, 1);
giveItems(player, MIXING_MANUAL, 1);
giveItems(player, formula[3], temperature[2]);
giveItems(partyMember, drop[0], 1);
giveItems(partyMember, random < drop[2] ? drop[0] : drop[1], 1);

Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.

Тексты квеста

[30166-01.htm] Magic Trader Wesley: I buy ingredients from adventurers like you, create various reagents from them and then sell them to the Mystics of the Ivory Tower. Although a mere merchant, I am proud of my association with the Mystics. Many common ingredients such as jade and Dragon's Tooth are readily available, as many adventurers bring them to me. But there are other ingredients that are much more rare. I need a new regular supplier of these ingredients... Would you like to be that person? I must be honest with you, it is very dangerous work, and I am afraid you aren't quite up to the task... (This quest may only be undertaken by a character of level 57 and above.) [30166-02.htm] Magic Trader Wesley: I buy ingredients from adventurers like you, create various reagents from them and then sell them to the Mystics of the Ivory Tower. Although a mere merchant, I am proud of my association with the Mystics. Many common ingredients such as Jade and Dragon's Tooth are readily available, as many adventurers bring them to me. But there are other ingredients that are much more rare. I need a new regular supplier of these ingredients... Would you like to be that person? "I'll take the job." [30166-04.htm] Magic Trader Wesley: Sir... or, should I call you partner? You must bring me the ingredients I need to make reagents using the Alchemical Mixing Urn. Take this Mixing Manual. This is used to activate the mixing urn. "Where can I find the ingredients?" [30166-04a.htm] Magic Trader Wesley: You can obtain the ingredients from Crendion, Hallate's Maid, Hallate's Guardian, the Platinum Tribe Shaman and the Platinum Guardian Shaman in the Tower of Insolence. You can also obtain some important ingredients from Lava Wyrms and the Hames Orc Shaman in the Blazing Swamp. Do you want to know how to use the mixing urn? "Tell me how to use the urn." [30166-04b.htm] Magic Trader Wesley: First you must activate the jar. Do this by inserting a mixing stone into the niche on the side of the jar. Once activated, you can start using the jar immediately. You must gather the correct quantity and types of ingredients and catalysts and put them into it. Remember, once you place ingredients into the jar, you cannot take them out again. So, be careful! You can waste your hard-won ingredients with a single mistake... Before you start mixing, make sure that you have the proper amount of all the necessary ingredients. Now, I'll tell you how to set the temperature of the jar. Listen to the instructions. [30166-04c.htm] Magic Trader Wesley: The lowest temperature you can set is 1 degree, also called "Salamander." This is the safest choice. Although the success rate for mixing is 100%, the amount of reagent produced will be the smallest. The medium temperature setting is 2 degrees, also called "Ifrit." You run a risk of melting your ingredients at this temperature. This setting will yield a larger amount of reagent. The highest temperature setting is 3 degrees, also known as "Phoenix." Although ingredients often melt at this setting, if successful, you will obtain the greatest amount of reagent. "Tell me about mixing reagents." [30166-04d.htm] Magic Trader Wesley: Formulas explain which ingredients and the amounts you will need in order to create a particular reagent. All formulas explain how many ingredients and how many catalysts should be added. For example, in order to create Dracoplasm, ten units of Wyrm's Blood and one Blood Root should be mixed. I wrote down a list of the required reagents and mixing formulas on the memo and attached it on the urn. Please refer to it often. Well, my dear new partner... I'll be counting on you. [30166-05.htm] Magic Trader Wesley: Welcome back! Come in! You're just in time. Grand Magister Arkenias has been asking for his order... I was able to put him off for a few days. Have you found the reagents I need? Bring them and I'll give you some ingredients, recipes or other items that you'll find useful. "Here are the reagents you requested." "Tell me about the memo." "I quit." [30166-08.htm] Magic Trader Wesley: I wrote down detailed instructions for using the urn, setting temperatures, a list of reagents and their formulas on the memo and attached it to the side of the urn. Please refer to it often. [30166-09.htm] Magic Trader Wesley: My partner! How can you quit so abruptly? What shall I do? You can't do this to me! Oh, well, there's nothing I can do to stop you... I suppose I'll have to find another partner... [31149-01.htm] Alchemical Mixing Urn: A small dent is visible on the side of the urn. Insert a mixing stone into the dent. [31149-02.htm] Alchemical Mixing Urn: The urn is glowing faintly. Please select your ingredients: Wyrm's Blood(10) Lava Stone(10) Moonstone Shard(10) Rotten Bone Piece(10) Demon's Blood(10) Infernium Ore(10) Dracoplasm(10) Magma Dust(10) Moon Dust(10) Necroplasm(10) Demonplasm(10) Inferno Dust(10) Fire Essence(1) Lunargent(1) [31149-03-6011.htm] Alchemical Mixing Urn: 10 units of Wyrm's Blood have been put into the urn. Next step [31149-03-6012.htm] Alchemical Mixing Urn: 10 Lava Stones have been put into the urn. Next step [31149-03-6013.htm] Alchemical Mixing Urn: 10 Moonstone Shards have been placed into the urn. Next step [31149-03-6014.htm] Alchemical Mixing Urn: 10 Rotten Bone Pieces have been placed into the urn. Next step [31149-03-6015.htm] Alchemical Mixing Urn: 10 units of Demon's Blood have been placed into the urn. Next step [31149-03-6016.htm] Alchemical Mixing Urn: 10 pieces of Infernium Ore have been placed into the urn. Next step [31149-03-6021.htm] Alchemical Mixing Urn: 10 units of Dracoplasm have been placed into the urn. Next step [31149-03-6022.htm] Alchemical Mixing Urn: 10 units of Magma Dust have been placed into the urn. Next step [31149-03-6023.htm] Alchemical Mixing Urn: 10 units of Moon Dust have been placed into the urn. Next step [31149-03-6024.htm] Alchemical Mixing Urn: 10 units of Necroplasm have been placed into the urn. Next step [31149-03-6025.htm] Alchemical Mixing Urn: 10 units of Demonplasm have been placed into the urn. Next step [31149-03-6026.htm] Alchemical Mixing Urn: 10 units of Inferno Dust have been placed into the urn. Next step [31149-03-6028.htm] Alchemical Mixing Urn: One Fire Essence has been placed into the urn. Next step [31149-03-6029.htm] Alchemical Mixing Urn: One Lunargent has been placed into the urn. Next step [31149-04.htm] Alchemical Mixing Urn: You don't have the necessary ingredients. [31149-05.htm] Alchemical Mixing Urn: The urn is glowing brightly and has begun to vibrate. Please select your catalyst: Blood Root(1) Volcanic Ash(1) Quicksilver(1) Sulfur(1) Demonic Essence(1) Midnight Oil(1) [31149-06-6017.htm] Alchemical Mixing Urn: One Blood Root has been put into the urn. Next step [31149-06-6018.htm] Alchemical Mixing Urn: One Volcanic Ash has been put into the urn. Next step [31149-06-6019.htm] Alchemical Mixing Urn: One Quicksilver has been put into the urn. Next step [31149-06-6020.htm] Alchemical Mixing Urn: One unit of Sulfur has been placed into the urn. Next step [31149-06-6030.htm] Alchemical Mixing Urn: One Midnight Oil has been put into the urn. Next step [31149-06-6031.htm] Alchemical Mixing Urn: One Demonic Essence has been put into the urn. Next step [31149-07.htm] Alchemical Mixing Urn: You don't have enough ingredients. The urn has gone still and dark. The process has failed! [31149-08.htm] Alchemical Mixing Urn: The urn has gone still and dark. Mixing has failed! Mix a new reagent. [31149-09.htm] Alchemical Mixing Urn: Select temperature: 1 degree - Salamander 2 degrees - Ifrit 3 degrees - Phoenix [31149-10-1.htm] Alchemical Mixing Urn: The urn is glowing red-hot. Mix the ingredients. [31149-10-2.htm] Alchemical Mixing Urn: The urn is glowing red-hot. Mix the ingredients. [31149-10-3.htm] Alchemical Mixing Urn: The urn is glowing red-hot. Mix the ingredients. [31149-11.htm] Alchemical Mixing Urn: The ingredient melted during mixing. The process failed! Mix a new reagent. [31149-12-6021.htm] Alchemical Mixing Urn: Mixing successful! The Dracoplasm has been created. Mix a new reagent. [31149-12-6022.htm] Alchemical Mixing Urn: Mixing successful! Magma Dust has been created. Mix a new reagent. [31149-12-6023.htm] Alchemical Mixing Urn: Mixing successful! Moon Dust has been created. Mix a new reagent. [31149-12-6024.htm] Alchemical Mixing Urn: Mixing successful! Necroplasm has been created. Mix a new reagent. [31149-12-6025.htm] Alchemical Mixing Urn: Mixing successful! Demonplasm has been created. Mix a new reagent. [31149-12-6026.htm] Alchemical Mixing Urn: Mixing successful! Inferno Dust has been created. Mix a new reagent. [31149-12-6027.htm] Alchemical Mixing Urn: Mixing successful! Draconic Essence has been created. Mix a new reagent. [31149-12-6028.htm] Alchemical Mixing Urn: Mixing successful! Fire Essence has been created. Mix a new reagent. [31149-12-6029.htm] Alchemical Mixing Urn: Mixing successful! Lunargent has been created. Mix a new reagent. [31149-12-6030.htm] Alchemical Mixing Urn: Mixing successful! Midnight Oil has been created. Mix a new reagent. [31149-12-6031.htm] Alchemical Mixing Urn: Mixing successful! Demonic Essence has been created. Mix a new reagent. [31149-12-6032.htm] Alchemical Mixing Urn: Mixing successful! Abyss Oil has been created. Mix a new reagent. [31149-12-6033.htm] Alchemical Mixing Urn: Mixing successful! Hellfire Oil has been created. Mix a new reagent. [31149-12-6034.htm] Alchemical Mixing Urn: Mixing successful! Nightmare Oil has been created. Mix a new reagent. [31149-12-6320.htm] Alchemical Mixing Urn: Mixing successful! Pure Silver has been created. Alchemical Mixing Urn [31149-13.htm] Alchemical Mixing Urn: You don't have enough ingredients. The urn has gone still and dark. The process has failed!
Исходник условий и наград (Java)
/*
 * Copyright (c) 2013 L2jMobius
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
 * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
package quests.Q00373_SupplierOfReagents;

import java.util.HashMap;
import java.util.Map;

import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;

public class Q00373_SupplierOfReagents extends Quest
{
	// NPCs
	private static final int WESLEY = 30166;
	private static final int URN = 31149;
	
	// Monsters
	private static final int CRENDION = 20813;
	private static final int HALLATE_MAID = 20822;
	private static final int HALLATE_GUARDIAN = 21061;
	private static final int PLATINUM_TRIBE_SHAMAN = 20828;
	private static final int PLATINUM_GUARDIAN_SHAMAN = 21066;
	private static final int LAVA_WYRM = 21111;
	private static final int HAMES_ORC_SHAMAN = 21115;
	
	// Quest items
	private static final int MIXING_STONE = 5904;
	private static final int MIXING_MANUAL = 6317;
	
	// Items - pouches
	private static final int REAGENT_POUCH_1 = 6007;
	private static final int REAGENT_POUCH_2 = 6008;
	private static final int REAGENT_POUCH_3 = 6009;
	private static final int REAGENT_BOX = 6010;
	
	// Items - ingredients
	private static final int WYRMS_BLOOD = 6011;
	private static final int LAVA_STONE = 6012;
	private static final int MOONSTONE_SHARD = 6013;
	private static final int ROTTEN_BONE = 6014;
	private static final int DEMONS_BLOOD = 6015;
	private static final int INFERNIUM_ORE = 6016;
	
	// Items - catalysts
	private static final int BLOOD_ROOT = 6017;
	private static final int VOLCANIC_ASH = 6018;
	private static final int QUICKSILVER = 6019;
	private static final int SULFUR = 6020;
	private static final int DEMONIC_ESSENCE = 6031;
	private static final int MIDNIGHT_OIL = 6030;
	
	// Items - products
	private static final int DRACOPLASM = 6021;
	private static final int MAGMA_DUST = 6022;
	private static final int MOON_DUST = 6023;
	private static final int NECROPLASM = 6024;
	private static final int DEMONPLASM = 6025;
	private static final int INFERNO_DUST = 6026;
	private static final int FIRE_ESSENCE = 6028;
	private static final int LUNARGENT = 6029;
	
	// Items - products final
	private static final int DRACONIC_ESSENCE = 6027;
	private static final int ABYSS_OIL = 6032;
	private static final int HELLFIRE_OIL = 6033;
	private static final int NIGHTMARE_OIL = 6034;
	private static final int PURE_SILVER = 6320;
	
	// Variables
	private static final String INGREDIENT = "ingredient";
	private static final String CATALYST = "catalyst";
	
	/**
	 * This droplist defines the npcId, the item dropped and the luck.
	 * <ul>
	 * <li>HAMES_ORC_SHAMAN : 47% chance to drop - reagent pouch (47%)</li>
	 * <li>HALLATES_MAID : 84,4% chance to drop - reageant pouch (66,4%) and volcanic ash (18%)</li>
	 * <li>HALLATES_GUARDIAN : 83,3% chance to drop - demon's blood (72,9%) and moonstone shard (10,4%)</li>
	 * <li>PLATINUM_GUARDIAN_SHAMAN : 44,2% chance to drop - reagent box (44,2%)</li>
	 * <li>PLATINUM_TRIBE_SHAMAN : 100% chance to drop - reagent pouch (68%) and quichsilver (32%)</li>
	 * <li>CRENDION : 100% chance to drop - rotten bone piece (61,8%) and quicksilver (38,2%)</li>
	 * <li>LAVA_WYRM : 75% chance to drop - wyrm's blood (50,5%) and lava stone (24,5%)</li>
	 * </ul>
	 */
	private static final Map<Integer, int[]> DROPLIST = new HashMap<>();
	static
	{
		// @formatter:off
		DROPLIST.put(PLATINUM_GUARDIAN_SHAMAN, new int[]{REAGENT_BOX, 442000, 0});
		DROPLIST.put(HAMES_ORC_SHAMAN, new int[]{REAGENT_POUCH_3, 470000, 0});
		DROPLIST.put(PLATINUM_TRIBE_SHAMAN, new int[]{REAGENT_POUCH_2, QUICKSILVER, 680, 1000});
		DROPLIST.put(HALLATE_MAID, new int[]{REAGENT_POUCH_1, VOLCANIC_ASH, 664, 844});
		DROPLIST.put(HALLATE_GUARDIAN, new int[]{DEMONS_BLOOD, MOONSTONE_SHARD, 729, 833});
		DROPLIST.put(CRENDION, new int[]{ROTTEN_BONE, QUICKSILVER, 618, 1000});
		DROPLIST.put(LAVA_WYRM, new int[]{WYRMS_BLOOD, LAVA_STONE, 505, 750});
		// @formatter:n
	}
	private static final int[][] FORMULAS =
	{
		// @formatter:off
		{10, WYRMS_BLOOD, BLOOD_ROOT, DRACOPLASM},
		{10, LAVA_STONE, VOLCANIC_ASH, MAGMA_DUST},
		{10, MOONSTONE_SHARD, VOLCANIC_ASH, MOON_DUST},
		{10, ROTTEN_BONE, BLOOD_ROOT, NECROPLASM},
		{10, DEMONS_BLOOD, BLOOD_ROOT, DEMONPLASM},
		{10, INFERNIUM_ORE, VOLCANIC_ASH, INFERNO_DUST},
		{10, DRACOPLASM, QUICKSILVER, DRACONIC_ESSENCE},
		{10, MAGMA_DUST, SULFUR, FIRE_ESSENCE},
		{10, MOON_DUST, QUICKSILVER, LUNARGENT},
		{10, NECROPLASM, QUICKSILVER, MIDNIGHT_OIL},
		{10, DEMONPLASM, SULFUR, DEMONIC_ESSENCE},
		{10, INFERNO_DUST, SULFUR, ABYSS_OIL},
		{1, FIRE_ESSENCE, DEMONIC_ESSENCE, HELLFIRE_OIL},
		{1, LUNARGENT, MIDNIGHT_OIL, NIGHTMARE_OIL},
		{1, LUNARGENT, QUICKSILVER, PURE_SILVER}
		// @formatter:on
	};
	private static final int[][] TEMPERATURES =
	{
		// @formatter:off
		{1, 100, 1},
		{2, 45, 2},
		{3, 15, 3}
		// @formatter:on
	};
	
	public Q00373_SupplierOfReagents()
	{
		super(373, "Supplier of Reagents");
		registerQuestItems(MIXING_STONE, MIXING_MANUAL);
		addStartNpc(WESLEY);
		addTalkId(WESLEY, URN);
		addKillId(CRENDION, HALLATE_MAID, HALLATE_GUARDIAN, PLATINUM_TRIBE_SHAMAN, PLATINUM_GUARDIAN_SHAMAN, LAVA_WYRM, HAMES_ORC_SHAMAN);
	}
	
	@Override
	public String onEvent(String event, Npc npc, Player player)
	{
		String htmltext = event;
		final QuestState st = getQuestState(player, false);
		if (st == null)
		{
			return htmltext;
		}
		
		// Wesley
		if (event.equals("30166-04.htm"))
		{
			st.startQuest();
			giveItems(player, MIXING_STONE, 1);
			giveItems(player, MIXING_MANUAL, 1);
		}
		else if (event.equals("30166-09.htm"))
		{
			st.exitQuest(true, true);
		}
		// Urn
		else if (event.equals("31149-02.htm"))
		{
			if (!hasQuestItems(player, MIXING_STONE))
			{
				htmltext = "31149-04.htm";
			}
		}
		else if (event.startsWith("31149-03-"))
		{
			final int regentId = Integer.parseInt(event.substring(9, 13));
			for (int[] formula : FORMULAS)
			{
				if (formula[1] != regentId)
				{
					continue;
				}
				
				// Not enough items, cancel the operation.
				if (getQuestItemsCount(player, regentId) < formula[0])
				{
					break;
				}
				
				st.set(INGREDIENT, Integer.toString(regentId));
				return htmltext;
			}
			
			htmltext = "31149-04.htm";
		}
		else if (event.startsWith("31149-06-"))
		{
			final int catalyst = Integer.parseInt(event.substring(9, 13));
			
			// Not enough items, cancel the operation.
			if (!hasQuestItems(player, catalyst))
			{
				return "31149-04.htm";
			}
			
			st.set(CATALYST, Integer.toString(catalyst));
		}
		else if (event.startsWith("31149-12-"))
		{
			final int regent = st.getInt(INGREDIENT);
			final int catalyst = st.getInt(CATALYST);
			for (int[] formula : FORMULAS)
			{
				if ((formula[1] != regent) || (formula[2] != catalyst))
				{
					continue;
				}
				
				// Not enough regents.
				if (getQuestItemsCount(player, regent) < formula[0])
				{
					break;
				}
				
				// Not enough catalysts.
				if (!hasQuestItems(player, catalyst))
				{
					break;
				}
				
				takeItems(player, regent, formula[0]);
				takeItems(player, catalyst, 1);
				
				final int tempIndex = Integer.parseInt(event.substring(9, 10));
				for (int[] temperature : TEMPERATURES)
				{
					if (temperature[0] != tempIndex)
					{
						continue;
					}
					
					if (getRandom(100) < temperature[1])
					{
						giveItems(player, formula[3], temperature[2]);
						return "31149-12-" + formula[3] + ".htm";
					}
					
					return "31149-11.htm";
				}
			}
			
			htmltext = "31149-13.htm";
		}
		
		return htmltext;
	}
	
	@Override
	public String onTalk(Npc npc, Player player)
	{
		String htmltext = getNoQuestMsg(player);
		final QuestState st = getQuestState(player, true);
		
		switch (st.getState())
		{
			case State.CREATED:
			{
				htmltext = (player.getLevel() < 57) ? "30166-01.htm" : "30166-02.htm";
				break;
			}
			case State.STARTED:
			{
				if (npc.getId() == WESLEY)
				{
					htmltext = "30166-05.htm";
				}
				else
				{
					htmltext = "31149-01.htm";
				}
				break;
			}
		}
		
		return htmltext;
	}
	
	@Override
	public void onKill(Npc npc, Player player, boolean isPet)
	{
		final QuestState st = getRandomPartyMemberState(player, -1, 3, npc);
		if (st == null)
		{
			return;
		}
		
		final Player partyMember = st.getPlayer();
		final int[] drop = DROPLIST.get(npc.getId());
		if (drop[2] == 0)
		{
			if (getRandom(1000000) < drop[1])
			{
				giveItems(partyMember, drop[0], 1);
				playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
			}
		}
		else
		{
			final int random = getRandom(1000);
			if (random < drop[3])
			{
				giveItems(partyMember, random < drop[2] ? drop[0] : drop[1], 1);
				playSound(partyMember, QuestSound.ITEMSOUND_QUEST_ITEMGET);
			}
		}
	}
}