;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@006_Event1]
{
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg0]
Eventmsg Grobal %A7 10005
SaveValue "QuestDiary\Judgement\Flag.txt" [006] [FirstFailed] 1
MonClear DQ1602_1
DelayGoto [Grobal] 12 @006_Event1_1

[@006_Event1_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg1]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_2

[@006_Event1_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg2]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_3

[@006_Event1_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg3]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_4

[@006_Event1_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg4]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_5

[@006_Event1_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg5]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_6

[@006_Event1_6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg6]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_7

[@006_Event1_7]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg7]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_8

[@006_Event1_8]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg8]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_9

[@006_Event1_9]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg9]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_10

[@006_Event1_10]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg10]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 180 @006_Event1_11



[@006_Event1_11]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg11]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_12

[@006_Event1_12]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg12]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_13

[@006_Event1_13]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg13]
Eventmsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_14

[@006_Event1_14]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg14]
Eventmsg Grobal %A7 10005
DelayGoto [Grobal] 180 @006_Event1_15



[@006_Event1_15]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg15]
Eventmsg Grobal %A7 10008
DelayGoto [Grobal] 12 @006_Event1_16

[@006_Event1_16]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg16]
Eventmsg Grobal %A7 10008
DelayGoto [Grobal] 12 @006_Event1_17

[@006_Event1_17]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg17]
Eventmsg Grobal %A7 10008
DelayGoto [Grobal] 12 @006_Event1_18

[@006_Event1_18]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg18]
Eventmsg Grobal %A7 10008


MonGenP "DQ1602_1,252,43,1" 诺玛突击队长 1
ApplyMonEX "DQ1602_1,252,43,3" 诺玛突击队长 [Monsterside] "诺玛守卫队长"
MonGenP "DQ1602_1,359,52,8" 诺玛抛石兵 10
MonGenP "DQ1602_1,150,150,140" 诺玛7 100
MonGenP "DQ1602_1,150,150,140" 诺玛7 100
MonGenP "DQ1602_1,150,150,140" 诺玛7 100
MonGenP "DQ1602_1,150,150,140" 诺玛7 100
MonGenP "DQ1602_1,150,150,140" 诺玛将士7 100
MonGenP "DQ1602_1,150,150,140" 诺玛法老7 100
MonGenP "DQ1602_1,100,100,10" 诺玛族男人 2 "noitem,金币,30000,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）"
ApplyMonEx "DQ1602_1,100,100,100" 诺玛族男人 [RunAway]
MonGenP "DQ1602_1,100,100,50" 单腿诺玛 2 "noitem,金币,30000,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）"
ApplyMonEx "DQ1602_1,100,100,100" 单腿诺玛 [RunAway]
MonGenP "DQ1602_1,100,100,50" 单腿诺玛 2 "noitem,金币,50000,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）"
ApplyMonEx "DQ1602_1,100,100,100" 单腿诺玛 [RunAway]
MonGenP "DQ1602_1,100,100,50" 诺玛族男人 2 "noitem,金币,50000,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）"
ApplyMonEx "DQ1602_1,100,100,100" 诺玛族男人 [RunAway]
MonGenP "DQ1602_1,100,100,50" 诺玛族男人 2 "noitem,金币,80000,金创药（特）,魔法药（特）,金创药（大）,魔法药（大）,金创药（大）,魔法药（大）"
ApplyMonEx "DQ1602_1,100,100,100" 诺玛族男人 [RunAway]

DelayGoto [Grobal] 300 @006_Event1_GateOpen



[@006_Event1_GateOpen]
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [006] [GateOpen] 1
SaveValue "QuestDiary\Judgement\Flag.txt" [006] [GateClose] 0
DelayGoto [Grobal] 20 @006_Event1_19

[@006_Event1_19]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg19]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_20

[@006_Event1_20]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg20]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_21

[@006_Event1_21]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg21]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_22

