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

[@SabukStoneNpc1_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc1_Master
break

#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneNpc1_Guild
break



[@SabukStoneNpc1_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc1.txt] @Convert_SabukStoneNpc1_0

[@SabukStoneNpc1_Master]
#ACT

ReadValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukGuildName,FLD_SabukUserName,FLD_SabukCondition,FLD_SabukStatus,FLD_SabukStatusReady" [@SabukStoneNpc1_Call_0]

[@SabukStoneNpc1_Call_0()]
#ACT
mov A1 %ARG(1)
mov A2 %ARG(2)
mov A3 %ARG(3)
mov D1 %ARG(4)
mov D2 %ARG(5)


#IF
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 0
Equal D2 0
#ACT
goto @SabukQuestStep1_Master
break

#IF
#ACT
goto @SabukQuestStep1_MasterNo
break

[@SabukQuestStep1_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc1.txt] @Convert_SabukStoneNpc1_1

[@SabukQuestStep1_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc1.txt] @Convert_SabukStoneNpc1_2

[@SabukMainUser_Master_Step1]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step1

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