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

[@HelperTodayQuest]

{

#IF

Check [209] 0



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_0



#ACT

break



#IF

Check [209] 1

StartDailyQuest



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_1



#ACT

break



#IF

Check [209] 1

Check [409] 0

!StartDailyQuest



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_2



#ACT

break



#IF

Check [209] 1

Check [409] 1

!StartDailyQuest



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_3



#ACT

break





[@ReceiveTodayQuest]



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_4



#IF

Checklevel 11

#ACT

goto @ReceiveTodayQuest_Setting

break



#ELSESAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_5



[@ReceiveTodayQuest_Setting]

#CALL [TodayQuest\QT_SettingBook.txt] @SetDairyQuest



[@ConfirmTodayQuest]



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_6



#ACT

FormatStr "FLD_UserName='%s'" %USERNAME

ReadValueSql "TBL_DairyQuestUser" %A9 "FLD_Status" [@PRECall_SetDairyQuest_Check]



[@PRECall_SetDairyQuest_Check()]

#IF

#ACT

mov A0 %ARG(1)



#IF

Equal A0 "Ready"

#ACT

goto @Call_SetTodayQuest_Ready

break



#IF

Equal A0 "Act"

#ACT

goto @Call_SetTodayQuest_ACT

break



#IF

Equal A0 "End"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\HelperTodayBook.txt] @Convert_HelperTodayBook_7



#ACT

break





[@Call_SetTodayQuest_ACT]

#CALL [TodayQuest\QT_ActBook.txt] @Act_QuestDairyToday

[@Call_SetTodayQuest_Ready]

#CALL [TodayQuest\QT_ReadyBook.txt] @Ready_QuestDairyToday

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