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



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

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

#IF
Equal A0 %USERNAME
Equal D0 2
Equal D1 4
#ACT
GOTO @TaoistQuest_STEP4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 2
Equal D1 3
#ACT
GOTO @TaoistQuest_STEP3
BREAK

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

#IF
Equal A0 %USERNAME
Equal D0 2
Equal D1 1
#ACT
GOTO @TaoistQuest_STEP1
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_0

#ACT
BREAK


[@TaoistQuest_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_1

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_2

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_3

[@TaoistQuest_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_4

[@TaoistQuest_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_5

[@TaoistQuest_STEP4]
#IF
checkitem Êé¼® 1
#ACT
SET [301] 1
take Êé¼® 1
Mov A0 "AreaQuest1"
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=3"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_6


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_7

#ELSEACT
break

}


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

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

#IF
Equal A0 %USERNAME
Equal D0 2
Equal D1 4
#ACT
GOTO @TaoistQuest_STEP6
BREAK

#IF
Equal A0 %USERNAME
Equal D0 2
Equal D1 3
#ACT
GOTO @TaoistQuest_STEP5
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_8

#ACT
BREAK

[@TaoistQuest_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_9

[@TaoistQuest_STEP5_1]
#IF
#ACT
give Êé¼® 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=4"

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_10

[@TaoistQuest_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_11

}





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

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

#IF
Equal A0 %USERNAME
Equal D0 3
Equal D1 4
#ACT
GOTO @Taoist_jobwha4
BREAK


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

#IF
Equal A0 %USERNAME
Equal D0 3
Equal D1 2
#ACT
GOTO @Taoist_jobwha2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 3
Equal D1 1
#ACT
GOTO @Taoist_jobwha1
BREAK

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_12

#ACT
BREAK

[@Taoist_jobwha1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_13

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_14

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_15

[@Taoist_jobwha2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_16

[@Taoist_jobwha3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_17

[@Taoist_jobwha4]
#IF
checkitem ÐÞ¸´ÓÍ 1

#ACT
SET [301] 1
TAKE ÐÞ¸´ÓÍ 1
Mov A0 "AreaQuest1"
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=4"



#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_18


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_19

#ELSEACT
BREAK

}


[@Basic_Taoist_3_1]
{

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

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

#IF
Equal A0 %USERNAME
Equal D0 3
Equal D1 4
#ACT
GOTO @Taoist_jobwha6
BREAK

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

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_20

#ACT
BREAK


[@Taoist_jobwha5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_21

[@Taoist_jobwha5_1]
#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\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_22

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

[@Taoist_jobwha6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_23

}




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

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

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

#IF
Equal A0 %USERNAME
Equal D0 4
Equal D1 3
#ACT
GOTO @Taoist_chunl3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 4
Equal D1 2
#ACT
GOTO @Taoist_chunl2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 4
Equal D1 1
#ACT
GOTO @Taoist_chunl1
BREAK

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_24

#ACT
BREAK

[@Taoist_chunl1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_25

[@Taoist_chunl1_1]
#IF
#ACT
GIVE ÊéÐÅ 1
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=3"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_26

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_27

[@Taoist_chunl2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_28

[@Taoist_chunl3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_29

[@Taoist_chunl4]
#IF
#ACT
SET [301] 1
Mov A0 "AreaQuest1"
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=5"



#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_30

}




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

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

#IF
Equal A0 %USERNAME
Equal D0 8
Equal D1 3
checkitem Èâ 4
#ACT
GOTO @Taoist_deer4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 8
Equal D1 3
#ACT
GOTO @Taoist_deer3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 8
Equal D1 2
#ACT
GOTO @Taoist_deer2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 8
Equal D1 1
#ACT
GOTO @Taoist_deer1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 9
Equal D1 3
#ACT
GOTO @Taoist_husuabi3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 9
Equal D1 2
#ACT
GOTO @Taoist_husuabi2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 9
Equal D1 1
#ACT
GOTO @Taoist_husuabi1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 10
Equal D1 3
#ACT
GOTO @Taoist_galguli3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 10
Equal D1 2
#ACT
GOTO @Taoist_galguli2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 10
Equal D1 1
#ACT
GOTO @Taoist_galguli1
BREAK

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

#IF
Equal A0 %USERNAME
Equal D0 4
Equal D1 3
#ACT
GOTO @Taoist_chunl5
BREAK

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_31

#ACT
BREAK


[@Taoist_chunl5]
#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\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_32


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_33

#ELSEACT
break

[@Taoist_chunl6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_34

[@Taoist_deer1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_35

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_36

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_37

[@Taoist_deer2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_38

[@Taoist_deer3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_39

[@Taoist_deer4]
#IF
checkitem Èâ 4

#ACT
take Èâ 4
Mov A0 "AreaQuest1"
Mov D0 8
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=9"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_40


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_41

#ELSEACT
break

[@Taoist_deer4_1]
#IF
#ACT
SET [199] 1
MOV S1 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=9"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_42

[@Taoist_deer4_2]
#IF
#ACT
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=9"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_43

[@Taoist_husuabi1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_44

[@Taoist_husuabi2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_45

[@Taoist_husuabi3]
#IF
#ACT
SET [199] 0
Mov A0 "AreaQuest1"
Mov D0 9
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=10"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_46


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_47

#ELSEACT
break

[@Taoist_husuabi3_1]
#IF
#ACT
SET [199] 1
MOV S1 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=2"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=10"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_48

[@Taoist_husuabi3_2]
#IF
#ACT
SET [199] 0
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=10"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_49

[@Taoist_galguli1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_50

[@Taoist_galguli2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_51

[@Taoist_galguli3]
#IF
#ACT
SET [199] 0
SET [301] 1
SET [209] 1
Mov A0 "AreaQuest1"
Mov D0 10
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=11"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_52


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_53

#ELSEACT
break


[@AreaReward]
#CALL [System\TotalRewardSystem.txt] @TotalRewardSystem
}




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

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


#IF
Equal A0 %USERNAME
Equal D0 5
Equal D1 3
CHECKITEM ¼¦Èâ 3
#ACT
GOTO @Taoist_chicken4
BREAK

#IF
Equal A0 %USERNAME
Equal D0 5
Equal D1 3
#ACT
GOTO @Taoist_chicken3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 5
Equal D1 2
#ACT
GOTO @Taoist_chicken2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 5
Equal D1 1
#ACT
GOTO @Taoist_chicken1
BREAK


#IF
Equal A0 %USERNAME
Equal D0 6
Equal D1 2
CHECKITEM ÖíÈâ 2
#ACT
GOTO @Taoist_Pig3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 6
Equal D1 2
#ACT
GOTO @Taoist_Pig2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 6
Equal D1 1
#ACT
GOTO @Taoist_Pig1
BREAK

#IF
Equal A0 %USERNAME
Equal D0 7
Equal D1 2
CHECKITEM Å£Èâ 1
#ACT
GOTO @Taoist_Cow3
BREAK

#IF
Equal A0 %USERNAME
Equal D0 7
Equal D1 2
#ACT
GOTO @Taoist_Cow2
BREAK

#IF
Equal A0 %USERNAME
Equal D0 7
Equal D1 1
#ACT
GOTO @Taoist_Cow1
BREAK

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_54

#ACT
BREAK

[@Taoist_chicken1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_55

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_56

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_57

[@Taoist_chicken2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_58

[@Taoist_chicken3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_59

[@Taoist_chicken4]
#IF
checkitem ¼¦Èâ 3

#ACT
take ¼¦Èâ 3
Mov A0 "AreaQuest1"
Mov D0 5
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=6"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_60


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_61

#ELSEACT
break

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_62

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_63

[@Taoist_Pig1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_64

[@Taoist_Pig2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_65

[@Taoist_Pig3]
#IF
checkitem ÖíÈâ 2

#ACT
take ÖíÈâ 2
Mov A0 "AreaQuest1"
Mov D0 6
Mov D1 0
Mov D2 0
Mov D3 0
Goto @EverythingReward
FormatStr "FLD_CHAR='%s'" %USERNAME
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1_RDY=1"
UpdateValueSql "TBL_BasicCharQuest" %A9 "FLD_STATUS1=7"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_66


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_67

#ELSEACT
break

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_68

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


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_69

[@Taoist_Cow1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_70

[@Taoist_Cow2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_71

[@Taoist_Cow3]
#IF
checkitem Å£Èâ 1

#ACT
SET [301] 1
TAKE Å£Èâ 1
Mov A0 "AreaQuest1"
Mov D0 7
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=8"


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_72


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Taoist.txt] @Convert_ChoBoGuide1_Taoist_73

#ELSEACT
break

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