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







[@029NPC_governer]

{









#ACT

LoadValue B1 "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName]

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [029] [EventStart]





#IF

!CheckLevel 22

#ACT

Goto @029Level_Low

break



#IF

Equal B1 ""

Equal P1 0

#ACT

GOTO @029_giveQUEST

break



#IF

Equal B1 %username

Equal P1 0

#ACT

GOTO @029_doingQUEST

break



#IF

Equal B1 %username

Equal P1 1

#ACT

GOTO @029_resultQUEST

break

#IF

#ACT

GOTO @029NPC_Normal

break



[@029NPC_Normal]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_0



[@029Level_Low]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_1



[@029Slow_Step]

begin

#ACT

LoadValue B1 "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName]



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_2



[@029_TimeOver]

begin

#ACT

Take 箱子 1

Savevalue "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName] ""

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"

Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_3



[@029refuseQuest]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_4



[@029_NotHave]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_5



[@029_giveQUEST]

begin

#ACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [029] [GiveTimeOver]

#IF

Equal P1 1

#ACT

Goto @029NPC_Normal

break



#IF

Equal D1 1

#ACT

Goto @029NPC_Normal

break



#IF

small P9 50

#ACT

Mov D1 1

Goto @029_giveQUEST2

#IF

#ACT

Mov D1 1

Goto @029NPC_Normal

end



[@029_giveQUEST2]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_6



[@029getQuset]

begin

#ACT

LoadValue B1 "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName]

#IF

!Equal B1 ""

#ACT

Goto @029Slow_Step

break



#IF

#ACT

Savevalue "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName] %USERNAME

Give 箱子 1



Goto @029Timecheck



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_7



[@029getQuset1]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_8



[@029getQuset2]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_9



[@029getQuset3]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_10



[@029_doingQUEST]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_11



[@029_GoGo]

begin

#ACT

LoadValue P2 "QuestDiary\Judgement\Flag.txt" [029] [GroupTimeOver]



#IF

Equal P2 1

#ACT

Goto @029_TimeOver

break



#IF

!CheckItem 箱子 1

#ACT

Goto @029_NotHave

break



#IF

CheckGroupCount 1



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_12





#ELSESAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_13



[@029_Brief]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_14



[@029GoGo2]

begin

#ACT

close

GroupMove "DQ1600_02,27,174" %USERNAME

goto @029EventStart

Savevalue "QuestDiary\Judgement\Flag.txt" [029] [EventStart] 1

end



[@029Timecheck]

#CALL [Judgement\Story\029\029.txt] @029timecheck



[@029EventStart]

#CALL [Judgement\Story\029\029Event.txt] @029Event







[@029_resultQUEST]

begin

#ACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [029] [QuestSuccess]



#IF

Equal P1 1

#ACT

Goto @029_Success

#ELSEACT

Goto @029_Failed

end



[@029_Success]

begin

#ACT

mov A0 "Judgement"

mov D0 29

mov D1 2

mov D2 0

mov D3 0

goto @EveryThingReward



Savevalue "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName] ""

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"

Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_15



[@029_Failed]

begin

#ACT

take 箱子 1

Savevalue "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName] ""

#ACT

UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"

Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_16



[@029NPC_Numa]

{

#ACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [029] [QuestSuccess]

LoadValue B1 "QuestDiary\Judgement\Flag.txt" [029] [QuestUserName]



#IF

Equal P1 1

#ACT

Goto @029NPC_Numa_3

break



#IF

Equal B1 %USERNAME



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_17





#ELSESAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_18



[@029NPC_Numa_1]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_19



[@029NPC_Numa_2]

begin

#IF

checkitem 箱子 1

#ACT

take 箱子 1

Savevalue "QuestDiary\Judgement\Flag.txt" [029] [QuestSuccess] 1

mov A0 "Judgement"

mov D0 29

mov D1 1

mov D2 0

mov D3 0

goto @EveryThingReward

LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] [Convert] [Msg0]

LineMsg "DQ1600_02" %A7



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_20





#ELSESAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_21



[@029NPC_Numa_3]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\029\029NPC.txt] @Convert_029NPC_22



[@029NPC_Numa_Exit]

begin

#ACT

Movenpc "DQ1600_02,139,27,诺玛长老" npcroom1,5,14

Mapting DQ1600_02 41 78 326

MonClear DQ1600_02

end





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