;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@SuperMainControl]
{

#ACT
ClearDelaygoto 1002
Mov N1 0
ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBDAYCOUNT" [@SuperMainControl_0]

[@SuperMainControl_0()]
#ACT
mov N1 %ARG(1)
goto @Initial
goto @MainControl
#ELSEACT
break

[@Initial]
#CALL [Judgement\InI.txt] @Var_Initial


[@MainControl]
#IF
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\StoryControl.txt] [Convert] [Msg0]
linemsg "Npcroom1" %A7
goto @T1Quest
goto @052Quest
goto @T2Quest
goto @050Quest
goto @T3Quest
goto @T4Quest
goto @051Quest
goto @T00Quest
goto @T001Quest
goto @002Quest
goto @004Quest
goto @005Quest
goto @006Quest
goto @007Quest
goto @008Quest
goto @T01Quest
goto @009Quest
goto @010Quest
goto @011Quest
goto @012Quest
goto @013Quest
goto @T02Quest
goto @1318Quest
goto @1323Quest
goto @1418Quest
goto @1422Quest
goto @T03Quest
goto @T04Quest
goto @029Quest
goto @030Quest
goto @031Quest

goto @T06Quest
goto @EventControl
goto @RecusiveMainRootin
#IF
Large N1 21
#ACT
goto @MainControl_EndCheck




[@RecusiveMainRootin]
#ACT
ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBDAYCOUNT" [@RecusiveMainRootin_0]

[@RecusiveMainRootin_0()]
#ACT
mov N1 %ARG(1)

#IF
Hour 12 23
Equal N2 0
#ACT
mov N2 1
LoadValue A7 [Convert_Def\QuestDiary\Judgement\StoryControl.txt] [Convert] [Msg1]
linemsg "Npcroom1" %A7
DelayGoto [Grobal] 180 @MainControl 1002
break

#IF
Hour 0 11
Equal N2 1
#ACT
Inc N1 1
mov N2 0
FormatStr "FLD_JOBDAYCOUNT=%s" %N1
Mov A8 %A9
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" %A8
LoadValue A7 [Convert_Def\QuestDiary\Judgement\StoryControl.txt] [Convert] [Msg2]
linemsg "Npcroom1" %A7

DelayGoto [Grobal] 180 @MainControl 1002
break
#IF
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\StoryControl.txt] [Convert] [Msg3]
linemsg "Npcroom1" %A7
DelayGoto [Grobal] 180 @MainControl 1002
break





[@EventControl]
#IF
Hour 19 23
Min 1 5
!IsOnReadyCastleWar [TAOSUNG]
!IsOnCastleWar [TAOSUNG]
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBCONDITION" [@EventControl_0]
#ELSEACT
break

[@EventControl_0()]
#ACT
mov B1 %ARG(1)

#IF
!Equal B1 "End"
#ACT
break

#IF

#ACT
Movr P1 12

#IF
Equal P1 0
#ACT
goto @036EventQuest
break

#IF
Equal P1 1
#ACT
goto @037EventQuest
break

#IF
Equal P1 2
#ACT
goto @0381EventQuest
break

#IF
Equal P1 3
#ACT
goto @0382EventQuest
break

#IF
Equal P1 4
#ACT
goto @039EventQuest
break

#IF
Equal P1 5
#ACT
goto @040EventQuest
break

#IF
Equal P1 6
#ACT
goto @041EventQuest
break

#IF
Equal P1 7
#ACT
goto @042EventQuest
break

#IF
Equal P1 8
#ACT
goto @043EventQuest
break

#IF
Equal P1 9
#ACT
goto @044EventQuest
break

#IF
Equal P1 10
#ACT
goto @045EventQuest
break

#IF
Equal P1 11
#ACT
goto @046EventQuest
break



[@T1Quest]
#IF
Equal N1 1
hour 15 15
Min 1 5
#ACT
ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T1Quest_0]
#ELSEACT
break

[@T1Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
!Equal B1 "T1"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T1',FLD_JOBCONDITION='Start'"
goto @MainControl_T1
break
#ELSEACT
break

[@MainControl_T1]
#CALL [Judgement\Story\T1\T1.txt] @T1Start


[@052Quest]
#IF
Equal N1 1
hour 16 16
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@052Quest_0]
#ELSEACT
break

