;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaMagda_Talk]
{
#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @NumaMagda_Talk1
break
#ELSEACT
goto @NumaMagda_Talk0
break



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

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

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

#IF
Large D1 4
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @NumaMagda_Talk_1_3
break

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

#IF
Equal D1 3
Equal D2 2
Checkitemw ¼Å»ÃÖ®ÈÐ 1
checkitem Çà¿ÕÊ¯ 1
#ACT
goto @NumaMagda_Talk_1_1
break


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

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


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

#IF
Checkitemw ¼Å»ÃÖ®ÈÐ 1
#ACT
goto @NumaMagda_Talk_9
break

#IF
#ACT
goto @NumaMagda_Talk0
break

[@NumaMagda_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_0

[@NumaMagda_Talk_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_1

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=3"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=0"

[@NumaMagda_Talk_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_2

[@NumaMagda_Talk_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_3

[@NumaMagda_Talk_3_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_4

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERPATTERN=1"


[@NumaMagda_Talk_3_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_5

[@NumaMagda_Talk_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_6

[@NumaMagda_Talk_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_7

[@NumaMagda_Talk_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_8

[@NumaMagda_Talk_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_9

#ACT
set [208] 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=3"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=1"

[@NumaMagda_Talk_8]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_10

[@NumaMagda_Talk_9]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_11

[@NumaMagda_Talk_1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_12

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=4"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=0"

[@NumaMagda_Talk_1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_13

[@NumaMagda_Talk_1_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda.txt] @Convert_NumaNpcMagda_14

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