;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NPC0382]
{
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [0382] [Questusername]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [0382] [OpenGate]

#IF
!Equal B1 ""
Equal P1 1
#ACT
goto @Agent0382_Enter
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_0

[@Agent0382]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_1

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

end

[@0382_Initial]
begin
#ACT
close
Movenpc "4,136,111,خلت؟2" npcroom1,7,14
SaveValue "QuestDiary\Judgement\Flag.txt" [0382] [OpenGate] 0
SaveValue "QuestDiary\Judgement\Flag.txt" [0382] [Questusername] ""
FormatStr "FLD_JOB='%s'" "JOBRANDOM"
UpdateValueSql "TBL_JobServerMain" %A9 "FLD_JOBNAME='Q0382',FLD_JOBCONDITION='End'"
end

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

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_2


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_3

[@Agent0382_Enter1]
begin
#IF
CheckGroupCount 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_4


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\0382\NPC0382.txt] @Convert_NPC0382_5

[@Agent0382_Enter2]
begin
#ACT
Close
Groupmove "DQ1600_12,38,167,2" %USERNAME
SaveValue "QuestDiary\Judgement\Flag.txt" [0382] [OpenGate] 0
Movenpc "4,136,111,خلت؟2" npcroom1,7,14
goto @0382EventStart
end

[@0382EventStart]
#CALL [Judgement\Event\0382\0382Event.txt] @set0382



[@Speak_Main]
#ACT
break
[@Speak_Main_next]
#ACT
break
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;