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



[@025NPC_governer]
{
begin
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [025] [QuestUserName]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [025] [GrupTimeOver]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [025] [EventStart]
LoadValue P3 "QuestDiary\Judgement\Flag.txt" [025] [QuestSuccess]

#IF
!CheckLevel 22
#ACT
Goto @025Level_Low
break


#IF
Equal B1 ""
Equal P1 0
Equal P2 0
Equal P3 0
#ACT
GOTO @025_GiveQUEST
break

#IF
Equal B1 %username
Equal P1 1
Equal P2 1
Equal P3 0
#ACT
GOTO @025_FailQUEST
break


#IF
Equal B1 %username
Equal P1 0
Equal P2 0
Equal P3 0
#ACT
GOTO @025_waitingQUEST
break
#IF
Equal B1 %username
Equal P1 1
Equal P2 0
Equal P3 0
#ACT
GOTO @025_TimeOverQUEST
break

#IF
Equal B1 %username
Equal P2 1
Equal P3 1
#ACT
GOTO @025_resultQUEST
break

#ELSEACT
GOTO @025NPC_Normal
break
end

[@025_FailQUEST]
begin
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [025] [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\025\NPC025.txt] @Convert_NPC025_0

[@025_resultQUEST]
begin
#ACT
mov A0 "Judgement"
mov D0 25
mov D1 2
mov D2 0
mov D3 0
goto @EveryThingReward
SaveValue "QuestDiary\Judgement\Flag.txt" [025] [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\025\NPC025.txt] @Convert_NPC025_1

[@025Level_Low]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_2

[@025NPC_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_3

[@025_GiveQUEST]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_4

[@025_GiveQUEST_1]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_5

[@025_GiveQUEST_2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_6

[@025_GiveQUEST_3]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_7

[@025_GiveQUEST_4]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_8

[@025_GiveQUEST_5]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_9

[@025_GiveQUEST_6]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_10

[@025_GiveQUEST_7]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_11

[@025_GiveQUEST_8]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_12

[@025_GiveQUEST_10]
begin
#ACT
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [021] [QuestUserName]
#IF
Equal B1 ""

#ACT
Give 木料 10
saveValue "QuestDiary\Judgement\Flag.txt" [021] [QuestUserName] %username


#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_13

#ELSEACT
Goto @019Slow_Step
break
end


[@025_talk_2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_14

[@019Slow_Step]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_15

[@025_waitingQUEST]
begin
#IF
checkitem 木料 10

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_16


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_17

[@025_Eventstart]
begin
#IF
checkitem 木料 10
#ACT
Savevalue "QuestDiary\Judgement\Flag.txt" [025] [Eventstart] 1
Groupmove "DQ1600_02, 38 , 167, 5" %Username
Goto @Eventmsg
#ELSEACT
Goto waitingQUEST
end

[@Eventmsg]
#CALL [Judgement\Story\025\025Event.txt] @set025A
end


}





[@025_Npc]

{
begin
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [025] [QuestUserName]

#IF
Equal B1 %username
#ACT
Goto @025_Mission
break
#ELSEACT
Goto @025_grup
break

[@025_grup]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_18

[@025_Mission]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_19

[@025_Mission_1]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_20

[@025_Mission_2]
begin
#IF
checkitem 木料 10

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_21


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_22

[@025_Mission_3]
begin
#IF
checkitem 木料 10

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_23

#ACT
take 木料 10
movenpc "DQ1600_02,139,27,诺玛后勤兵1" npcroom1,6,16
SaveValue "QuestDiary\Judgement\Flag.txt" [025] [QuestSuccess] 1
MapTing DQ1600_02 4 464 44
MonClear DQ1600_02

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\025\NPC025.txt] @Convert_NPC025_24

#ELSEACT
break
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;