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



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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 10
#ACT
GOTO @Bichunwongdaein_STEP8
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 9
#ACT
GOTO @Bichunwongdaein_STEP7
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 6
#ACT
GOTO @Bichunwongdaein_STEP6
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 5
#ACT
GOTO @Bichunwongdaein_STEP5
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 4
#ACT
GOTO @Bichunwongdaein_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 3
#ACT
GOTO @Bichunwongdaein_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 2
#ACT
GOTO @Bichunwongdaein_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 1
#ACT
GOTO @Bichunwongdaein_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_0

#ACT
BREAK

[@Bichunwongdaein_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_1

[@Bichunwongdaein_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_2

[@Bichunwongdaein_STEP1_2]
#IF
#ACT
SET [199] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_3

[@Bichunwongdaein_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_4

[@Bichunwongdaein_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_5

[@Bichunwongdaein_STEP3_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_6

[@Bichunwongdaein_STEP3_2]
#IF
checkitem 沃玛金牌 1
#ACT
SET [199] 0
take 沃玛金牌 1
Mov A0 "AreaQuest8"
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=4"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_7


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_8

#ELSEACT
break

[@Bichunwongdaein_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_9

[@Bichunwongdaein_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_10

[@Bichunwongdaein_STEP5_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_11

[@Bichunwongdaein_STEP5_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_12

[@Bichunwongdaein_STEP5_3]
#IF
#ACT
SET [199] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=6"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_13

[@Bichunwongdaein_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_14

[@Bichunwongdaein_STEP7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_15

[@Bichunwongdaein_STEP7_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_16

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_17

[@Bichunwongdaein_STEP8]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_18

}





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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 22
#ACT
GOTO @Bichun_mumaungnoin_STEP13
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 21
#ACT
GOTO @Bichun_mumaungnoin_STEP12
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 20
#ACT
GOTO @Bichun_mumaungnoin_STEP11_3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 19
#ACT
GOTO @Bichun_mumaungnoin_STEP11
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 17
#ACT
GOTO @Bichun_mumaungnoin_STEP10
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 16
#ACT
GOTO @Bichun_mumaungnoin_STEP9
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 15
#ACT
GOTO @Bichun_mumaungnoin_STEP8
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 14
#ACT
GOTO @Bichun_mumaungnoin_STEP7
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 12
#ACT
GOTO @Bichun_mumaungnoin_STEP6
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 11
#ACT
GOTO @Bichun_mumaungnoin_STEP5
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 9
#ACT
GOTO @Bichun_mumaungnoin_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 8
#ACT
GOTO @Bichun_mumaungnoin_STEP3_1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 7
#ACT
GOTO @Bichun_mumaungnoin_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 5
#ACT
GOTO @Bichun_mumaungnoin_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 4
#ACT
GOTO @Bichun_mumaungnoin_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_19

#ACT
BREAK

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_20

#ACT
BREAK


[@Bichun_mumaungnoin_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_21

[@Bichun_mumaungnoin_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_22

[@Bichun_mumaungnoin_STEP1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_23

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_24

[@Bichun_mumaungnoin_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_25

[@Bichun_mumaungnoin_STEP3]
#IF
checkitem 无名日志 1
#ACT
SET [199] 0
take 无名日志 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=8"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_26


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_27

#ELSEACT
break

[@Bichun_mumaungnoin_STEP3_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_28

[@Bichun_mumaungnoin_STEP3_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_29

[@Bichun_mumaungnoin_STEP3_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_30

[@Bichun_mumaungnoin_STEP3_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_31

[@Bichun_mumaungnoin_STEP3_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_32

[@Bichun_mumaungnoin_STEP3_6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_33

[@Bichun_mumaungnoin_STEP3_7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_34

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_35

[@Bichun_mumaungnoin_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_36

[@Bichun_mumaungnoin_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_37

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_38

[@Bichun_mumaungnoin_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_39

[@Bichun_mumaungnoin_STEP7]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_40

[@Bichun_mumaungnoin_STEP7_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_41

[@Bichun_mumaungnoin_STEP7_2]
#IF
#ACT
SET [199] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=15"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_42

[@Bichun_mumaungnoin_STEP8]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_43

[@Bichun_mumaungnoin_STEP9]
#IF
checkitem 灵魂明珠 1
#ACT
SET [199] 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_44


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_45

#ELSEACT
break

[@Bichun_mumaungnoin_STEP9_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_46

[@Bichun_mumaungnoin_STEP9_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_47

[@Bichun_mumaungnoin_STEP9_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_48

[@Bichun_mumaungnoin_STEP9_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_49

[@Bichun_mumaungnoin_STEP9_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_50

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_51

[@Bichun_mumaungnoin_STEP10]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_52

[@Bichun_mumaungnoin_STEP11]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_53

[@Bichun_mumaungnoin_STEP11_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_54

[@Bichun_mumaungnoin_STEP11_2]
#IF
checkitem 灵魂明珠 1
checkitem 沃玛神铁锤 1
#ACT
take 灵魂明珠 1
take 沃玛神铁锤 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=20"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_55


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_56

#ELSEACT
break

[@Bichun_mumaungnoin_STEP11_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_57

[@Bichun_mumaungnoin_STEP11_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_58

[@Bichun_mumaungnoin_STEP11_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_59

[@Bichun_mumaungnoin_STEP11_7]
#IF
#ACT
set [180] 1
SET [308] 1
set [199] 0
Mov A0 "AreaQuest8"
Mov D0 2
Mov D1 1
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=28"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_60

[@Bichun_mumaungnoin_STEP11_6]
#IF
#ACT
set [180] 0
set [199] 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=21"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_61

[@Bichun_mumaungnoin_STEP12]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_62

[@Bichun_mumaungnoin_STEP13]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_63

[@Bichun_mumaungnoin_STEP13_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_64

[@Bichun_mumaungnoin_STEP13_2]
#IF
Checkjob warrior
#ACT
Mov D2 1

#IF
Checkjob wizard
#ACT
Mov D2 2

#IF
Checkjob taoist
#ACT
Mov D2 3

#IF
#ACT
set [199] 0
SET [308] 1
Mov A0 "AreaQuest8"
Mov D0 2
Mov D1 2
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=0"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=28"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_65

}






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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 13
#ACT
GOTO @SamakMuyouksang_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 11
#ACT
GOTO @SamakMuyouksang_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 10
#ACT
GOTO @SamakMuyouksang_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_66

#ACT
BREAK

[@SamakMuyouksang_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_67

[@SamakMuyouksang_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_68

[@SamakMuyouksang_STEP1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_69

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_70

[@SamakMuyouksang_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_71

[@SamakMuyouksang_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_72

[@SamakMuyouksang_STEP3_1]
#IF
checkitem 地狱神钟 1
#ACT
take 地狱神钟 1
give 沃玛金牌 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=14"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_73


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_74

#ELSEACT
break

}





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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 12
#ACT
GOTO @Silnak_SuksangNpc_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_75

[@Silnak_SuksangNpc_STEP1]
#IF
checkhum DQ503_001 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_76

#ACT
break


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_77

[@TurnReft]
#IF
#ACT
Mov A0 "左"
goto @TurnMenu


[@TurnRight]
#IF
#ACT
Mov A0 "右"
goto @TurnMenu

[@TurnMenu]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_78

[@TurnReft_1]
#IF
#ACT
mov A1 "左"
goto @TurnMenu_1

[@TurnRight_1]
#IF
#ACT
Mov A1 "右"
goto @TurnMenu_1

[@TurnMenu_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_79

[@TurnReft_2]
#IF
#ACT
mov A2 "左"
goto @TurnMenu_2

[@TurnRight_2]
#IF
#ACT
Mov A2 "右"
goto @TurnMenu_2

[@TurnMenu_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_80

[@TurnReft_3]
#IF
#ACT
mov A3 "左"
goto @TurnMenu_3

[@TurnRight_3]
#IF
#ACT
Mov A3 "右"
goto @TurnMenu_3

[@TurnMenu_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_81

[@TurnReft_4]
#IF
#ACT
mov A4 "左"
goto @TurnMenu_4

[@TurnRight_4]
#IF
#ACT
Mov A4 "右"
goto @TurnMenu_4

[@TurnMenu_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_82

#ACT
Monclear DQ503_001

[@TurnReft_5]
#IF
#ACT
mov A5 "左"
goto @TurnMenu_5

[@TurnRight_5]
#IF
#ACT
Mov A5 "右"
goto @TurnMenu_5


[@TurnMenu_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_83

[@Input_1]
#IF
Equal A0 "右"
Equal A1 "右"
Equal A2 "左"
Equal A3 "右"
Equal A4 "左"
#ACT
Mapmove DQ503_001 37 20
MONGENP "DQ503_001,30,25,5" 火焰沃玛 10
MONGENP "DQ503_001,18,42,5" 火焰沃玛 10
MONGENP "DQ503_001,14,59,5" 火焰沃玛 10
MONGENP "DQ503_001,31,89,10" 火焰沃玛 10
MONGENP "DQ503_001,51,70,10" 火焰沃玛 10
MONGENP "DQ503_001,86,73,10" 火焰沃玛 10
MONGENP "DQ503_001,59,46,10" 火焰沃玛 10
MONGENP "DQ503_001,79,25,10" 火焰沃玛 10
MONGENP "DQ503_001,30,25,5" 沃玛战士 10
MONGENP "DQ503_001,18,42,5" 沃玛战士 10
MONGENP "DQ503_001,14,59,5" 沃玛战士 10
MONGENP "DQ503_001,31,89,10" 沃玛战士 10
MONGENP "DQ503_001,51,70,10" 沃玛战士 10
MONGENP "DQ503_001,86,73,10" 沃玛战士 10
MONGENP "DQ503_001,59,46,10" 沃玛战士 10
MONGENP "DQ503_001,79,25,10" 沃玛战士 10
MONGENP "DQ503_001,30,25,5" 暗黑战士 3
MONGENP "DQ503_001,18,42,5" 暗黑战士 2
MONGENP "DQ503_001,14,59,5" 暗黑战士 2
MONGENP "DQ503_001,31,89,10" 暗黑战士 3
MONGENP "DQ503_001,51,70,10" 暗黑战士 2
MONGENP "DQ503_001,86,73,10" 暗黑战士 2
MONGENP "DQ503_001,59,46,10" 暗黑战士 3
MONGENP "DQ503_001,79,25,10" 暗黑战士 3

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_84

#ELSEACT
map 1
delaygoto [local] 3 @TurnMenu_sayyo
break

[@TurnMenu_sayyo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_85

[@Input]
#IF
#ACT
Map 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_86

}







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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 13
#ACT
GOTO @Silnak_Bomulsangja_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 12
#ACT
GOTO @Silnak_Bomulsangja_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_87

#ACT
BREAK


[@Silnak_Bomulsangja_STEP1]
#IF

#ACT
give 地狱神钟 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=13"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_88


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_89

#ELSEACT
break

[@Silnak_Bomulsangja_STEP2]
#IF
#ACT
map 1
delaygoto [local] 3 @Bomulsangja_say

[@Bomulsangja_say]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_90

}




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

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

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 17
#ACT
GOTO @Silnak_Wudoin_STEP1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 27
Equal D1 18
#ACT
GOTO @Silnak_Wudoin_STEP1_4
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_91

#ACT
BREAK

[@Silnak_Wudoin_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_92

[@Silnak_Wudoin_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_93

[@Silnak_Wudoin_STEP1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_94

[@Silnak_Wudoin_STEP1_3]
#IF
checkitem 灵魂明珠 1
#ACT
take 灵魂明珠 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=18"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_95

[@Silnak_Wudoin_STEP1_4]
#IF
#ACT
MongenP "DQ502_001,14,13,3" 沃玛卫士 1
MongenP "DQ502_001,14,13,3" 沃玛战士 7


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide8\ChoBoGuide8.txt] @Convert_ChoBoGuide8_96

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