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

[@SabukStoneNpc5_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc5_Master
break

#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneNpc5_Guild
break



[@SabukStoneNpc5_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc5.txt] @Convert_SabukStoneNpc5_0

[@SabukStoneNpc5_Master]
#ACT
ReadValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukGuildName,FLD_SabukUserName,FLD_SabukCondition,FLD_SabukStatus,FLD_SabukStatusReady" [@SabukStoneNpc5_Call_0]

[@SabukStoneNpc5_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 1
Equal D2 6
#ACT
goto @SabukQuestStep5_Master
break

#IF
#ACT
goto @SabukQuestStep5_MasterNo
break

[@SabukQuestStep5_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc5.txt] @Convert_SabukStoneNpc5_1

[@SabukQuestStep5_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc5.txt] @Convert_SabukStoneNpc5_2

[@SabukMainUser_Master_Step5]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step5

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