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




[@007_NPC]
{
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [007] [QuestUserName]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [007] [RecieveMail]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [007] [SendMail]

#IF
!CheckLevel 22
#ACT
Goto @007Level_Low
break

#IF
Equal B1 ""
Equal P1 0
Equal P2 0
#ACT
GOTO @007_giveQUEST
break

#IF
Equal B1 %username
Equal P1 1
Equal P2 0
#ACT
GOTO @007_waitingQUEST
break

#IF
Equal B1 %username
Equal P1 1
Equal P2 1
#ACT
GOTO @007_resultQUEST
break

#ELSEACT
GOTO @007NPC_Normal
break

[@007NPC_Normal]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_0

[@007Level_Low]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_1

[@007_Talk_Refuse]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_2

[@007_TalkingAbout_Refuse]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_3

[@007_giveQUEST]
begin
#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [007] [GiveTimeOver]

#IF
Equal P1 1
#ACT
Goto @007NPC_Normal
break
#IF
#ACT
Goto @007_giveQUEST2
break
#ELSEACT
Goto @007NPC_Normal
break
end

[@007_giveQUEST2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_4

[@007_NPC_1]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_5

[@007_NPC_2]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_6

[@007_NPC_2_1]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_7

[@007_NPC_3]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_8

[@007_NPC_4]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_9

[@007_NPC_5]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_10

[@007_NPC_6]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_11

[@007_NPC_7]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_12

[@007_doingQUEST]
begin
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [007] [QuestUserName]
#IF
!Equal B1 ""
#ACT
Goto @007Slow_Step
break

#ACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [007] [RecieveMail]

#IF
Equal P1 0
#ACT
Give 神女书信 1
SaveValue "QuestDiary\Judgement\Flag.txt" [007] [RecieveMail] 1
Savevalue "QuestDiary\Judgement\Flag.txt" [007] [QuestUserName] %Username

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_13

[@007Slow_Step]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_14

[@007_waitingQUEST]
begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_15

[@007_resultQUEST]
begin
#ACT
Savevalue "QuestDiary\Judgement\Flag.txt" [007] [QuestUserName] ""
mov A0 "Judgement"
mov D0 7
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward
UpdateValueSql "TBL_JobServerMain" "FLD_JOB='JOBSTORY'" "FLD_JOBCONDITION='End'"
Savevalue "QuestDiary\Judgement\Flag.txt" [MainTimer] [SuperQuest] 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_16

}




[@007_NPC_Numa]
{
#ACT
LoadValue B1 "QuestDiary\Judgement\Flag.txt" [007] [QuestUserName]
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [007] [RecieveMail]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [007] [SendMail]

#IF
!Equal B1 %Username

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_17

#ACT
break

#IF
Equal P2 1
Equal B1 %Username

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_18

#ACT
break

#IF
Equal P1 1
Equal P2 0
Equal B1 %Username

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_19

#ACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_20

[@007_NPC_Numa_1]
begin
#IF
Checkitem 神女书信 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_21


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_22

[@007_NPC_Numa_2]
begin
#ACT
Take 神女书信 1
Savevalue "QuestDiary\Judgement\Flag.txt" [007] [SendMail] 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\007\NPC007.txt] @Convert_NPC007_23

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