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



[@020_Agent]

{



#ACT

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

LoadValue P2 "QuestDiary\Judgement\Flag.txt" [020] [GiveTimeover]

LoadValue P3 "QuestDiary\Judgement\Flag.txt" [020] [Result]

LoadValue P4 "QuestDiary\Judgement\Flag.txt" [020] [HumanCount]

LoadValue P5 "QuestDiary\Judgement\Flag.txt" [020] [Result2]





#IF

!checklevel 22

#ACT

Goto @020_Low_Level

break



#IF



Large P4 20

Equal P1 1

Equal P2 0

Equal P3 0

#ACT

Goto @020_QusestClose

break





#IF

check [772] 1

Equal P1 1

Equal P3 1

#ACT

Goto @020_QuestSuccess

break



#IF

Equal P1 1

Equal P2 1

Equal P3 0

#ACT

Goto @020_GiveTimeover

break



#IF

Equal P1 1

Equal P2 0

Equal P3 0

Equal P5 0

#ACT

Goto @020_Questdoing

break





#IF

Equal P1 0

Equal P2 0

Equal P3 0

Equal P4 0

#ACT

GOTO @020_GiveQUEST

break

#ELSEACT

GOTO @020NPC_Normal

break





[@020NPC_Normal]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_0



[@020_QuestSuccess]

begin

#IF

check [772] 1

#ACT

set [772] 0

set [773] 0

mov A0 "Judgement"

mov D0 20

mov D1 2

mov D2 0

mov D3 0

goto @EveryThingReward



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_1



#ELSEACT

goto @020NPC_Normal

end



[@020_GiveQUEST]

begin

#ACT

set [772] 0

set [773] 0



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_2



[@020_GetQuest]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_3



[@020_NOQuest]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_4



[@020_Questdoing]

begin

#ACT

LoadValue P4 "QuestDiary\Judgement\Flag.txt" [020] [HumanCount]

#IF

small P4 20



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_5



#ELSEACT

Goto @020_QusestClose

break

end

[@020_okstart]

begin

#IF

!CheckLevel 22

#ACT

Goto @020_Low_Level

break





#ACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [020] [HumanCount]

#IF

Large P1 20

#ACT

Goto @020_QusestClose

break

#ELSEACT

LoadValue P1 "QuestDiary\Judgement\Flag.txt" [020] [HumanCount]

set [772] 1

set [773] 0

Inc P1 1

SaveValue "QuestDiary\Judgement\Flag.txt" [020] [HumanCount] %P1

Mapmove DQ1600_01 94 164

end



[@020_Low_Level]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_6



[@020_nostart]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_7



[@020_GiveTimeover]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_8



[@020_QusestClose]

begin



#SAY

#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1323\NPC020A.txt] @Convert_NPC020A_9



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