;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@NumaMagda1_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @NumaMagda1_Talk1
break
#ELSEACT
goto @NumaMagda1_Talk0
break

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

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

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

#IF
large D1 12
Checkitemw 寂幻之刃 1
#ACT
goto @NumaMagda1_Talk_9
break

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

#IF
Equal D1 12
Equal D2 2
Checkitemw 寂幻之刃 1
!Checkmonmap D15064 1
#ACT
goto @NumaMagda1_Talk_7
break

#IF
Equal D1 12
Equal D2 2
Checkitemw 寂幻之刃 1
Checkmonmap D15064 1
#ACT
goto @NumaMagda1_Talk_6
break

#IF
Equal D1 12
Equal D2 1
Checkitemw 寂幻之刃 1
#ACT
goto @NumaMagda1_Talk_1
break

#IF
#ACT
goto @NumaMagda1_Talk0
break

[@NumaMagda1_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_0

[@NumaMagda1_Talk_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_1

[@NumaMagda1_Talk_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_2

[@NumaMagda1_Talk_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_3

[@NumaMagda1_Talk_4]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_4

[@NumaMagda1_Talk_5]
#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=12"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=2"
Mongenp "D15064,33,44,10" 诺玛司令 5
ApplyMonEx "D15064,33,44,30" 诺玛司令 [Monsterside] "毁灭之印大师"
close

[@NumaMagda1_Talk_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_5

[@NumaMagda1_Talk_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_6

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=12"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=3"
Delaygoto [Grobal] 12 @NumaMagda1_Event_1
goto @NumaMagda1_Event_Face
break

[@NumaMagda1_Talk_8]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_7

[@NumaMagda1_Talk_9]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\NumaNpcMagda1.txt] @Convert_NumaNpcMagda1_8

[@NumaMagda1_Event_1]
#CALL [HonChonMado\QuestMadoEvent.txt] @Magda1_Event_2

[@NumaMagda1_Event_Face]
#CALL [HonChondo\extinctionQuestEvent.txt] @madojobcheckEvent
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;