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




[@044_Jin]
{
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [044] [NumaDie]
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [044] [QuestUserName]

#IF
Equal P1 1
Equal B1 %username
#ACT
Goto @044_Reward
break

#IF
Equal P1 0
Equal B1 %username
#ACT
Goto @044_HurryUp
break

#IF
Equal P1 0
Equal B1 ""
CheckLevel 22
#ACT
Goto @044_GiveQuest
break
#ELSEACT
Goto @044_Normal
break

[@044_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\044\044npc.txt] @Convert_044npc_0

[@044_GiveQuest]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\044\044npc.txt] @Convert_044npc_1

[@Judge_044]
begin
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [044] [QuestUserName] %username

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\044\044npc.txt] @Convert_044npc_2

[@044_HurryUp]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\044\044npc.txt] @Convert_044npc_3

[@044_Reward]
begin
#ACT
FormatStr "FLD_JOB='%s'" "JOBRANDOM"
UpdateValueSql "TBL_JobServerMain" %A9 "FLD_JOBNAME='Q044',FLD_JOBCONDITION='End'"
SaveValue "QuestDiary\Judgement\Flag.txt" [044] [EventStart] 0
SaveValue "QuestDiary\Judgement\Flag.txt" [044] [NumaDie] 0
SaveValue "QuestDiary\Judgement\Flag.txt" [044] [QuestUserName] ""
mov A0 "Judgement"
mov D0 44
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\044\044npc.txt] @Convert_044npc_4

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