;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaStone1_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @NumaStone1_Talk1
break
#ELSEACT
goto @NumaStone1_Talk0
break


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

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

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

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

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

#IF
Equal D1 4
Equal D2 0
Checkitemw 寂幻之刃 1
checkitem 青空石 1
#ACT
goto @NumaStone1_Talk1_2
break

#IF
#ACT
goto @NumaStone1_Talk0
break

[@NumaStone1_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_0

[@NumaStone1_Talk1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_1

[@NumaStone1_Talk1_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_2

[@NumaStone1_Talk1_4]
#IF
Checkitemw 寂幻之刃 1
checkitem 青空石 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_3

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

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_4

[@NumaStone1_Talk1_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_5

[@NumaStone1_Talk1_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_6

[@NumaStone1_Talk1_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_7

[@NumaStone1_Talk1_8]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_8

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

[@NumaStone1_Talk1_9]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpc1.txt] @Convert_StoneNpc1_9

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