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

[@NPCSetDairyQuest]

{

#IF

Check [209] 1

Check [409] 0

#ACT

FormatStr "FLD_USERNAME='%s'" %USERNAME

ReadValueSql "TBL_DairyQuestUser" %A9 "FLD_QuestIdx,FLD_Status,FLD_TQNPC" [@NPCSetDairyQuest_Set]



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_NPCSetting.txt] @Convert_QT_NPCSetting_0





#ELSESAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_NPCSetting.txt] @Convert_QT_NPCSetting_1



[@NPCSetDairyQuest_Set()]

#ACT

mov D0 %ARG(1)

mov A0 %ARG(2)

Mov A1 %ARG(3)



#IF

!StartDailyQuest

Equal A0 "Ready"

Equal A1 %NPCNAME

#ACT

goto @NPCSetDairyQuest_Ready

break



#IF

!StartDailyQuest

Equal A0 "Act"

#ACT

goto @NPCSetDairyQuest_Act

break



#IF



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\TodayQuest\QT_NPCSetting.txt] @Convert_QT_NPCSetting_2



[@NPCSetDairyQuest_Ready]

#CALL [TodayQuest\QT_NPCReady.txt] @NPCSet_QuestDairyToday



[@NPCSetDairyQuest_Act]

#CALL [TodayQuest\QT_NPCAct.txt] @NPCACT_QuestDairyToday

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