;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


[@ExitSinGiSun_1]
{
#IF
!Checklevel 33
#ACT
goto @ExitSinGiSun_Normal
break

#IF
check [204] 1
#ACT
goto @ExitSinGiSun_Normal
break

#IF
check [203] 1
#ACT
goto @ExitSinGiSun_Normal
break

#IF
#ACT
FormatStr "FLD_SINUSERNAME='%s'" %USERNAME

ReadValueSql "TBL_SinGiSunQuest" %A9 "FLD_SINUSERNAME" [@ExitSinGiSun_1_0]

[@ExitSinGiSun_1_0()]
#ACT
mov A9 %ARG(1)

#IF
Equal A9 ""
#ACT
FormatStr "'%s',%s,%s" %USERNAME 1 0
mov A8 %A9
FormatStr "FLD_SINUSERNAME='%s'" %USERNAME
WriteValueSql "TBL_SinGiSunQuest" %A9 "FLD_SINUSERNAME,FLD_SINMAINSTEP,FLD_SINSTEP_READY" %A8
set [203] 1
set [204] 0
goto @ExitSinGiSun_Normal
break

#IF
#ACT
goto @ExitSinGiSun_Normal
break



[@ExitSinGiSun_Normal]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\Map_SinGiMain.txt] @Convert_Map_SinGiMain_0


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\Map_SinGiMain.txt] @Convert_Map_SinGiMain_1

[@singi_data]
#ACT
enter_fail
RepairItem 3
RepairItem 5
RepairItem 6
RepairItem 7
RepairItem 8
mapmove 4 286 163
}


[@SinGiking_1]
{

#IF
checkitem 连环明珠 1
#ACT
take 连环明珠 1
enter_ok

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\SinGiSun\Map_SinGiMain.txt] @Convert_Map_SinGiMain_2

#ELSEACT
enter_fail
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;