;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@T03Start]
{
#ACT
MonClear D1601
MonClear D1602
MonClear D1603
MonClear D1604
Goto @T03TimeOver
Goto @T03MapClose
Goto @T03END
Goto @T03EventMongen
Goto @E01Event
Goto @E04Event
Goto @E05Event
Goto @E07Event
Goto @E08Event
goto @T03EventCall
break



[@T03TimeOver]
begin
#ACT
movenpc "npcroom1,7,15,°¢Äª" D1603,165,162
movenpc "npcroom1,7,16,µÏ°¢Ë¹" D1603,285,62
movenpc "npcroom1,7,17,Í¼Äª" D1603,220,231
DelayGoto [Grobal] 3200 @T03TimeOver2
end

[@T03TimeOver2]
begin
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [T03] [GiveTimeOver] 1
end

[@T03MapClose]
begin
#ACT
DelayGoto [Grobal] 8000 @T03MapClose2
end

[@T03MapClose2]
#ACT
loadValue P1 "QuestDiary\Judgement\Flag.txt" [T03] [MapClose]
#IF
equal P1 0
#ACT
mapting D1601 4 315 287
mapting D1602 4 315 287
mapting D1603 4 315 287
MonClear D1601
MonClear D1602
MonClear D1603
FormatStr "FLD_JOBNAME='%s'" "T03"
SaveValue "QuestDiary\Judgement\Flag.txt" [T03] [MapClose] 1
break
#ELSEACT
break



[@T03END]
begin
#ACT
DelayGoto [Grobal] 12000 @T03END2
end

[@T03END2]
#ACT
ReadValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION" [@T03END2_0]
#ELSEACT
break

[@T03END2_0()]
#ACT
mov A1 %ARG(1)
loadValue A0 "QuestDiary\Judgement\Flag.txt" [028] [QuestUserName]

#IF
!equal A1 "Q028"
equal A0 ""


#ACT
MonClear D1604 °ÔÈº´ó¹Ö
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
goto @028Endmsg
break
#ELSEACT
break


[@E01Event]
#ACT
DelayGoto [Grobal] 1200 @E01Event_1

[@E01Event_1]
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [014] [QuestSuccess]

[@E01Event_1_0()]
#ACT
mov P1 %ARG(1)
#IF
Equal P1 1
#ACT
goto @E01EventGen


[@E04Event]
#ACT
DelayGoto [Grobal] 1500 @E04Event_1

[@E04Event_1]
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [018] [QuestSuccess]
#IF
Equal P1 1
#ACT
goto @E04Eventcall
#ELSEACT
break


[@E05Event]
#ACT
DelayGoto [Grobal] 2100 @E05Event_1

[@E05Event_1]
#ACT
goto @E05Eventcall
break

[@E07Event]
#ACT
DelayGoto [Grobal] 3600 @E07Eventcall

[@E08Event]
#ACT
DelayGoto [Grobal] 300 @E07Event_1

[@E07Event_1]
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [021] [SendMail]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [022] [SendMail]
#IF
Equal P1 1
Equal P2 1
#ACT
goto @E08Eventcall_3
goto @E08Eventcall_4
break
#IF
Equal P1 0
Equal P2 1
#ACT
goto @E08Eventcall_2
goto @E08Eventcall_4
break
#IF
Equal P1 1
Equal P2 0
#ACT
goto @E08Eventcall_1
goto @E08Eventcall_4
break


#ELSEACT
break


[@T03EventCall]
#CALL [Judgement\Story\T03\T03Event.txt] @setT03A

[@T03EventMongen]
#CALL [Judgement\Story\T03\T03Mongen.txt] @setT03gen

[@E01EventGen]
#CALL [Judgement\Story\T03\E01Event.txt] @setE01gen

[@E04Eventcall]
#CALL [Judgement\Story\T03\E04Event.txt] @setE04A

[@E05Eventcall]
#CALL [Judgement\Story\T03\E05Event.txt] @setE05A

[@E07Eventcall]
#CALL [Judgement\Story\T03\E07Event.txt] @setE07A

[@E08Eventcall_3]
#CALL [Judgement\Story\T03\E08Event.txt] @setE08C

[@E08Eventcall_2]
#CALL [Judgement\Story\T03\E08Event.txt] @setE08B

[@E08Eventcall_1]
#CALL [Judgement\Story\T03\E08Event.txt] @setE08A

[@E08Eventcall_4]
#CALL [Judgement\Story\T03\E08Event.txt] @setE08D


[@028Endmsg]
#CALL [Judgement\Story\028\028Event.txt] @028EndMsgFailed

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