;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@HelperAreaQuest]
{
#IF
Check [101] 1
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1" [@HelperAreaQuest_PreCheck]

[@HelperAreaQuest_PreCheck()]
#ACT
Mov A8 %ARG(1)
mov D0 %ARG(2)

#IF
Equal A8 ""

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_0

#ACT
break

#IF
check [200] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_1

#ACT
break

#IF
Check [112] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_2

#IF
Check [111] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_3

#IF
Check [110] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_4

#IF
Check [109] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_5

#IF
Check [108] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_6

#IF
Check [107] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_7

#IF
Check [106] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_8

#IF
Check [105] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_9

#IF
Check [104] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_10

#IF
Check [103] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_11

#IF
Check [102] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_12

#IF
Check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_13

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_14

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_15

[@Quest_reset]
#IF
Check [113] 0
Check [112] 1
Check [111] 1
Check [110] 1
Check [109] 1
Check [108] 1
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_16

#IF
Check [112] 0
Check [111] 1
Check [110] 1
Check [109] 1
Check [108] 1
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_17

#IF
Check [111] 0
Check [110] 1
Check [109] 1
Check [108] 1
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_18

#IF
Check [110] 0
Check [109] 1
Check [108] 1
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_19

#IF
Check [109] 0
Check [108] 1
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_20

#IF
Check [108] 0
Check [107] 1
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_21

#IF
Check [107] 0
Check [106] 1
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_22

#IF
Check [106] 0
Check [105] 1
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_23

#IF
Check [105] 0
Check [104] 1
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_24

#IF
Check [104] 0
Check [103] 1
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_25

#IF
Check [103] 0
Check [102] 1
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_26

#IF
Check [102] 0
check [101] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_27

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_28

[@Quest_reset_12]
#IF
checkgold 400000
#ACT
take 金币 400000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=32"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_11]
#IF
checkgold 350000
#ACT
take 金币 350000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=30"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_10]
#IF
checkgold 300000
#ACT
take 金币 300000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=29"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_9]
#IF
checkgold 250000
#ACT
take 金币 250000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=28"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_8]
#IF
checkgold 200000
#ACT
take 金币 200000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=27"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_7]
#IF
checkgold 160000
#ACT
take 金币 160000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=25"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_6]
#IF
checkgold 130000
#ACT
take 金币 130000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=22"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_5]
#IF
checkgold 100000
#ACT
take 金币 100000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=21"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_4]
#IF
checkgold 70000
#ACT
take 金币 70000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=20"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_3]
#IF
checkgold 50000
#ACT
take 金币 50000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=19"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_2]
#IF
checkgold 30000
#ACT
take 金币 30000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=12"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No


[@Quest_reset_1]
#IF
checkgold 10000
#ACT
take 金币 10000
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=2"
goto @ReQuest_ok

#ELSEACT
goto @ReQuest_No



[@ReQuest_ok]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_29

[@ReQuest_No]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\HelperAreaBook.txt] @Convert_HelperAreaBook_30

[@JunMunConfiremFile]
#CALL [AreaQuest\MusaScrollQuestMain.txt] @MusaScrollQuest

[@HelperAreaQuest_Case1]
#CALL [AreaQuest\ChoBoGuide1\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide1

[@HelperAreaQuest_Case2]
#CALL [AreaQuest\ChoBoGuide2\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide2

[@HelperAreaQuest_Case3]
#CALL [AreaQuest\ChoBoGuide3\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide3

[@HelperAreaQuest_Case4]
#CALL [AreaQuest\ChoBoGuide4\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide4

[@HelperAreaQuest_Case5]
#CALL [AreaQuest\ChoBoGuide5\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide5

[@HelperAreaQuest_Case6]
#CALL [AreaQuest\ChoBoGuide6\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide6

[@HelperAreaQuest_Case7]
#CALL [AreaQuest\ChoBoGuide7\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide7

[@HelperAreaQuest_Case8]
#CALL [AreaQuest\ChoBoGuide8\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide8

[@HelperAreaQuest_Case9]
#CALL [AreaQuest\ChoBoGuide9\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide9

[@HelperAreaQuest_Case10]
#CALL [AreaQuest\ChoBoGuide10\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide10

[@HelperAreaQuest_Case11]
#CALL [AreaQuest\ChoBoGuide11\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide11

[@HelperAreaQuest_Case12]
#CALL [AreaQuest\ChoBoGuide12\HelperChoBoGuide.txt] @HelperAreaBook_ChoBoGuide12

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