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



[@MusaQuestStep1]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1=1"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_0

[@Ignore22LevelQuestUser]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_1

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

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

#IF
Equal D0 1
Equal D1 1
#ACT
goto @Mir3_reload_1
break

#IF
Equal D0 1
Equal D1 0
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
UpdateValueSql "TBL_BasicCharQuest" %A2 "FLD_STATUS1_RDY=1"
goto @Mir3_reload_1
BREAK

[@Mir3_reload_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_2

[@StartLevel1Quest_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_3

[@Mir3_Help]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_4

[@StartINTERQ1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_5

[@StartINTERQ1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_6

[@StartINTERQ1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_7

[@StartINTERQ1_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_8

[@StartINTERQ1_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_9

[@StartINTERQ1_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_10

[@StartINTERQ1_6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_11

[@StartINTERQ1_7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_12

[@StartINTERQ1_8]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_13

[@StartINTERQ1_9]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_14

[@StartINTERQ1_10]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_15

[@StartINTERQ1_11]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_16

[@StartINTERW1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_17

[@StartINTERN1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_18

[@StartINTERN1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_19

[@StartINTERN1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_20

[@StartINTERC1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_21

[@StartINTERV1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_22

[@StartINTERR1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_23

[@StartINTERR1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_24

[@StartINTER,1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_25

[@StartINTER,1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_26

[@StartINTERE1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_27

[@StartLevel1Quest_3]

#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=2"
Delaygoto [local] 300 @BasicUnLimitRootControl

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_28

[@StartLevel1Quest_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @Convert_WarriorQuestLevel_29

}




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

[@warriorQuestStep2_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\WarriorQuestLevel.txt] [Convert] [Msg0]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl

}




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

[@warriorQuestStep3_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\WarriorQuestLevel.txt] [Convert] [Msg1]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




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

[@warriorQuestStep4_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\WarriorQuestLevel.txt] [Convert] [Msg2]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




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

[@warriorQuestStep5_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\WarriorQuestLevel.txt] [Convert] [Msg3]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}




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

[@warriorQuestStep8_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\WarriorQuestLevel.txt] [Convert] [Msg4]
EventMsg [Private] %A7
Delaygoto [local] 300 @BasicUnLimitRootControl
#ELSEACT
Delaygoto [local] 300 @BasicUnLimitRootControl
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;