;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NPCQuest_Check]
{
#ACT
Mov D0 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\NpcQuest_Def\14YoHwa_Naesung-0_000.txt] @Convert_14YoHwa_Naesung-0_000_0

[@getmission_Check]
#ACT
ReadValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@getmission_Check_0]
#ELSEACT
break

[@getmission_Check_0()]
#ACT
mov A1 %ARG(1)
mov A2 %ARG(2)

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [002] [open]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [002] [end]

#IF
Equal A1 "Q002"
Equal A2 "Start"
#ACT
Mov D0 1
Goto @002select
break

#ACT
LoadValue P3 "\QuestDiary\Judgement\Flag.txt" [017] [end]

#IF

check [771] 1
check [770] 0
Equal A1 "Q017"
Equal A2 "Start"
#ACT
Mov D0 1
GOTO @Normal_Talk
break

#IF

check [771] 1
check [770] 1
Equal A1 "Q017"
Equal A2 "Start"

#ACT
Mov D0 1
GOTO @017selectEnd
break

#IF

check [771] 0
check [770] 0
Equal A1 "Q017"
Equal A2 "Start"
Equal P3 0
#ACT
Mov D0 1
GOTO @017select
break


#IF
Equal D0 0
#ACT
GOTO @Normal_Talk
break


[@Normal_Talk]

begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\NpcQuest_Def\14YoHwa_Naesung-0_000.txt] @Convert_14YoHwa_Naesung-0_000_1

[@002select]
#CALL [Judgement\Story\002\002npc.txt] @002_YohwaSpeak

[@017select]
#CALL [Judgement\Story\1418\NPC017.txt] @017_talk

[@017selectEnd]
#CALL [Judgement\Story\1418\NPC017.txt] @017_End
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;