Selaa lähdekoodia

Fixed potential script (*)quest warning

Atemo 8 vuotta sitten
vanhempi
commit
afd6f2027d
2 muutettua tiedostoa jossa 11 lisäystä ja 5 poistoa
  1. 9 4
      npc/pre-re/jobs/1-1/mage.txt
  2. 2 1
      npc/quests/quests_amatsu.txt

+ 9 - 4
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]";

+ 2 - 1
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~";