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



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

[@Wizard_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 @WizardQuest_STEP4
BREAK

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

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

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

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_0

#ACT
BREAK

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_1

#ACT
BREAK

[@WizardQuest_STEP1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_2

[@WizardQuest_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_3

[@WizardQuest_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_4

[@WizardQuest_STEP2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_5

[@WizardQuest_STEP3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_6

[@WizardQuest_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_7


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_8

#ELSEACT
break

}


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

[@Wizard_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 @WizardQuest_STEP6
BREAK

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

#IF
Equal A0 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_9

#ACT
BREAK


[@WizardQuest_STEP5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_10

[@WizardQuest_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_11

[@WizardQuest_STEP6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_12

}




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

[@WizardQuest_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 @Wizard_jobwha4
BREAK


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

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

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

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_13

#ACT
BREAK


[@Wizard_jobwha1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_14

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_15

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_16

[@Wizard_jobwha2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_17

[@Wizard_jobwha3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_18

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_19


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_20

#ELSEACT
BREAK

}


[@Basic_Wizard_3_1]
{

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

[@WizardQuest_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 @Wizard_jobwha6
BREAK

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

#IF
Equal A0 %USERNAME

[@Wizard_jobwha5]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_21

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_22

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

[@Wizard_jobwha6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_23

}




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

[@WizardQuest_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 @Wizard_chunl4
BREAK

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

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

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

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_24

#ACT
BREAK

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_25

#ACT
BREAK

[@Wizard_chunl1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_26

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_27

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_28

[@Wizard_chunl2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_29

[@Wizard_chunl3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_30

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_31

}


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

[@Wizard_4_1()]
#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 @Wizard_chunl6
BREAK

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

#IF
Equal A0 %USERNAME

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_32


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_33

#ELSEACT
break

[@Wizard_chunl6]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_34

}





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

[@WizardQuest_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 @Wizard_chicken4
BREAK

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

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

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


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

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

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

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

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

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

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_35

#ACT
BREAK

[@Wizard_chicken1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_36

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_37

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_38

[@Wizard_chicken2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_39

[@Wizard_chicken3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_40

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_41


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_42

#ELSEACT
break

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_43

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_44

[@Wizard_Pig1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_45

[@Wizard_Pig2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_46

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_47


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_48

#ELSEACT
break

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_49

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_50

[@Wizard_Cow1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_51

[@Wizard_Cow2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_52

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_53


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_54

#ELSEACT
break

}






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

[@WizardQuest_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 @Wizard_deer4
BREAK

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

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

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

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

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

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

#IF
Equal A0 %USERNAME
Equal D0 9
Equal D1 0
#ACT
GOTO @Wizard_husuabi0
BREAK

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

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

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

#IF
Equal A0 %USERNAME


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_55

#ACT
BREAK

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_56

#ACT
BREAK

[@Wizard_deer1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_57

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_58

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_59

[@Wizard_deer2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_60

[@Wizard_deer3]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_61

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_62


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_63

#ELSEACT
break

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_64

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_65

[@Wizard_husuabi1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_66

[@Wizard_husuabi2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_67

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_68


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_69

#ELSEACT
break

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_70

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_71

[@Wizard_galguli1]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_72

[@Wizard_galguli2]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_73

[@Wizard_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_Wizard.txt] @Convert_ChoBoGuide1_Wizard_74


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\AreaQuest\ChoBoGuide1\ChoBoGuide1_Wizard.txt] @Convert_ChoBoGuide1_Wizard_75

#ELSEACT
break
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;