;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@SabukStoneNpc2_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc2_Master
break

#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneNpc2_Guild
break



[@SabukStoneNpc2_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc2.txt] @Convert_SabukStoneNpc2_0

[@SabukStoneNpc2_Master]
#ACT

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

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

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

#IF
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 1
Equal D2 2
#ACT
goto @SabukQuestStep2_Master1
break

#IF
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 1
Equal D2 3
#ACT
goto @SabukQuestStep2_Master2
break

#IF
#ACT
goto @SabukQuestStep2_MasterNo
break

[@SabukQuestStep2_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc2.txt] @Convert_SabukStoneNpc2_1

[@SabukQuestStep2_Master2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc2.txt] @Convert_SabukStoneNpc2_2

[@SabukQuestStep2_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc2.txt] @Convert_SabukStoneNpc2_3

[@SabukQuestStep2_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc2.txt] @Convert_SabukStoneNpc2_4

[@SabukMainUser_Master_Step2]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step2
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;