[@052Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T1"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q052',FLD_JOBCONDITION='Start'"
goto @MainControl_052
break
#ELSEACT
break

[@MainControl_052]
#CALL [Judgement\Story\052\052.txt] @052Start


[@T2Quest]
#IF
Equal N1 2
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T2Quest_0]
#ELSEACT
break

[@T2Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q052"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T2',FLD_JOBCONDITION='Start'"
goto @MainControl_T2
break
#ELSEACT
break

[@MainControl_T2]
#CALL [Judgement\Story\T2\T2.txt] @T2Start


[@050Quest]
#IF
Equal N1 2
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@050Quest_0]
#ELSEACT
break

[@050Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T2"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q050',FLD_JOBCONDITION='Start'"
goto @MainControl_050
break
#ELSEACT
break

[@MainControl_050]
#CALL [Judgement\Story\050\050.txt] @050Start


[@T3Quest]
#IF
Equal N1 3
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T3Quest_0]
#ELSEACT
break

[@T3Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q050"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T3',FLD_JOBCONDITION='Start'"
goto @MainControl_T3
break
#ELSEACT
break

[@MainControl_T3]
#CALL [Judgement\Story\T3\T3.txt] @T3Start


[@T4Quest]
#IF
Equal N1 3
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T4Quest_0]
#ELSEACT
break

[@T4Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T3"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T4',FLD_JOBCONDITION='Start'"
goto @MainControl_T4
break
#ELSEACT
break


[@MainControl_T4]
#CALL [Judgement\Story\T4\T4.txt] @T4Start


[@051Quest]
#IF
Equal N1 3
hour 23 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@051Quest_0]
#ELSEACT
break

[@051Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T4"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q051',FLD_JOBCONDITION='Start'"
goto @MainControl_051
break
#ELSEACT
break

[@MainControl_051]
#CALL [Judgement\Story\051\051.txt] @051Start


[@T00Quest]
#IF
Equal N1 4
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T00Quest_0]
#ELSEACT
break

[@T00Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q051"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T00',FLD_JOBCONDITION='Start'"
goto @MainControl_T00
break
#ELSEACT
break

[@MainControl_T00]
#CALL [Judgement\Story\T00\T00.txt] @T00Start


[@T001Quest]
#IF
Equal N1 4
hour 20 20
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T001Quest_0]
#ELSEACT
break

[@T001Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T00"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T001',FLD_JOBCONDITION='Start'"
goto @MainControl_T001
break
#ELSEACT
break

[@MainControl_T001]
#CALL [Judgement\Story\T001\T001.txt] @T001Start


[@002Quest]
#IF
Equal N1 4
hour 21 21
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@002Quest_0]
#ELSEACT
break

[@002Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T001"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q002',FLD_JOBCONDITION='Start'"
goto @MainControl_002
break
#ELSEACT
break

[@MainControl_002]
#CALL [Judgement\Story\002\002.txt] @002Start


[@004Quest]
#IF
Equal N1 4
hour 23 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@004Quest_0]
#ELSEACT
break

[@004Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q002"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q004',FLD_JOBCONDITION='Start'"
goto @MainControl_004
break
#ELSEACT
break

[@MainControl_004]
#CALL [Judgement\Story\004\004.txt] @004Start


[@005Quest]
#IF
Equal N1 5
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@005Quest_0]
#ELSEACT
break

[@005Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q004"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q005',FLD_JOBCONDITION='Start'"
goto @MainControl_005
break
#ELSEACT
break

[@MainControl_005]
#CALL [Judgement\Story\005\005.txt] @005Start


[@006Quest]
#IF
Equal N1 5
#ACT
goto @006Quest_0
break

#IF
Equal N1 6
#ACT
goto @006Quest_0
break

#IF
Equal N1 7
#ACT
goto @006Quest_0
break

[@006Quest_0]
#IF
hour 20 20
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@006Quest_1]
#ELSEACT
break

[@006Quest_1()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q005"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q006',FLD_JOBCONDITION='Start'"
goto @MainControl_006
break
#ELSEACT
break

[@MainControl_006]
#CALL [Judgement\Story\006\006.txt] @006Start


[@007Quest]
#IF
Equal N1 8
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@007Quest_0]
#ELSEACT
break

