;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



[@026NPC_governer]
{
begin
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [026] [QuestUserName]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [026] [GrupTimeOver]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [026] [EventStart]
LoadValue P3 "QuestDiary\Judgement\Flag.txt" [026] [QuestSuccess]

#IF
!CheckLevel 22
#ACT
Goto @026Level_Low
break

#IF
Equal B1 ""
Equal P1 0
Equal P2 0
Equal P3 0
#ACT
GOTO @026_GiveQUEST
break
#IF
Equal B1 %username
Equal P1 1
Equal P2 1
Equal P3 0
#ACT
GOTO @026_FailQUEST
break


#IF
Equal B1 %username
Equal P1 0
Equal P2 0
Equal P3 0
#ACT
GOTO @026_waitingQUEST
break
#IF
Equal B1 %username
Equal P1 1
Equal P2 0
Equal P3 0
#ACT
GOTO @026_TimeOverQUEST
break

#IF
Equal B1 %username
Equal P2 1
Equal P3 1
#ACT
GOTO @026_resultQUEST
break

#ELSEACT
GOTO @026NPC_Normal
break
end

[@026_FailQUEST]
begin
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [026] [QuestUserName] ""
Savevalue "QuestDiary\Judgement\Flag.txt" [026] [End] 1
Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_0

[@026_resultQUEST]
begin
#ACT
loadvalue A1 "GM_Def\JOB\Reward.txt" [026] [Item]
loadvalue P1 "GM_Def\JOB\Reward.txt" [026] [Num]

give %A1 %P
SaveValue "QuestDiary\Judgement\Flag.txt" [026] [QuestUserName] ""
Savevalue "QuestDiary\Judgement\Flag.txt" [026] [End] 1
Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_1

[@026Level_Low]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_2

[@026NPC_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_3

[@026_GiveQUEST]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_4

[@026_GiveQUEST_1]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_5

[@026_GiveQUEST_2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_6

[@026_GiveQUEST_3]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_7

[@026_GiveQUEST_4]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_8

[@026_GiveQUEST_5]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_9

[@026_GiveQUEST_6]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_10

[@026_GiveQUEST_7]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_11

[@026_GiveQUEST_10]
begin
#ACT
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [021] [QuestUserName]
#IF
Equal B1 ""

#ACT
saveValue "QuestDiary\Judgement\Flag.txt" [021] [QuestUserName] %username


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_12

#ELSEACT
Goto @026Slow_Step
break
end


[@026_talk_2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_13

[@026Slow_Step]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_14

[@026_waitingQUEST]
begin
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC026.txt] @Convert_NPC026_15

[@026_Eventstart]
begin
#IF
#ACT
Savevalue "QuestDiary\Judgement\Flag.txt" [026] [Eventstart] 1
Groupmove "DQ1600_02, 38 , 167, 5" %Username
Goto @Eventmsg
end

[@Eventmsg]
#CALL [Judgement\Story\1418\026Event.txt] @set026A
end
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;