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

[@008B_jin]
{

#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [008] [EventStart]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [008] [GiveTimeOver]
LoadValue P3 "QuestDiary\Judgement\Flag.txt" [008] [Result2]
LoadValue P4 "QuestDiary\Judgement\Flag.txt" [008] [HumanCount2]
LoadValue P5 "QuestDiary\Judgement\Flag.txt" [008] [Result]
MovR P9 100

#IF
!checklevel 22
#ACT
Goto @008B_Low_Level
break

#IF
Large P4 20
Equal P1 1
Equal P2 0
Equal P3 0
Equal P5 0
#ACT
Goto @008B_QusestClose
break

#IF
check [782] 1
Equal P1 1
Equal P3 1
Equal P5 0
#ACT
Goto @008B_QuestSuccess
break

#IF
Equal P1 1
Equal P2 1
Equal P3 0
#ACT
Goto @008B_GiveTimeover
break

#IF
Equal P1 1
Equal P2 0
Equal P3 0
Equal P5 0
#ACT
Goto @008B_Questdoing
break


#IF
Equal P1 0
Equal P2 0
Equal P3 0
Small P9 100
#ACT
GOTO @008B_GiveQUEST
break

#ELSEACT
GOTO @008BNPC_Normal
break


[@008BNPC_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_0

[@008B_QuestSuccess]
begin
#IF
check [782] 1
#ACT
Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0
set [782] 0
set [781] 0
mov A0 "Judgement"
mov D0 8
mov D1 2
mov D2 0
mov D3 0
goto @EveryThingReward

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_1

#ELSEACT
goto @008BNPC_Normal
end


[@008B_GiveQUEST]
begin
#ACT
set [782] 0
set [781] 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_2

[@008B_GetQuest]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_3

[@008B_NOQuest]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_4

[@008B_Questdoing]
begin
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [008] [HumanCount2]
#IF
small P1 20

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_5

#ELSEACT
Goto @008B_QusestClose
break
end
[@008B_okstart]
begin
#IF
!CheckLevel 22
#ACT
Goto @008_Low_Level
break


#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [008] [HumanCount2]
#IF
Large P1 20
#ACT
Goto @008B_QusestClose
break
#ELSEACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [008] [HumanCount2]
set [782] 1
set [781] 0
Inc P1 1
SaveValue "QuestDiary\Judgement\Flag.txt" [008] [HumanCount2] %P1
Mapmove DQ1600_01 29 34
end

[@008B_Low_Level]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_6

[@008B_nostart]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_7

[@008B_GiveTimeover]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_8

[@008B_QusestClose]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\008\NPC008B.txt] @Convert_NPC008B_9

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;