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







[@Banya_Youji_22]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" [@Youji_Next22]

[@Youji_Next22()]
#IF
#ACT
mov A0 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 9
#ACT
GOTO @BanyaYouji_STEP14
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 8
#ACT
GOTO @BanyaYouji_STEP13
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 4
#ACT
GOTO @BanyaYouji_STEP12
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 3
checkitem 跳蚤皮 10
#ACT
GOTO @BanyaYouji_STEP11
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 3
#ACT
GOTO @BanyaYouji_STEP10
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 2
#ACT
GOTO @BanyaYouji_STEP9
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 6
#ACT
GOTO @BanyaYouji_STEP8_1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 5
#ACT
GOTO @BanyaYouji_STEP8
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 4
#ACT
GOTO @BanyaYouji_STEP7
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 3
#ACT
GOTO @BanyaYouji_STEP6
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 2
#ACT
GOTO @BanyaYouji_STEP5
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 1
#ACT
GOTO @BanyaYouji_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 22
Equal D1 3
#ACT
GOTO @BanyaYouji_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 22
Equal D1 2
#ACT
GOTO @BanyaYouji_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 22
Equal D1 1
#ACT
GOTO @BanyaYouji_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_0

#ACT
BREAK


[@BanyaYouji_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_1

[@BanyaYouji_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_2

[@BanyaYouji_STEP1_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_3

[@BanyaYouji_STEP1_2]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_4

[@BanyaYouji_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_5

[@BanyaYouji_STEP3]
#IF
#ACT
SET [306] 1
Mov A0 "AreaQuest6"
Mov D0 1
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=23"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_6

[@BanyaYouji_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_7

[@BanyaYouji_STEP4_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_8

[@BanyaYouji_STEP4_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_9

[@BanyaYouji_STEP4_2]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_10

[@BanyaYouji_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_11

[@BanyaYouji_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_12

[@BanyaYouji_STEP6_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_13

[@BanyaYouji_STEP6_1]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=4"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_14

[@BanyaYouji_STEP7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_15

[@BanyaYouji_STEP8]
#IF
#ACT

FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=6"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_16

[@BanyaYouji_STEP8_1]
#IF
#ACT
SET [306] 1
Mov A0 "AreaQuest6"
Mov D0 2
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=24"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_17

[@BanyaYouji_STEP9]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_18

[@BanyaYouji_STEP9_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_19

[@BanyaYouji_STEP9_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_20

[@BanyaYouji_STEP9_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_21

[@BanyaYouji_STEP9_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_22

[@BanyaYouji_STEP9_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_23

[@BanyaYouji_STEP9_7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_24

[@BanyaYouji_STEP9_6]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=3"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_25

[@BanyaYouji_STEP10]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_26

[@BanyaYouji_STEP11]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_27

[@BanyaYouji_STEP11_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_28

[@BanyaYouji_STEP11_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_29

[@BanyaYouji_STEP11_3]
#IF
#ACT
give 百里香 1
give 财富之书 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=4"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_30

[@BanyaYouji_STEP12]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_31

[@BanyaYouji_STEP13]
#IF
checkitem 解毒药 1
#ACT
take 解毒药 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=10"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_32


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_33

#ELSEACT
break

[@BanyaYouji_STEP14]
#IF
checkitem 解毒药 1
#ACT
take 解毒药 1
SET [306] 1
Mov A0 "AreaQuest6"
Mov D0 4
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=25"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_34


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_35

#ELSEACT
break

}




[@Byalok_suna_22]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" [@suna_Next22]

[@suna_Next22()]
#IF
#ACT
mov A0 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)

#IF
Equal A0 %USERNAME
Equal D0 22
Equal D1 3
#ACT
GOTO @Byaloksuna_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 22
Equal D1 2
#ACT
GOTO @BanyaYouji_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_36

#ACT
BREAK

[@BanyaYouji_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_37

[@BanyaYouji_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_38

[@BanyaYouji_STEP1_2]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=3"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_39

[@Byaloksuna_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_40

}





[@Banya_noin_23]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" [@noin_Next23]

[@noin_Next23()]
#IF
#ACT
mov A0 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 10
#ACT
GOTO @Banyanoin_STEP8
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 8
#ACT
GOTO @Banyanoin_STEP7
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 6
#ACT
GOTO @Banyanoin_STEP6
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 5
#ACT
GOTO @Banyanoin_STEP5_2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 4
#ACT
GOTO @Banyanoin_STEP5
BREAK


#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 2
#ACT
GOTO @Banyanoin_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 1
#ACT
GOTO @Banyanoin_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 3
#ACT
GOTO @Banyanoin_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 2
#ACT
GOTO @Banyanoin_STEP1
BREAK


#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_41

#ACT
BREAK

[@Banyanoin_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_42

[@Banyanoin_STEP1_1]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=3"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_43

[@Banyanoin_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_44

[@Banyanoin_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_45

[@Banyanoin_STEP3_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_46

[@Banyanoin_STEP3_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_47

[@Banyanoin_STEP3_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_48

[@Banyanoin_STEP3_4]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_49

[@Banyanoin_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_50

[@Banyanoin_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_51

[@Banyanoin_STEP5_1]
#IF
checkitem 百里香 1
#ACT
take 百里香 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=5"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_52


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_53

#ELSEACT
break

[@Banyanoin_STEP5_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_54

[@Banyanoin_STEP5_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_55

[@Banyanoin_STEP5_4]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=6"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_56

[@Banyanoin_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_57

[@Banyanoin_STEP7]
#IF
checkitem 解毒药 1
#ACT
take 解毒药 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=9"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_58


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_59

#ELSEACT
break

[@Banyanoin_STEP8]
#IF
checkitem 解毒药 1
#ACT
take 解毒药 1
SET [306] 1
Mov A0 "AreaQuest6"
Mov D0 3
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=25"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_60


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_61

#ELSEACT
break

}





[@Bulok_minwok_23]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" [@minwok_23]

[@minwok_23()]
#IF
#ACT
mov A0 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 5
#ACT
GOTO @Bulokminwok_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 23
Equal D1 4
#ACT
GOTO @Bulokminwok_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_62

#ACT
BREAK


[@Bulokminwok_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_63

[@Bulokminwok_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_64

[@Bulokminwok_STEP1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_65

[@Bulokminwok_STEP1_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_66

[@Bulokminwok_STEP1_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_67

[@Bulokminwok_STEP1_5]
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=5"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_68

[@Bulokminwok_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_69

}




[@Bulok_wonsuk_23]
{
#IF
#ACT
FormatStr "FLD_CHAR='%s'" %USERNAME
ReadValueSql "TBL_BasicCharQuest" %A9 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" [@wonsuk_Next23]

[@wonsuk_Next23()]
#IF
#ACT
mov A0 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 8
#ACT
GOTO @Bulokwonsuk_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 7
#ACT
GOTO @Bulokwonsuk_STEP1_3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 24
Equal D1 6
#ACT
GOTO @Bulokwonsuk_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_70

#ACT
BREAK

[@Bulokwonsuk_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_71

[@Bulokwonsuk_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_72

[@Bulokwonsuk_STEP1_2]
#IF
checkitem 财富之书 1
#ACT
take 财富之书 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=7"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_73


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_74

#ELSEACT
break


[@Bulokwonsuk_STEP1_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_75

[@Bulokwonsuk_STEP1_4]
#IF
#ACT
give 解毒药 2
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=8"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_76

[@Bulokwonsuk_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide6\ChoBoGuide6.txt] @Convert_ChoBoGuide6_77

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