;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@StoneNpcbox1_Talk]
{
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @StoneNpcbox1_Talk1
break
#ELSEACT
goto @StoneNpcbox1_Talk0
break

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

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

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

#IF
Equal D1 13
Equal D2 2
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @StoneNpcbox1_Talk_4
break

#IF
Equal D1 13
Equal D2 1
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @StoneNpcbox1_Talk_3
break

#IF
Equal D1 13
Equal D2 0
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @StoneNpcbox1_Talk_2
break


#IF
Equal D1 12
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @StoneNpcbox1_Talk_1
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpcbox1.txt] @Convert_StoneNpcbox1_0

[@StoneNpcbox1_Talk_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpcbox1.txt] @Convert_StoneNpcbox1_1

[@StoneNpcbox1_Talk_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpcbox1.txt] @Convert_StoneNpcbox1_2

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=13"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=1"
goto @StoneNpcbox1_Event_1
break

[@StoneNpcbox1_Talk_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpcbox1.txt] @Convert_StoneNpcbox1_3

[@StoneNpcbox1_Event_1]	
#CALL [HonChonMado\QuestMadoEvent.txt] @Npcbox1_Event_1	


[@StoneNpcbox1_Talk_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\StoneNpcbox1.txt] @Convert_StoneNpcbox1_4

[@StoneNpcbox1_Talk_5]
#ACT
mapting	D1506 4	174 139	
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;