;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@HelperSinGiSunQuest]
{
#IF
Check [203] 1
#ACT
FormatStr "FLD_SINUSERNAME='%s'" %USERNAME
ReadValueSql "TBL_SinGiSunQuest" %A9 "FLD_SINUSERNAME,FLD_SINMAINSTEP,FLD_SINSTEP_READY" [@HelperSinGiSunQuest_PreCheck]


[@HelperSinGiSunQuest_PreCheck()]
#IF
#ACT
Mov A8 %ARG(1)
mov D0 %ARG(2)
Mov D1 %ARG(3)

#IF
Equal A8 ""

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_0

#ACT
break

#IF
Equal D0 1
Equal D1 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_1

#ACT
break

#IF
Equal D0 1
Equal D1 2

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_2

#ACT
break

#IF
Equal D0 1
Equal D1 3

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_3

#ACT
break

#IF
Equal D0 1
Equal D1 4

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_4

#ACT
break

#IF
Equal D0 2
Equal D1 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_5

#ACT
break

#IF
Equal D0 2
Equal D1 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_6

#ACT
break

#IF
Equal D0 2
Equal D1 2

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_7

#ACT
break

#IF
Equal D0 2
Equal D1 3

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_8

#ACT
break

#IF
Equal D0 3
Equal D1 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_9

#ACT
break

#IF
Equal D0 3
Equal D1 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_10

#ACT
break

#IF
Equal D0 3
Equal D1 2

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_11

#ACT
break

#IF
Equal D0 4
Equal D1 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\HelperSinGiSunBook.txt] @Convert_HelperSinGiSunBook_12

#ACT
break
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;