From 1469df47797cbeb5db8b33ca4e51fe39ec8de75d Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 14 Sep 2020 09:03:02 +0000 Subject: [PATCH] Fixed quest The Wishing Potion (334). --- .../quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java | 4 ++-- .../quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java index 82025a91dd..5207ae5767 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java @@ -318,7 +318,7 @@ public class Q334_TheWishingPotion extends Quest final int npcId = npc.getNpcId(); final int id = st.getState(); int cond = 0; - if (id != 1) + if (id != 0) { cond = st.getInt("cond"); } @@ -458,7 +458,7 @@ public class Q334_TheWishingPotion extends Quest } else if ((Rnd.get(100) < element[6]) && (st.getQuestItemsCount(element[4]) < element[5])) { - st.giveItems(element[4], Rnd.get(element[7], element[7])); + st.giveItems(element[4], element[7]); if (cond == 3) { checkIngr(st); diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java index 82025a91dd..5207ae5767 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q334_TheWishingPotion/Q334_TheWishingPotion.java @@ -318,7 +318,7 @@ public class Q334_TheWishingPotion extends Quest final int npcId = npc.getNpcId(); final int id = st.getState(); int cond = 0; - if (id != 1) + if (id != 0) { cond = st.getInt("cond"); } @@ -458,7 +458,7 @@ public class Q334_TheWishingPotion extends Quest } else if ((Rnd.get(100) < element[6]) && (st.getQuestItemsCount(element[4]) < element[5])) { - st.giveItems(element[4], Rnd.get(element[7], element[7])); + st.giveItems(element[4], element[7]); if (cond == 3) { checkIngr(st);