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

[@017_talk]
{
#ACT
LoadValue P1 "\QuestDiary\Judgement\Flag.txt" [017] [End]
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [017] [HumanCount]

#IF
Equal P1 1
#ACT
Goto @017_Normal
break
#IF

Large P2 10
#ACT
Goto @017_Normal
break


#IF
Small P9 100
#ACT
Goto @017_GiveQuest
break
#ELSEACT
Goto @017_Normal




[@017_Normal]

begin

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_0

[@017_GiveQuest]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_1

[@017_talk_1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_2

[@017_talk_1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_3

[@017_talk_1_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_4

[@017_GetQuest]

begin
#ACT
LoadValue P2 "QuestDiary\Judgement\Flag.txt" [017] [HumanCount]

#IF
Large P2 10
#ACT
Goto @017_Normal
break
#ELSEACT
LoadValue P1 "QuestDiary\Judgement\Flag.txt" [017] [HumanCount]
set [770] 1
Inc P1 1
SaveValue "QuestDiary\Judgement\Flag.txt" [017] [HumanCount] %P1
Goto @017_GetQuest2
break
end

[@017_GetQuest2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_5

[@017_talkend]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_6

}


[@017_End]
{
#IF
check [770] 1
checkitem 养颜长生果

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_7

#ACT
mov A0 "Judgement"
mov D0 17
mov D1 1
mov D2 0
mov D3 0
goto @EveryThingReward
take 养颜长生果 1

set [770] 0

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\Judgement\Story\1418\NPC017.txt] @Convert_NPC017_8

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