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

[@Act_QuestDairyToday]

{

#IF

!StartDailyQuest

Check [209] 1

Check [409] 0

#ACT

FormatStr "FLD_USERNAME='%s'" %USERNAME

ReadValueSql "TBL_DairyQuestUser" %A9 "FLD_QuestIdx,FLD_TQCASE,FLD_TQFame,FLD_TQNPC,FLD_TQPosition" [@ACT_QuestDairyToday_Set]



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_0



[@ACT_QuestDairyToday_Set()]

#ACT

mov D0 %ARG(1)

Mov D2 %ARG(2)

mov D1 %ARG(3)

mov A0 %ARG(4)

mov A1 %ARG(5)



#IF

Equal D2 0

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition1Amount,FLD_TQCondition2,FLD_TQCondition2Amount,FLD_TQCondition3,FLD_TQCondition3Amount" [@ACT_QuestDairyToday_Set3_Case0]

break



#IF

Equal D2 1

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition2,FLD_TQCondition3,FLD_TQMap" [@ACT_QuestDairyToday_Set3_Case1]

break



#IF

Equal D2 2

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition2,FLD_TQCondition2Amount,FLD_TQCondition3,FLD_TQCondition3Amount,FLD_TQMap" [@ACT_QuestDairyToday_Set3_Case2]

break



#IF

Equal D2 3

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition1Amount,FLD_TQCondition2,FLD_TQCondition2Amount" [@ACT_QuestDairyToday_Set3_Case3]

break



#IF

Equal D2 4

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition2,FLD_TQCondition2Amount" [@ACT_QuestDairyToday_Set3_Case4]

break



#IF

Equal D2 5

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition2,FLD_TQCondition2Amount" [@ACT_QuestDairyToday_Set3_Case5]

break



#IF

Equal D2 6

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1" [@ACT_QuestDairyToday_Set3_Case6]

break



#IF

Equal D2 7

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQCondition1,FLD_TQCondition2,FLD_TQCondition2Amount,FLD_TQCondition3,FLD_TQCondition3Amount" [@ACT_QuestDairyToday_Set3_Case7]

break



#IF

Equal D2 8

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQMap" [@ACT_QuestDairyToday_Set3_Case8]

break



#IF

Equal D2 9

#ACT

FormatStr "FLD_TQIDX=%s" %D0

ReadValueSql "TBL_DairyQuestSet" %A9 "FLD_TQMap" [@ACT_QuestDairyToday_Set3_Case9]

break





[@ACT_QuestDairyToday_Set3_Case0()]

#IF

#ACT

mov A2 %ARG(1)

mov D3 %ARG(2)

mov A3 %ARG(3)

mov D4 %ARG(4)

mov A4 %ARG(5)

mov D5 %ARG(6)



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_1



#IF

!Equal A3 "NULL"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_2



#IF

!Equal A4 "NULL"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_3



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_4



[@ACT_QuestDairyToday_Set3_Case1()]

#ACT

mov A2 %ARG(1)

mov A3 %ARG(2)

mov A4 %ARG(3)

mov A5 %ARG(4)



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_5



#IF

!Equal A3 "NULL"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_6



#IF

!Equal A4 "NULL"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_7



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_8



[@ACT_QuestDairyToday_Set3_Case2()]

#IF

#ACT

mov A2 %ARG(1)

mov A3 %ARG(2)

mov D3 %ARG(3)

mov A4 %ARG(4)

mov D4 %ARG(5)

mov A5 %ARG(6)



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_9



#IF

!Equal A4 "NULL"



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_10



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_11



[@ACT_QuestDairyToday_Set3_Case3()]

#ACT

mov A2 %ARG(1)

mov D3 %ARG(2)

mov A3 %ARG(3)

mov D4 %ARG(4)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_12



[@ACT_QuestDairyToday_Set3_Case4()]

#ACT

mov A2 %ARG(1)

mov A3 %ARG(2)

mov D3 %ARG(3)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_13



[@ACT_QuestDairyToday_Set3_Case5()]

#ACT

mov A2 %ARG(1)

mov A3 %ARG(2)

mov D3 %ARG(3)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_14



[@ACT_QuestDairyToday_Set3_Case6()]

#ACT

mov A2 %ARG(1)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_15



[@ACT_QuestDairyToday_Set3_Case7()]

#ACT

mov A2 %ARG(1)

Mov A3 %ARG(2)

Mov D3 %ARG(3)

Mov A4 %ARG(4)

Mov D4 %ARG(5)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_16



[@ACT_QuestDairyToday_Set3_Case8()]

#ACT

mov A2 %ARG(1)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_17



[@ACT_QuestDairyToday_Set3_Case9()]

#ACT

mov A2 %ARG(1)



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_ActBook.txt] @Convert_QT_ActBook_18



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