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


[@RootControl]
{
#IF
Isadmin
#ACT
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\HumMainControl.txt] [Convert] [Msg0]
Sysmsg %A7

#IF
#ACT
Set [101] 1
goto @BasicUnLimitRootControl

[@BasicUnLimitRootControl]
#IF
IsAdmin
#ACT
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\HumMainControl.txt] [Convert] [Msg1]
sysmsg %A7

#IF
IsAdmin
#ACT
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\HumMainControl.txt] [Convert] [Msg2]
sysmsg %A7

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





[@BasicQuest_Check()]
#IF
#ACT
mov A9 %ARG(1)
mov D0 %ARG(2)
mov D1 %ARG(3)
mov D4 %ARG(4)




#IF
Equal A9 ""
#ACT
FormatStr "'%s',%s,%s," %USERNAME 0 0
mov A8 %A9
FormatStr "%s" 0
AddStr A8 %A9
FormatStr "FLD_CHAR='%s'" %USERNAME
MOV A2 %A9
WriteValueSql "TBL_BasicCharQuest" %A2 "FLD_CHAR,FLD_STATUS1,FLD_STATUS1_RDY,FLD_MAKEIDX" %A8




#IF
large D0 10
#ACT
goto @Areamain_quest
break

#IF
checkjob taoist
#ACT
goto @Taoist_Quest_all
break

#IF
checkjob Wizard
#ACT
goto @Wizard_Quest_all
break

#IF
checkjob warrior
#ACT
goto @warrior_Quest_all
break

#IF
IsAdmin
#ACT
LoadValue A7 [Convert_Def\QuestDiary\AreaQuest\HumMainControl.txt] [Convert] [Msg3]
SysMsg %A7

#IF
#ACT
Delaygoto [local] 300 @BasicUnLimitRootControl




[@Taoist_Quest_all]
#IF
Equal D0 0
#ACT
goto @taoistQuest_Step1
break

#IF
Equal D0 1
#ACT
goto @taoistQuest_Step1
break

#IF
Equal D0 2
#ACT
goto @taoistQuest_Step2
break

#IF
Equal D0 3
#ACT
goto @taoistQuest_Step3
break

#IF
Equal D0 4
#ACT
goto @taoistQuest_Step4
break

#IF
Equal D0 5
#ACT
goto @taoistQuest_Step5
break

#IF
Equal D0 8
#ACT
goto @taoistQuest_Step8
break




[@Wizard_Quest_all]
#IF
Equal D0 0
#ACT
goto @wizardQuest_Step1
break

#IF
Equal D0 1
#ACT
goto @wizardQuest_Step1
break

#IF
Equal D0 2
#ACT
goto @wizardQuest_Step2
break

#IF
Equal D0 3
#ACT
goto @wizardQuest_Step3
break

#IF
Equal D0 4
#ACT
goto @wizardQuest_Step4
break

#IF
Equal D0 5
#ACT
goto @wizardQuest_Step5
break

#IF
Equal D0 8
#ACT
goto @wizardQuest_Step8
break





[@warrior_Quest_all]
#IF
Equal D0 0

#ACT
goto @warriorQuest_Step1
break

#IF
Equal D0 1

#ACT
goto @warriorQuest_Step1
break

#IF
Equal D0 2

#ACT
goto @warriorQuest_Step2
break

#IF
Equal D0 3

#ACT
goto @warriorQuest_Step3
break

#IF
Equal D0 4

#ACT
goto @warriorQuest_Step4
break

#IF
Equal D0 5

#ACT
goto @warriorQuest_Step5
break

#IF
Equal D0 8

#ACT
goto @warriorQuest_Step8
break




[@Areamain_quest]
#IF
Equal D0 11

#ACT
goto @MusaQuest_Step11
break

#IF
Equal D0 12

#ACT
goto @MusaQuest_Step12
break

#IF
Equal D0 13

#ACT
goto @MusaQuest_Step13
break

#IF
Equal D0 14

#ACT
goto @MusaQuest_Step14
break

#IF
Equal D0 15

#ACT
goto @MusaQuest_Step15
break

#IF
Equal D0 16

#ACT
goto @MusaQuest_Step16
break

#IF
Equal D0 17

#ACT
goto @MusaQuest_Step17
break

#IF
Equal D0 18

#ACT
goto @MusaQuest_Step18
break