[@007Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q006"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q007',FLD_JOBCONDITION='Start'"
goto @MainControl_007
break
#ELSEACT
break

[@MainControl_007]
#CALL [Judgement\Story\007\007.txt] @007Start


[@008Quest]
#IF
Equal N1 8
hour 21 21
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@008Quest_0]
#ELSEACT
break

[@008Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q007"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q008',FLD_JOBCONDITION='Start'"
goto @MainControl_008
break
#ELSEACT
break

[@MainControl_008]
#CALL [Judgement\Story\008\008.txt] @008Start


[@T01Quest]
#IF
Equal N1 9
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T01Quest_0]
#ELSEACT
break

[@T01Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q008"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T01',FLD_JOBCONDITION='Start'"
goto @MainControl_T01
break
#ELSEACT
break

[@MainControl_T01]
#CALL [Judgement\Story\T01\T01.txt] @T01Start


[@009Quest]
#IF
Equal N1 9
hour 21 21
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@009Quest_0]
#ELSEACT
break

[@009Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [005] [QuestSuccess]

#IF
Equal P1 1
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q009',FLD_JOBCONDITION='Start'"
goto @MainControl_005
break
#ELSEACT
break

[@MainControl_009]
#CALL [Judgement\Story\009\009.txt] @009Start


[@010Quest]
#IF
Equal N1 9
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@010Quest_0]
#ELSEACT
break

[@010Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T01"
#ACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [004] [QuestSuccess]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [005] [QuestSuccess]
#IF
Equal P1 1
Equal P2 0

#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q010',FLD_JOBCONDITION='Start'"
goto @MainControl_010
break
#ELSEACT
break

[@MainControl_010]
#CALL [Judgement\Story\010\010.txt] @010Start



[@011Quest]
#IF
Equal N1 9
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@011Quest_0]
#ELSEACT
break

[@011Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "T01"
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [004] [QuestSuccess]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [005] [QuestSuccess]

#IF
Equal P1 0
Equal P2 0
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q011',FLD_JOBCONDITION='Start'"
goto @MainControl_011
break
#ELSEACT
break

[@MainControl_011]
#CALL [Judgement\Story\011\011.txt] @011Start



[@012Quest]
#IF
Equal N1 10
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@012Quest_0]
#ELSEACT
break

[@012Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q009"
#ACT
goto @012Quest_1
break

#IF
Equal B1 "Q010"
#ACT
goto @012Quest_1
break

#IF
Equal B1 "Q011"
#ACT
goto @012Quest_1
break

#IF
#ACT
break

[@012Quest_1]
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q012',FLD_JOBCONDITION='Start'"
goto @MainControl_Q012
break
#ELSEACT
break

[@MainControl_Q012]
#CALL [Judgement\Story\012\012.txt] @012Start



[@013Quest]
#IF
Equal N1 10
#ACT
goto @013Quest_0
break

#IF
Equal N1 11
#ACT
goto @013Quest_0
break

#IF
Equal N1 12
#ACT
goto @013Quest_0
break

[@013Quest_0]
#IF
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@013Quest_1]
#ELSEACT
break

[@013Quest_1()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q012"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q013',FLD_JOBCONDITION='Start'"
goto @MainControl_013
break
#ELSEACT
break



[@MainControl_013]
#CALL [Judgement\Story\013\013.txt] @013Start


[@T02Quest]
#IF
Equal N1 12
hour 23 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME,FLD_JOBCONDITION" [@T02Quest_0]
#ELSEACT
break

[@T02Quest_0()]
#ACT
mov B1 %ARG(1)
mov B2 %ARG(2)

#IF
Equal B1 "Q013"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T02',FLD_JOBCONDITION='Start'"
goto @MainControl_T02
break
#ELSEACT
break

[@MainControl_T02]
#CALL [Judgement\Story\T02\T02Event.txt] @T02Start


[@1318Quest]
#IF
Equal N1 13
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@1318Quest_0]
#ELSEACT
break

[@1318Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "T02"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q1318',FLD_JOBCONDITION='Start'"
goto @MainControl_1318
break
#ELSEACT
break

[@MainControl_1318]
#CALL [Judgement\Story\1318\1318.txt] @1318Start


[@1323Quest]
#IF
Equal N1 13
hour 23 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@1323Quest_0]
#ELSEACT
break

