;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@extinctionRoom_1]
{
#IF
DAYOFWEEK SUN
HOUR 23 23
#ACT
goto @main_Day
break

#IF
DAYOFWEEK MON
HOUR 0 1
#ACT
goto @main_Day
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonDo\Map_extinctionRoom.txt] @Convert_Map_extinctionRoom_0

#ACT
Enter_fail

[@main_Day]
#ACT
FormatStr "FLD_MADOUSER='%s'" %USERNAME

ReadValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOMAIN,FLD_MADOCONTENT,FLD_MADOQUESTCHECK" [@extinctionRoom_0]

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

#IF
Equal D1 5
Equal D2 5
Equal D3 1
#ACT
goto @extinctionRoom_Check
break

#IF
Equal D1 6
Equal D2 2
Equal D3 0
#ACT
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOMAIN=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOCONTENT=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOQUESTCHECK=1"
goto @extinctionRoom_Check
break

#IF
Equal D1 6
Equal D2 1
Equal D3 1
#ACT
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOMAIN=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOCONTENT=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOQUESTCHECK=1"
goto @extinctionRoom_Check
break

#IF
Equal D1 6
Equal D2 1
Equal D3 0
#ACT
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOMAIN=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOCONTENT=5"
UpdateValueSql "TBL_HonChonMadoQuest" %A9 "FLD_MADOQUESTCHECK=1"
goto @extinctionRoom_Check
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonDo\Map_extinctionRoom.txt] @Convert_Map_extinctionRoom_1

#ACT
Enter_fail

[@extinctionRoom_Check]
#IF
checkhum D15061 1
#ACT
Enter_fail

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonDo\Map_extinctionRoom.txt] @Convert_Map_extinctionRoom_2

#ELSEACT
Enter_fail

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\HonChonDo\Map_extinctionRoom.txt] @Convert_Map_extinctionRoom_3

[@extinctionRoom_Check_2]
#ACT
monclear D15061
GroupMove "D15061,37,48" %USERNAME

[@extinctionRoom_Check_3]
#ACT
monclear D15061
MAPMOVE D15061 37 48


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