;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaStone3_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone3_Talk1
break
#ELSEACT
goto @NumaStone3_Talk0
break

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

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

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

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

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

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

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

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

#IF
Equal D1 6
Equal D2 5
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone3_Talk1_4
break

#IF
Equal D1 6
Equal D2 4
Checkitemw 寂幻之刃 1
checkitem 青空石 1
checkitem 大地石 1
checkitem 太阳石 1
checkitem 月光石 1
#ACT
goto @NumaStone3_Talk1_1
break

#IF
Equal D1 6
Small D2 4
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone3_Talk0_1
break

#IF
#ACT
goto @NumaStone3_Talk0
break

[@NumaStone3_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_0

[@NumaStone3_Talk0_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_1

[@NumaStone3_Talk1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_2

[@NumaStone3_Talk1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_3

[@NumaStone3_Talk1_3]
#IF
Checkitemw 寂幻之刃 1
checkitem 青空石 1
checkitem 大地石 1
checkitem 太阳石 1
checkitem 月光石 1
#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=6"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=5"
take 青空石 1
take 大地石 1
take 太阳石 1
take 月光石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_4

#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_5

[@NumaStone3_Talk1_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_6

[@NumaStone3_Talk1_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_7

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=7"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=0"
give 无名书 1
give 青空石 1
give 大地石 1
give 太阳石 1
give 月光石 1



[@NumaStone3_Talk1_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_8

[@NumaStone3_Talk2_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_9

#ACT
take 机关零件 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=8"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=2"


[@NumaStone3_Talk2_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_10

[@NumaStone3_Talk2_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_11

[@NumaStone3_Talk2_4]
#IF
Checkitemw 寂幻之刃 1
Checkitem 青空石 1
Checkitem 大地石 1
Checkitem 太阳石 1
Checkitem 月光石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_12

#ACT
take 青空石 1
take 大地石 1
take 太阳石 1
take 月光石 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=8"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=3"

#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_13

[@NumaStone3_Talk2_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_14

[@NumaStone3_Talk2_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_15

[@NumaStone3_Talk2_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_16

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

[@NumaStone3_Talk2_8]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc3.txt] @Convert_StoneNpc3_17

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