;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@013_Event1]
{

#ACT
MonClear DQ1600_01
MonGenP "DQ1600_01,176,31,0" 컁邏으8 1
MonGenP "DQ1600_01,176,32,0" 컁邏으3 1
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg0]
EventMsg Grobal %A7 10081
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [FirstFailed] 1
DelayGoto [grobal] 12 @set013A_1

[@set013A_1]
#ACT
MonGenP "DQ1600_01,176,40,5" 컁邏으8 20
MonGenP "DQ1600_01,176,40,5" 컁邏으7 20
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔쉥却7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔랬일7 30
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg1]
EventMsg Grobal %A7 10005
DelayGoto [grobal] 12 @set013A_2

[@set013A_2]
#ACT
MonGenP "DQ1600_01,176,38,3" 킵쯔랬일7 5
MonGenP "DQ1600_01,176,40,30" 킵쯔7 20
MonGenP "DQ1600_01,176,40,30" 킵쯔7 20
MonGenP "DQ1600_01,176,40,30" 킵쯔7 20
MonGenP "DQ1600_01,176,40,30" 킵쯔7 20
MonGenP "DQ1600_01,176,40,30" 킵쯔쉥却7 20
MonGenP "DQ1600_01,176,40,30" 킵쯔랬일7 20
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg2]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 12 @set013A_3

[@set013A_3]
#ACT

MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔쉥却7 30
MonGenP "DQ1600_01,155,55,100" 킵쯔랬일7 30
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg3]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 12 @set013A_4


[@set013A_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg4]
EventMsg Grobal %A7 10005
DelayGoto [grobal] 12 @set013A_5

[@set013A_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg5]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 12 @set013A_6

[@set013A_6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg6]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 12 @set013A_7

[@set013A_7]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg7]
EventMsg Grobal %A7 10005
DelayGoto [grobal] 12 @set013A_8

[@set013A_8]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg8]
EventMsg Grobal %A7 10005
DelayGoto [grobal] 12 @set013A_9

[@set013A_9]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg9]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 60 @set013A_10


[@set013A_10]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg10]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013A_11

[@set013A_11]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg11]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013A_12

[@set013A_12]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg12]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013A_13

[@set013A_13]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg13]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013A_14

[@set013A_14]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg14]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013A_15

[@set013A_15]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg15]
EventMsg Grobal %A7 10008


DelayGoto [grobal] 60 @013_Event1_GateOpen


[@013_Event1_GateOpen]
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [OpenGate] 1
DelayGoto [grobal] 12 @set013B

[@set013B]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg16]
EventMsg "DQ1600_01" %A7 19
DelayGoto [grobal] 12 @set013B_1

[@set013B_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg17]
EventMsg "DQ1600_01" %A7 18
DelayGoto [grobal] 12 @set013B_2

[@set013B_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg18]
EventMsg "DQ1600_01" %A7 14
DelayGoto [grobal] 12 @set013B_3

[@set013B_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg19]
EventMsg "DQ1600_01" %A7 14
DelayGoto [grobal] 12 @set013B_4

[@set013B_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg20]
EventMsg "DQ1600_01" %A7 14
DelayGoto [grobal] 12 @set013B_5

[@set013B_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg21]
EventMsg "DQ1600_01" %A7 18
DelayGoto [grobal] 12 @set013B_6

[@set013B_6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg22]
EventMsg "DQ1600_01" %A7 14
DelayGoto [grobal] 12 @set013B_7

[@set013B_7]
#ACT

LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg23]
EventMsg "DQ1600_01" %A7 10008
DelayGoto [grobal] 900 @013_Event1_GateClose



[@013_Event1_GateClose]
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [CloseGate] 1
DelayGoto [grobal] 1500 @013_Event1_EndCheck



[@013_Event1_EndCheck]
begin
#IF
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess]
#IF
Equal P1 0
#ACT
mov A0 "Judgement"
mov D0 13
mov D1 2
mov D2 0
mov D3 0
movenpc "DQ1600_01,177,31,돛却" npcroom1,6,17
Goto @013_Fail
MonClear DQ1600_01
goto @EveryThingReward
mapting DQ1600_01 4 168 152
break
#ELSEACT
break
end

[@013_Fail]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg24]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 12 @set013D_1

[@set013D_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg25]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013D_2

[@set013D_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg26]
EventMsg Grobal %A7 10081
DelayGoto [grobal] 60 @set013D_3

[@set013D_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg27]
EventMsg Grobal %A7 10008




[@013_Npc_Say]
{
#ACT
goto @013USERFACE
DelayGoto [grobal] 12 @set013C

[@set013C]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg28]
EventMsg Grobal %A7 10072
DelayGoto [grobal] 12 @set013C_1


[@set013C_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg29]
EventMsg Grobal %A7 10062
DelayGoto [grobal] 12 @set013C_2

[@set013C_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg30]
EventMsg Grobal %A7 19
DelayGoto [grobal] 12 @set013C_3

[@set013C_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg31]
EventMsg Grobal %A7 18
DelayGoto [grobal] 12 @set013C_4

[@set013C_4]
#ACT
ReadValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBDAYCOUNT" [@set013C_4_0]
#ELSEACT
break

[@set013C_4_0()]
#ACT
mov P1 %ARG(1)
#IF
Equal P1 10
#ACT
inc P1 2
FormatStr "FLD_JOBDAYCOUNT=%s" %P1
Mov A8 %A9
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" %A8
mov A0 "Judgement"
mov D0 13
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward
MonClear DQ1600_01
goto @set013C_5
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess] 1
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
SaveValue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0
break

#IF
Equal P1 11
#ACT
inc P1 1
FormatStr "FLD_JOBDAYCOUNT=%s" %P1
Mov A8 %A9
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" %A8
mov A0 "Judgement"
mov D0 13
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward
goto @set013C_5
MonClear DQ1600_01
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess] 1
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
break

#IF
#ACT
mov A0 "Judgement"
mov D0 13
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward
goto @set013C_5
MonClear DQ1600_01
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess] 1
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
break

[@set013C_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\013Event1.txt] [Convert] [Msg32]
EventMsg Grobal %A7 10008
DelayGoto [grobal] 12 @set013C_6

[@set013C_6]

#ACT
Mapting DQ1600_01 4 168 152



[@013USERFACE]
#CALL [System\EventUserFace.txt] @jobcheckEvent
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;