#IF
Equal D0 19

#ACT
goto @MusaQuest_Step19
break

#IF
Equal D0 20

#ACT
goto @MusaQuest_Step20
break

#IF
Equal D0 21

#ACT
goto @MusaQuest_Step21
break

#IF
Equal D0 22

#ACT
goto @MusaQuest_Step22
break

#IF
Equal D0 23

#ACT
goto @MusaQuest_Step23
break

#IF
Equal D0 24

#ACT
goto @MusaQuest_Step24
break

#IF
Equal D0 25

#ACT
goto @MusaQuest_Step25
break

#IF
Equal D0 26

#ACT
goto @MusaQuest_Step26
break

#IF
Equal D0 27

#ACT
goto @MusaQuest_Step27
break

#IF
Equal D0 28

#ACT
goto @MusaQuest_Step28
break

#IF
Equal D0 29

#ACT
goto @MusaQuest_Step29
break

#IF
Equal D0 30

#ACT
goto @MusaQuest_Step30
break

#IF
Equal D0 31

#ACT
goto @MusaQuest_Step31
break

#IF
Equal D0 32

#ACT
goto @MusaQuest_Step32
break

#IF
Equal D0 33

#ACT
goto @MusaQuest_Step33
break

#IF
Equal D0 34

#ACT
goto @MusaQuest_Step34
break








[@taoistQuest_Step1]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @MusaQuestStep1

[@taoistQuest_Step2]
#CALL [AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] @taoistQuestStep2

[@taoistQuest_Step3]
#CALL [AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] @taoistQuestStep3

[@taoistQuest_Step4]
#CALL [AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] @taoistQuestStep4

[@taoistQuest_Step5]
#CALL [AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] @taoistQuestStep5

[@taoistQuest_Step8]
#CALL [AreaQuest\ChoBoGuide1\TaoistQuestLevel.txt] @taoistQuestStep8




[@wizardQuest_Step1]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @MusaQuestStep1

[@wizardQuest_Step2]
#CALL [AreaQuest\ChoBoGuide1\WizardQuestLevel.txt] @wizardQuestStep2

[@wizardQuest_Step3]
#CALL [AreaQuest\ChoBoGuide1\WizardQuestLevel.txt] @wizardQuestStep3

[@wizardQuest_Step4]
#CALL [AreaQuest\ChoBoGuide1\WizardQuestLevel.txt] @wizardQuestStep4

[@wizardQuest_Step5]
#CALL [AreaQuest\ChoBoGuide1\WizardQuestLevel.txt] @wizardQuestStep5

[@wizardQuest_Step8]
#CALL [AreaQuest\ChoBoGuide1\WizardQuestLevel.txt] @wizardQuestStep8





[@warriorQuest_Step1]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @MusaQuestStep1

[@warriorQuest_Step2]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @warriorQuestStep2

[@warriorQuest_Step3]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @warriorQuestStep3

[@warriorQuest_Step4]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @warriorQuestStep4

[@warriorQuest_Step5]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @warriorQuestStep5

[@warriorQuest_Step8]
#CALL [AreaQuest\ChoBoGuide1\WarriorQuestLevel.txt] @warriorQuestStep8





[@MusaQuest_Step11]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep11

[@MusaQuest_Step12]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep12

[@MusaQuest_Step13]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep13

[@MusaQuest_Step14]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep14

[@MusaQuest_Step15]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep15

[@MusaQuest_Step16]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep16

[@MusaQuest_Step17]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep17

[@MusaQuest_Step18]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep18

[@MusaQuest_Step19]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep19

[@MusaQuest_Step20]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep20

[@MusaQuest_Step21]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep21

[@MusaQuest_Step22]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep22

[@MusaQuest_Step23]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep23

[@MusaQuest_Step24]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep24

[@MusaQuest_Step25]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep25

[@MusaQuest_Step26]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep26

[@MusaQuest_Step27]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep27

[@MusaQuest_Step28]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep28

[@MusaQuest_Step29]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep29

[@MusaQuest_Step30]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep30

[@MusaQuest_Step31]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep31

[@MusaQuest_Step32]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep32

[@MusaQuest_Step33]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep33

[@MusaQuest_Step34]
#CALL [AreaQuest\MusaQuestLevel.txt] @MusaQuestStep34

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