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




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

#IF
CheckItem ÆÆËð¹ÅÊé 1
Equal P1 1
Equal B1 %username
#ACT
Goto @045_Reward
break

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

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

[@045_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\045\045npc.txt] @Convert_045npc_0

[@045_GiveQuest]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\045\045npc.txt] @Convert_045npc_1

[@Judge_045]
begin
#ACT
SaveValue "QuestDiary\Judgement\Flag.txt" [045] [QuestUserName] %username
param1 42
param2 34
param3 37
setmission
mongenp "D002,34,37,1" ÅµÂêÆï±ø 1
mongenp "D002,34,37,5" ÅµÂê 10
mongenp "D002,34,37,5" ÅµÂê 10
mongenp "D002,34,37,5" ÅµÂê 10
mongenp "D002,34,37,5" ÅµÂê½«Ê¿ 10
mongenp "D002,34,37,5" ÅµÂê·¨ÀÏ 10

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\045\045npc.txt] @Convert_045npc_2

[@045_HurryUp]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\045\045npc.txt] @Convert_045npc_3

[@045_Reward]
begin
#ACT
Take "ÆÆËð¹ÅÊé" 1
FormatStr "FLD_JOB='%s'" "JOBRANDOM"
UpdateValueSql "TBL_JobServerMain" %A9 "FLD_JOBNAME='Q044',FLD_JOBCONDITION='End'"
SaveValue "QuestDiary\Judgement\Flag.txt" [045] [EventStart] 0
SaveValue "QuestDiary\Judgement\Flag.txt" [045] [NumaDie] 0
SaveValue "QuestDiary\Judgement\Flag.txt" [045] [QuestUserName] ""
mov A0 "Judgement"
mov D0 45
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Event\045\045npc.txt] @Convert_045npc_4

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