summaryrefslogtreecommitdiff
path: root/npc/jobs/1-1/mage.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/jobs/1-1/mage.txt')
-rw-r--r--npc/jobs/1-1/mage.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/npc/jobs/1-1/mage.txt b/npc/jobs/1-1/mage.txt
index ce5784770..c382358a2 100644
--- a/npc/jobs/1-1/mage.txt
+++ b/npc/jobs/1-1/mage.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= kobra_k88; L0ne_W0lf
//===== Current Version: =====================================
-//= 1.8
+//= 1.9
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -21,6 +21,7 @@
//= No longer uses function "F_ToHigh"
//= 1.7a Fixed a "If" in the quest. (bugreport:489) [Samuray22]
//= 1.8 Added Quest Log commands. [L0ne_W0lf]
+//= 1.9 Fixed an issue with completequest by adding checkquest. [Kisuka]
//============================================================
geffen_in,164,124,4 script Mage Guildsman 123,{
@@ -208,10 +209,18 @@ geffen_in,164,124,4 script Mage Guildsman 123,{
callfunc "Job_Change",Job_Mage;
callfunc "F_ClearJobVar";
set Zeny,Zeny+50;
- completequest 1005;
- completequest 1006;
- completequest 1007;
- completequest 1008;
+ if(checkquest(1005) != "-1") {
+ completequest 1005;
+ }
+ else if(checkquest(1006) != "-1") {
+ completequest 1006;
+ }
+ else if(checkquest(1007) != "-1") {
+ completequest 1007;
+ }
+ else {
+ completequest 1008;
+ }
mes "[Mage Guildsman]";
mes "'Welcome to My World~'";
mes "Heh heh, I just wanted to say that. You know, it's a quote from a well-known movie~";