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

[@SabukStoneNpc23_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc23_Master
break

#IF
#ACT
goto @SabukStoneNpc23_Guild
break



[@SabukStoneNpc23_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] @Convert_SabukStoneNpc23_0

[@SabukStoneNpc23_Master]
#ACT

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

[@SabukStoneNpc23_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 9
Equal D2 2
#ACT
goto @SabukQuestStep23_Master2
break

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

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

#IF
#ACT
goto @SabukQuestStep23_MasterNo
break

[@SabukQuestStep23_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] @Convert_SabukStoneNpc23_1

[@SabukQuestStep23_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] @Convert_SabukStoneNpc23_2

[@SabukQuestStep23_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] @Convert_SabukStoneNpc23_3

[@SabukQuestStep23_Master2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] @Convert_SabukStoneNpc23_4

[@SabukQuestStep23_Master3]
#ACT
mapting D1703 D1703_022 19 67
mapting D1702 D1703_022 19 67
mapting D1701 D1703_022 19 67
Delaygoto [Grobal] 12 @SabukQuestStep23_Master4

[@SabukQuestStep23_Master4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] [Convert] [Msg0]
EventMsg "D1703,D1703_22" %A7 2000
Delaygoto [Grobal] 12 @SabukQuestStep23_Master5

[@SabukQuestStep23_Master5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] [Convert] [Msg1]
EventMsg "D1703,D1703_22" %A7 2000
Delaygoto [Grobal] 12 @SabukQuestStep23_Master6

[@SabukQuestStep23_Master6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc23.txt] [Convert] [Msg2]
EventMsg "D1703,D1703_22" %A7 2000

[@SabukMainUser_Master_Step23]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step23

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