Skip to content
Snippets Groups Projects
Commit 6030d983 authored by Adry_85's avatar Adry_85
Browse files

Some fixes for quest Black Swan (351) by @jurchiks

parent e6628cec
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ import java.util.Map; ...@@ -23,7 +23,6 @@ import java.util.Map;
import quests.Q00345_MethodToRaiseTheDead.Q00345_MethodToRaiseTheDead; import quests.Q00345_MethodToRaiseTheDead.Q00345_MethodToRaiseTheDead;
import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.Quest;
...@@ -158,28 +157,25 @@ public final class Q00351_BlackSwan extends Quest ...@@ -158,28 +157,25 @@ public final class Q00351_BlackSwan extends Quest
final int random = getRandom(20); final int random = getRandom(20);
if (random < 10) if (random < 10)
{ {
giveItems(qs.getPlayer(), LIZARD_FANG, 1); giveItemRandomly(qs.getPlayer(), npc, LIZARD_FANG, 1, 0, 1.0, true);
playSound(qs.getPlayer(), QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (getRandom(20) == 0) if (getRandom(20) == 0)
{ {
giveItems(qs.getPlayer(), BARREL_OF_LEAGUE, 1); giveItemRandomly(qs.getPlayer(), npc, BARREL_OF_LEAGUE, 1, 0, 1.0, false);
} }
} }
else if (random < 15) else if (random < 15)
{ {
giveItems(qs.getPlayer(), LIZARD_FANG, 2); giveItemRandomly(qs.getPlayer(), npc, LIZARD_FANG, 2, 0, 1.0, true);
playSound(qs.getPlayer(), QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (getRandom(20) == 0) if (getRandom(20) == 0)
{ {
giveItems(qs.getPlayer(), BARREL_OF_LEAGUE, 1); giveItemRandomly(qs.getPlayer(), npc, BARREL_OF_LEAGUE, 1, 0, 1.0, false);
} }
} }
else if (getRandom(100) < MONSTER_DROP_CHANCES.get(npc.getId())) else if (getRandom(100) < MONSTER_DROP_CHANCES.get(npc.getId()))
{ {
giveItems(qs.getPlayer(), BARREL_OF_LEAGUE, 1); giveItemRandomly(qs.getPlayer(), npc, BARREL_OF_LEAGUE, 1, 0, 1.0, true);
playSound(qs.getPlayer(), QuestSound.ITEMSOUND_QUEST_ITEMGET);
} }
return super.onKill(npc, killer, isSummon); return super.onKill(npc, killer, isSummon);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment