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


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

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

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 9
#ACT
GOTO @Wangdaein_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 6
#ACT
GOTO @Wangdaein_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 5
#ACT
GOTO @Wangdaein_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 2
#ACT
GOTO @Wangdaein_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 1
#ACT
GOTO @Wangdaein_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_0

#ACT
BREAK

[@Wangdaein_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_1

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_2

[@Wangdaein_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_3

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_4

[@Wangdaein_STEP4]
#IF
#ACT
SET [303] 1
Mov A0 "AreaQuest3"
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=20"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_5

}





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

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

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 5
#ACT
GOTO @Bookstore_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 4
#ACT
GOTO @Bookstore_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 3
#ACT
GOTO @Bookstore_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 2
#ACT
GOTO @Bookstore_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_6

#ACT
BREAK

[@Bookstore_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_7

[@Bookstore_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_8

[@Bookstore_STEP1_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_9

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_10

[@Bookstore_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_11

[@Bookstore_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_12

[@Bookstore_STEP3_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_13

[@Bookstore_STEP3_2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_14

[@Bookstore_STEP3_4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_15

[@Bookstore_STEP3_3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_16

[@Bookstore_STEP3_5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_17

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_18

[@Bookstore_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_19

}



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

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

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 4
#ACT
GOTO @Bibonkungbi_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 3
#ACT
GOTO @Bibonkungbi_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_20

#ACT
BREAK

[@Bibonkungbi_STEP1]
#IF
checkitem ÉÕ¾Æ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_21


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_22

#ELSEACT
break


[@Bibonkungbi_STEP1_1]
#IF
checkitem ÉÕ¾Æ 1
#ACT
take ÉÕ¾Æ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_23


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_24

#ELSEACT
break

[@Bibonkungbi_STEP1_2]
#IF
checkitem ÉÕ¾Æ 1
#ACT
take ÉÕ¾Æ 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_25


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_26

#ELSEACT
break

[@Bibonkungbi_STEP1_3]
#IF
checkitem ÉÕ¾Æ 1
#ACT
take ÉÕ¾Æ 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=4"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_27


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_28

#ELSEACT
break

[@Bibonkungbi_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_29

}





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

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

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 9
#ACT
GOTO @jongung_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 8
#ACT
GOTO @jongung_STEP3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 7
#ACT
GOTO @jongung_STEP2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 19
Equal D1 6
#ACT
GOTO @jongung_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_30

#ACT
BREAK

[@jongung_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_31

[@jongung_STEP1_1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_32

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_33

[@jongung_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_34

[@jongung_STEP3]
#IF
checkitem ¶¾ÉßÑÀ³Ý 1
#ACT
SET [199] 0
take ¶¾ÉßÑÀ³Ý 1
Mov A0 "AreaQuest3"
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=9"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_35


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_36

#ELSEACT
break

[@jongung_STEP4]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide3\ChoBoGuide3.txt] @Convert_ChoBoGuide3_37

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