From af3cb9233300e1aaa308e2ee63401cd6e4425954 Mon Sep 17 00:00:00 2001
From: Zoey76 <zoey_76@msn.com>
Date: Wed, 25 Jan 2012 11:56:12 +0000
Subject: [PATCH] BETA: Minor fixes for [8639], thanks jurchiks for report.

---
 .../quests/Q10272_LightFragment/Q10272_LightFragment.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q10272_LightFragment/Q10272_LightFragment.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q10272_LightFragment/Q10272_LightFragment.java
index e9d558b7c5..6544b220c9 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q10272_LightFragment/Q10272_LightFragment.java
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q10272_LightFragment/Q10272_LightFragment.java
@@ -56,7 +56,7 @@ public class Q10272_LightFragment extends Quest
 		
 		final int npcId = npc.getNpcId();
 		final int cond = st.getInt("cond");
-		if (npc.getNpcId() == ORBYU)
+		if (npcId == ORBYU)
 		{
 			switch (st.getState())
 			{
@@ -237,7 +237,7 @@ public class Q10272_LightFragment extends Quest
 		{
 			if (st.getQuestItemsCount(PcInventory.ADENA_ID) >= 10000)
 			{
-				st.giveAdena(10000, false);
+				st.takeItems(PcInventory.ADENA_ID, 10000);
 				htmltext = "32566-05.htm";
 			}
 			else
-- 
GitLab