;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@013_Agent]
{
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [013] [OpenGate]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [013] [CloseGate]
LoadValue P3 "QuestDiary\Judgement\Flag.txt" [013] [open]

#IF
Equal P1 1
Equal P2 1
#ACT
Goto @013Agent_CannotGo
break

#IF
Equal P1 1
Equal P2 0
#ACT
Goto @013Agent_GoGo
break

#IF
Equal P1 0
Equal P2 0
Equal P3 1
#ACT
Goto @013Agent_Wait
break

#ELSEACT
Goto @013Agent_nomral
break


[@013Agent_nomral]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_0

[@013Agent_Wait]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_1

[@013Agent_GoGo]
begin
#IF
CheckHum DQ1600_01 30

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_2

#IF
!CheckLevel 30

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_3

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_4

[@013Agent_GoGo1]
begin
#IF
CheckHum DQ1600_01 30

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_5

#ACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_6

#ELSEACT
Mapmove DQ1600_01 94 164
break
end


[@013Agent_CannotGo]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_7

}

[@013_NpcSay]

{
#ACT
loadValue P1 "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess]
#IF
Equal P1 0
CheckPos DQ1600_01 177 31 1
#ACT
Goto @OkSay
break

#IF
Equal P1 1
#ACT
Goto @endSay
break

#ELSEACT
Goto @NoSay

[@OkSay]
#ACT
movenpc "DQ1600_01,177,31,µÀÊ¿" npcroom1,6,17
SaveValue "QuestDiary\Judgement\Flag.txt" [013] [QuestSuccess] 1
LoadValue A7 [Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] [Convert] [Msg0]
linemsg "DQ1600_01" %A7
Goto @013_eventmsg

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_8

[@endSay]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_9

[@NoSay]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\013\NPC013.txt] @Convert_NPC013_10

[@013_eventmsg]
#CALL [Judgement\Story\013\013Event1.txt] @013_Npc_Say
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;