;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaStone4_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk1
break
#ELSEACT
goto @NumaStone4_Talk0
break


[@NumaStone4_Talk1]
#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME

ReadValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT,FLD_MADOUSERCHECK,FLD_MADOUSERPATTERN" [@NumaStone4_Talk1_0]

[@NumaStone4_Talk1_0()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)
mov D3 %ARG(3)

#IF
Equal D1 11
Equal D2 0
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk2_7
break

#IF
Equal D1 10
Equal D2 10
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk2_5
break

#IF
Equal D1 10
Equal D2 9
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk2_3
break

#IF
Equal D1 10
Equal D2 8
Checkitemw 寂幻之刃 1
Checkitem 机关零件 5
#ACT
goto @NumaStone4_Talk2_1
break


#IF
Equal D1 10
Equal D2 3
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk1_5
break


#IF
Equal D1 10
Equal D2 2
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk1_4
break

#IF
Equal D1 10
Equal D2 1
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk1_1
break

#IF
Equal D1 9
small D2 7
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone4_Talk0_1
break

#IF
#ACT
goto @NumaStone4_Talk0
break

[@NumaStone4_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_0

[@NumaStone4_Talk0_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_1

[@NumaStone4_Talk1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_2

[@NumaStone4_Talk1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_3

[@NumaStone4_Talk1_3]
#IF
Checkitemw 寂幻之刃 1
Checkitem 青空石 1
Checkitem 大地石 1
Checkitem 太阳石 1
Checkitem 月光石 1
Checkitem 受胎石 1
Checkitem 安息石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_4

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=10"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=2"
#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_5

[@NumaStone4_Talk1_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_6

#ACT
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=10"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=3"

[@NumaStone4_Talk1_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_7

[@NumaStone4_Talk2_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_8

[@NumaStone4_Talk2_2]
#IF
checkitem 机关零件 5

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_9

#ACT
take 机关零件 5
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=10"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=9"
#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_10

[@NumaStone4_Talk2_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_11

[@NumaStone4_Talk2_4]
#IF
Checkitemw 寂幻之刃 1
Checkitem 青空石 1
Checkitem 大地石 1
Checkitem 太阳石 1
Checkitem 月光石 1
Checkitem 受胎石 1
Checkitem 安息石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_12

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=10"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=10"
take 青空石 1
take 大地石 1
take 太阳石 1
take 月光石 1
take 受胎石 1
take 安息石 1
#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_13

[@NumaStone4_Talk2_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_14

[@NumaStone4_Talk2_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_15

#ACT
set [208] 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=11"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=0"
LoadValue A7 [Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] [Convert] [Msg0]
Linemsg "Grobal" %A7

[@NumaStone4_Talk2_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc4.txt] @Convert_StoneNpc4_16

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