;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaStone2_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone2_Talk1
break
#ELSEACT
goto @NumaStone2_Talk0
break


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

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

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

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

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

#IF
Equal D1 5
Equal D2 2
Checkitemw 寂幻之刃 1
checkitem 青空石 1
checkitem 大地石 1
#ACT
goto @NumaStone2_Talk1_1
break


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

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

#IF
#ACT
goto @NumaStone2_Talk0
break



[@NumaStone2_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_0

[@NumaStone2_Talk11]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_1

[@NumaStone2_Talk1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_2

[@NumaStone2_Talk1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_3

[@NumaStone2_Talk1_3]
#IF
Checkitemw 寂幻之刃 1
checkitem 青空石 1
checkitem 大地石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_4

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=5"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=3"
take 青空石 1
take 大地石 1
#ELSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_5

[@NumaStone2_Talk1_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_6

[@NumaStone2_Talk1_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_7

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

[@NumaStone2_Talk1_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc2.txt] @Convert_StoneNpc2_8

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