;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@MadoHaveJaha_Talk]
{
#IF
Checkitemw 寂幻之刃 1
#ACT
goto @MadoHaveJaha_Talk1
break
#ELSEACT
goto @MadoHaveJaha_Talk0
break


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

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

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

#IF
Equal D1 10
Equal D2 1
Checkitemw 寂幻之刃 1
#ACT
goto @MadoHaveJaha_Talk2_10_1
break

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

#IF
Equal D1 8
Checkitemw 寂幻之刃 1
#ACT
goto @MadoHaveJaha_Talk1_12
break

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

#IF
Equal D1 7
Equal D2 2
Equal D2 0
Checkitemw 寂幻之刃 1
#ACT
goto @MadoHaveJaha_Talk1_9
break

#IF
Equal D1 7
Equal D2 1
Checkitemw 寂幻之刃 1
#ACT
goto @MadoHaveJaha_Talk1_3
break


#IF
Equal D1 7
Equal D2 0
Checkitemw 寂幻之刃 1
Checkitem 无名书 1
#ACT
goto @MadoHaveJaha_Talk1_1
break

#IF
#ACT
goto @MadoHaveJaha_Talk0
break

[@MadoHaveJaha_Talk0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_0

[@MadoHaveJaha_Talk1_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_1

[@MadoHaveJaha_Talk1_No]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_2

[@MadoHaveJaha_Talk1_2]
#IF
checkitem 无名书 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_3

#ACT
Take 无名书 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=7"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=1"
#ElSEACT
break

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_4

[@MadoHaveJaha_Talk1_3]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_5

[@MadoHaveJaha_Talk1_5]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_6

[@MadoHaveJaha_Talk1_6]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_7

[@MadoHaveJaha_Talk1_7]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_8

[@MadoHaveJaha_Talk1_8]
#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_9

#IF
Equal D3 1

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_10

#IF
Equal D3 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_11

[@MadoHaveJaha_Talk1_8_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_12

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


[@MadoHaveJaha_Talk_1_2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_13

[@MadoHaveJaha_Talk1_8_0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_14

#ACT
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=7"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=2"

[@MadoHaveJaha_Talk1_9]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_15

[@MadoHaveJaha_Talk1_10]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_16

#ACT
set [208] 1
FormatStr "FLD_MADOHAVEUSER='%s'" %USERNAME
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCONTENT=8"
UpdateValueSql "TBL_MadoHaveUserQuest" %A9 "FLD_MADOUSERCHECK=0"
give 神秘之印 1


[@MadoHaveJaha_Talk1_11]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_17

[@MadoHaveJaha_Talk1_12]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_18

[@MadoHaveJaha_Talk2_10_0]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_19

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

[@MadoHaveJaha_Talk2_10_1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonMado\MadoHaveJaha.txt] @Convert_MadoHaveJaha_20

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