[@006_Event1_22]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg22]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 30 @006_Event1_23

[@006_Event1_23]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg23]
EventMsg "DQ1602_1" %A7 10431
DelayGoto [Grobal] 12 @006_Event1_24

[@006_Event1_24]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg24]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_25

[@006_Event1_25]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg25]
EventMsg "DQ1602_1" %A7 10431
DelayGoto [Grobal] 12 @006_Event1_26

[@006_Event1_26]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg26]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 300 @006_Event1_GateClose



[@006_Event1_GateClose]
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [006] [GateClose] 1
DelayGoto [Grobal] 1500 @006_Event1_EndCheck



[@006_Event1_EndCheck]
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [006] [QuestSuccess]

#IF
Equal P1 0
#ACT
Goto @006_Event1_Fail
MonClear DQ1602_1
break
#ELSEACT
MonClear DQ1602_1
break



[@006_Event1_Fail]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg27]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_Fail1

[@006_Event1_Fail1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg28]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_Fail2

[@006_Event1_Fail2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg29]
EventMsg "DQ1602_1" %A7 10431
Mapting DQ1602_1 4 168 152
DelayGoto [Grobal] 30 @006_Event1_Fail3

[@006_Event1_Fail3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg30]
EventMsg Grobal %A7 10008
DelayGoto [Grobal] 12 @006_Event1_Fail4

[@006_Event1_Fail4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg31]
EventMsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_Fail5

[@006_Event1_Fail5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg32]
EventMsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_Fail6

[@006_Event1_Fail6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg33]
EventMsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_Fail7

[@006_Event1_Fail7]
begin
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg34]
EventMsg Grobal %A7 10008
MonClear DQ1602_1
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBNAME='Q005',FLD_JOBCONDITION='End'"
end
}


[@006_Event1_Success]
{
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [006] [FirstFailed]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [006] [SecondFailed]
LoadValue P3 "QuestDiary\Judgement\Flag.txt" [006] [ThirdFailed]
#IF
Equal P1 1
Equal P2 0
Equal P3 0
#ACT
MonClear DQ1602_1
ReadValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBDAYCOUNT" [@006_Event1_Success_1]
#ELSEACT
break

[@006_Event1_Success_1()]
#ACT
mov P1 %ARG(1)
inc P1 2
FormatStr "FLD_JOBDAYCOUNT=%s" %P1
Mov A8 %A9
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" %A8
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
SaveValue "QuestDiary\Judgement\Flag.txt" [006] [QuestSuccess] 1
goto @006_Event1_Success1_1
break
#ELSEACT
MonClear DQ1602_1
break

[@006_Event1_Success1_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg35]
EventMsg "DQ1602_1" %A7 10062
DelayGoto [Grobal] 12 @006_Event1_Success1

[@006_Event1_Success1]
#ACT
mov A0 "Judgement"
mov D0 6
mov D1 1
mov D2 0
mov D3 0
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg36]
EventMsg "DQ1602_1" %A7 10431
goto @EveryThingReward
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg37]
LineMsg "DQ1602_1" %A7
DelayGoto [Grobal] 12 @006_Event1_Success2

[@006_Event1_Success2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg38]
EventMsg "DQ1602_1" %A7 10431
DelayGoto [Grobal] 10 @006_Event1_Success3

[@006_Event1_Success3]
#ACT
Mapting DQ1602_1 4 168 152
DelayGoto [Grobal] 20 @006_Event1_Success4

[@006_Event1_Success4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg39]
EventMsg Grobal %A7 10003
DelayGoto [Grobal] 12 @006_Event1_Success5

[@006_Event1_Success5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg40]
EventMsg Grobal %A7 10005
DelayGoto [Grobal] 12 @006_Event1_Success6

[@006_Event1_Success6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\006\006event1.txt] [Convert] [Msg41]
EventMsg Grobal %A7 10003
MonClear DQ1602_1
Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0

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