;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NPC0381]
{
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [0381] [Questusername]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [0381] [OpenGate]
#IF
Equal B1 %USERNAME
Equal P1 1

#ACT
goto @Agent0381_Enter

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_0

[@Agent0381]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_1

#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [0381] [OpenGate] 1
SaveValue "QuestDiary\Judgement\Flag.txt" [0381] [Questusername] %USERNAME
Delaygoto [Grobal] 600 @0381_Initial
end



[@0381_Initial]
begin
#ACT
close
Movenpc "4,184,198,خلت؟1" npcroom1,6,13
SaveValue "QuestDiary\Judgement\Flag.txt" [0381] [Questusername] ""
SaveValue "QuestDiary\Judgement\Flag.txt" [0381] [OpenGate] 0
FormatStr "FLD_JOB='%s'" "JOBRANDOM"
UpdateValueSql "TBL_JobServerMain" %A9 "FLD_JOBNAME='Q0381',FLD_JOBCONDITION='End'"
end



[@Agent0381_Enter]
begin
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [0381] [Questusername]
#IF
Equal B1 %USERNAME

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_2


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_3

[@Agent0381_Enter1]
begin
#IF
CheckGroupCount 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_4


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0381\NPC0381.txt] @Convert_NPC0381_5

[@Agent0381_Enter2]
begin
#ACT
close
Groupmove "DQ1600_12,134,25,2" %USERNAME
SaveValue "QuestDiary\Judgement\Flag.txt" [0381] [OpenGate] 0
Movenpc "4,184,198,خلت؟1" npcroom1,6,13
goto @0381EventStart
end

[@0381EventStart]
#CALL [Judgement\Event\0381\0381Event.txt] @set0381
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;