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



[@taoistQuestStep2]
{
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
ReadValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1,FLD_STATUS1_RDY" [@taoistQuestStep2_Check]

[@taoistQuestStep2_Check()]
#IF
#ACT
mov D0 %ARG(1)
mov D1 %ARG(2)

#IF
Equal D0 2
Equal D1 0
#ACT
SET [101] 1
SET [301] 0
SET [200] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] [Convert] [Msg0]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl

}




[@taoistQuestStep3]
{
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
ReadValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1,FLD_STATUS1_RDY" [@taoistQuestStep3_Check]

[@taoistQuestStep3_Check()]
#IF
#ACT
mov D0 %ARG(1)
mov D1 %ARG(2)

#IF
Equal D0 3
Equal D1 0
#ACT
SET [101] 1
SET [301] 0
SET [200] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] [Convert] [Msg1]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




[@taoistQuestStep4]
{
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
ReadValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1,FLD_STATUS1_RDY" [@taoistQuestStep4_Check]

[@taoistQuestStep4_Check()]
#IF
#ACT
mov D0 %ARG(1)
mov D1 %ARG(2)

#IF
Equal D0 4
Equal D1 0
#ACT
SET [101] 1
SET [301] 0
SET [200] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] [Convert] [Msg2]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




[@taoistQuestStep5]
{
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
ReadValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1,FLD_STATUS1_RDY" [@taoistQuestStep5_Check]

[@taoistQuestStep5_Check()]
#IF
#ACT
mov D0 %ARG(1)
mov D1 %ARG(2)

#IF
Equal D0 5
Equal D1 0
#ACT
SET [101] 1
SET [301] 0
SET [200] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] [Convert] [Msg3]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




[@taoistQuestStep8]
{
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
ReadValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1,FLD_STATUS1_RDY" [@taoistQuestStep8_Check]

[@taoistQuestStep8_Check()]
#IF
#ACT
mov D0 %ARG(1)
mov D1 %ARG(2)

#IF
Equal D0 8
Equal D1 0
#ACT
SET [101] 1
SET [301] 0
SET [200] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] [Convert] [Msg4]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;