[@1323Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q1318"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q1323',FLD_JOBCONDITION='Start'"
goto @MainControl_1323
break
#ELSEACT
break

[@MainControl_1323]
#CALL [Judgement\Story\1323\1323.txt] @1323Start


[@1418Quest]
#IF
Equal N1 14
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@1418Quest_0]
#ELSEACT
break

[@1418Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q1323"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q1418',FLD_JOBCONDITION='Start'"
goto @MainControl_1418
break
#ELSEACT
break

[@MainControl_1418]
#CALL [Judgement\Story\1418\1418.txt] @1418Start


[@1422Quest]
#IF
Equal N1 14
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@1422Quest_0]
#ELSEACT
break

[@1422Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "1418"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q1422',FLD_JOBCONDITION='Start'"
goto @MainControl_1422
break
#ELSEACT
break

[@MainControl_1422]
#CALL [Judgement\Story\1422\1422.txt] @1422Start



[@024Quest]
#IF
Equal N1 15
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@024Quest_0]
#ELSEACT
break

[@024Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q1422"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q024',FLD_JOBCONDITION='Start'"
goto @MainControl_024
break
#ELSEACT
break

[@MainControl_024]
#CALL [Judgement\Story\024\024.txt] @024Start


[@025Quest]
#IF
Equal N1 15
hour 22 22
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@025Quest_0]
#ELSEACT
break

[@025Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q024"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q025',FLD_JOBCONDITION='Start'"
goto @MainControl_025
break
#ELSEACT
break

[@MainControl_025]
#CALL [Judgement\Story\025\025.txt] @025Start


[@T03Quest]
#IF
Equal N1 16
hour 17 17
Min 50 55
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@T03Quest_0]
#ELSEACT
break

[@T03Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q025"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T03',FLD_JOBCONDITION='Start'"
goto @MainControl_T03
break
#ELSEACT
break

[@MainControl_T03]
#CALL [Judgement\Story\T03\T03.txt] @T03Start


[@T04Quest]
#IF
Equal N1 17
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@T04Quest_0]
#ELSEACT
break

[@T04Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "T03"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T04',FLD_JOBCONDITION='Start'"
goto @MainControl_T04
break
#ELSEACT
break

[@MainControl_T04]
#CALL [Judgement\Story\T04\T04.txt] @T04Start



[@029Quest]
#IF
Equal N1 17
hour 20 20
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@029Quest_0]
#ELSEACT
break

[@029Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "T04"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q029',FLD_JOBCONDITION='Start'"
goto @MainControl_029
break
#ELSEACT
break

[@MainControl_029]
#CALL [Judgement\Story\029\029.txt] @029Start


[@030Quest]
#IF
Equal N1 18
hour 18 18
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@030Quest_0]
#ELSEACT
break

[@030Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q029"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q030',FLD_JOBCONDITION='Start'"
goto @MainControl_030
break
#ELSEACT
break

[@MainControl_030]
#CALL [Judgement\Story\030\030.txt] @030Start


[@031Quest]
#IF
Equal N1 18
hour 21 21
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@031Quest_0]
#ELSEACT
break

