From afd6f2027dc1da5e019f32b0579c42df1a11e4ee Mon Sep 17 00:00:00 2001
From: Atemo <capucrath@gmail.com>
Date: Sun, 13 Nov 2016 17:58:20 +0100
Subject: [PATCH] Fixed potential script (*)quest warning

---
 npc/pre-re/jobs/1-1/mage.txt | 13 +++++++++----
 npc/quests/quests_amatsu.txt |  3 ++-
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/npc/pre-re/jobs/1-1/mage.txt b/npc/pre-re/jobs/1-1/mage.txt
index 2b95f3fde4..cf4c221899 100644
--- a/npc/pre-re/jobs/1-1/mage.txt
+++ b/npc/pre-re/jobs/1-1/mage.txt
@@ -248,25 +248,30 @@ geffen_in,164,124,4	script	Mage Guildsman	123,{
 				mes "make me a";
 				mes "^3355FFMixed Solution No. 1^000000";
 				mes "and bring it back to me.";
-				setquest 1005;
+				if (isbegin_quest(1005) == 0)
+					setquest 1005;
 				break;
 			case 2:
 				mes "make me a";
 				mes "^3355FFMixed Solution No. 2^000000";
 				mes "and bring it back to me.";
-				setquest 1006;
+				if (isbegin_quest(1006) == 0)
+					setquest 1006;
 				break;
 			case 3:
 				mes "make me a";
 				mes "^3355FFMixed Solution No. 3^000000";
 				mes "and bring it back to me.";
-				setquest 1007;
+				if (isbegin_quest(1007) == 0)
+					setquest 1007;
 				break;
 			default:
 				mes "make me a";
 				mes "^3355FFMixed Solution No. 4^000000";
 				mes "and bring it back to me.";
-				setquest 1008;
+				if (isbegin_quest(1008) == 0)
+					setquest 1008;
+				break;
 			}
 			next;
 			mes "[Mage Guildsman]";
diff --git a/npc/quests/quests_amatsu.txt b/npc/quests/quests_amatsu.txt
index 3e5cfc4dbb..19502f3953 100644
--- a/npc/quests/quests_amatsu.txt
+++ b/npc/quests/quests_amatsu.txt
@@ -2077,7 +2077,8 @@ amatsu,189,166,5	script	Kouji#ama	764,{
 		mes "A fox is following me!";
 		mes "If he doesn't leave when I scream and shout!";
 		mes "The North Shrine Priest should help me out~";
-		changequest 8132,8133;
+		if (isbegin_quest(8132) == 1)
+			changequest 8132,8133;
 	}
 	else if (event_amatsu == 4) {
 		mes "Priest, priest~";