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

[@SabukStoneNpc16_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc16_Master
break

#IF
#ACT
goto @SabukStoneNpc16_Guild
break



[@SabukStoneNpc16_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc16.txt] @Convert_SabukStoneNpc16_0

[@SabukStoneNpc16_Master]
#ACT

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

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


#IF
!Checkmonmap D1702 ¿×È¸ÓÒ»¤ÎÀ 1
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 6
Equal D2 1
#ACT
goto @SabukQuestStep16_Master1
break

#IF
!Checkmonmap D1702 ¿×È¸ÓÒ»¤ÎÀ 1
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 6
Equal D2 0
#ACT
goto @SabukQuestStep16_Master
break

#IF
#ACT
goto @SabukQuestStep16_MasterNo
break

[@SabukQuestStep16_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc16.txt] @Convert_SabukStoneNpc16_1

[@SabukQuestStep16_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc16.txt] @Convert_SabukStoneNpc16_2

[@SabukQuestStep16_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc16.txt] @Convert_SabukStoneNpc16_3

[@SabukQuestStep16_Master2]
#ACT
mapting D1702 D1702_032 19 67
mapting D1701 D1702_032 19 67
Delaygoto [Grobal] 12 @SabukQuestStep16_Master3

[@SabukQuestStep16_Master3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc16.txt] [Convert] [Msg0]
Eventmsg "D1702_032,D1702" %A7 2000


[@SabukMainUser_Master_Step16]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step16

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