[@031Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q030"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q031',FLD_JOBCONDITION='Start'"
goto @MainControl_031
break
#ELSEACT
break

[@MainControl_031]
#CALL [Judgement\Story\031\031.txt] @031Start
































[@T06Quest]
#IF
Equal N1 20
hour 19 19
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME" [@T06Quest_0]
#ELSEACT
break

[@T06Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "Q031"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='T06',FLD_JOBCONDITION='Start'"
goto @MainControl_T06
break
#ELSEACT
break

[@MainControl_T06]
#CALL [Judgement\Story\T06\T06.txt] @T06Start





[@036EventQuest]
#IF
large N1 3
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@036Quest_0]
#ELSEACT
break

[@036Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q036',FLD_JOBCONDITION='Start'"
movenpc "npcroom1,6,11,诺玛阻力军" D002,86,216
goto @MainControl_036
break
#ELSEACT
break

[@MainControl_036]
#CALL [Judgement\Event\036\036.txt] @036Start


[@037EventQuest]
#IF
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@037Quest_0]
#ELSEACT
break

[@037Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q037',FLD_JOBCONDITION='Start'"
movenpc "npcroom1,6,12,村民" 4,153,186
goto @MainControl_037
break
#ELSEACT
break

[@MainControl_037]
#CALL [Judgement\Event\037\037.txt] @037Start


[@0381EventQuest]
#IF
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@0381Quest_0]
#ELSEACT
break

[@0381Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q0381',FLD_JOBCONDITION='Start'"
Movenpc "npcroom1,6,13,武士1" 4,184,198
goto @MainControl_0381
break
#ELSEACT
break

[@MainControl_0381]
#CALL [Judgement\Event\0381\0381.txt] @0381start


[@0382EventQuest]
#IF
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@0382Quest_0]
#ELSEACT
break

[@0382Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q0382',FLD_JOBCONDITION='Start'"
Movenpc "npcroom1,7,14,武士2" 4,136,111
goto @MainControl_0382
break
#ELSEACT
break

[@MainControl_0382]
#CALL [Judgement\Event\0382\0382.txt] @0382start


[@039EventQuest]
#IF
large N1 3
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@039Quest_0]
#ELSEACT
break

[@039Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q039',FLD_JOBCONDITION='Start'"
Movenpc "npcroom1,7,13,玉灵" D002,84,74
goto @MainControl_039
break
#ELSEACT
break

[@MainControl_039]
#CALL [Judgement\Event\039\039.txt] @039start


[@040EventQuest]
#IF
large N1 0
small N1 4
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@040Quest_0]
#ELSEACT
break

[@040Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q040',FLD_JOBCONDITION='Start'"
Movenpc "npcroom1,5,10,宗主国侦察兵1" D002,115,134
Movenpc "npcroom1,4,17,宗主国侦察兵" DQ1600_11,155,57
goto @MainControl_040
break
#ELSEACT
break

[@MainControl_040]
#CALL [Judgement\Event\040\040.txt] @040Start


[@041EventQuest]
#IF
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@041Quest_0]
#ELSEACT
break

[@041Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q041',FLD_JOBCONDITION='Start'"
Movenpc "npcroom1,4,12,诺玛商人" 4,199,144
goto @MainControl_041
break
#ELSEACT
break

[@MainControl_041]
#CALL [Judgement\Event\041\041.txt] @041Start


[@042EventQuest]
#IF
large N1 3
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@042Quest_0]
#ELSEACT
break

[@042Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q042',FLD_JOBCONDITION='Start'"
goto @MainControl_042
break
#ELSEACT
break

[@MainControl_042]
#CALL [Judgement\Event\042\042.txt] @042Start


[@043EventQuest]
#IF
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@043Quest_0]
#ELSEACT
break

[@043Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q043',FLD_JOBCONDITION='Start'"
goto @MainControl_043
break
#ELSEACT
break

[@MainControl_043]
#CALL [Judgement\Event\043\043.txt] @043Start


[@044EventQuest]
#IF
large N1 0
small N1 3
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@044Quest_0]
#ELSEACT
break

[@044Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q044'FLD_JOBCONDITION='Start'"
goto @MainControl_044
break
#ELSEACT
break

[@MainControl_044]
#CALL [Judgement\Event\044\044.txt] @044Start


[@045EventQuest]
#IF
large N1 0
small N1 4
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@045Quest_0]
#ELSEACT
break

[@045Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q045',FLD_JOBCONDITION='Start'"
goto @MainControl_045
break
#ELSEACT
break

[@MainControl_045]
#CALL [Judgement\Event\045\045.txt] @045Start


[@046EventQuest]
#IF
large N1 3
Hour 19 23
Min 1 5
#ACT

ReadValueSqlsys "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@046Quest_0]
#ELSEACT
break

[@046Quest_0()]
#ACT
mov B1 %ARG(1)

#IF
Equal B1 "End"
#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBRANDOM'" "FLD_JOBNAME='Q046',FLD_JOBCONDITION='Start'"
goto @MainControl_046
break
#ELSEACT
break

[@MainControl_046]
#CALL [Judgement\Event\046\046.txt] @046Start

[@MainControl_EndCheck]
#IF
large N1 21
Min 1 5
#ACT
Mov N1 0
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBDAYCOUNT=0,FLD_JOBNAME='T0',FLD_JOBCONDITION='End'"

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