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

[@SabukStoneNpc14_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc14_Master
break

#IF
#ACT
goto @SabukStoneNpc14_Guild
break



[@SabukStoneNpc14_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc14.txt] @Convert_SabukStoneNpc14_0

[@SabukStoneNpc14_Master]
#ACT

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

[@SabukStoneNpc14_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 5
Equal D2 1
#ACT
goto @SabukQuestStep14_Master1
break

#IF
!Checkmonmap D1702 °×»¢ÓÒ»¤ÎÀ 1
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 5
Equal D2 0
#ACT
goto @SabukQuestStep14_Master
break

#IF
#ACT
goto @SabukQuestStep14_MasterNo
break

[@SabukQuestStep14_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc14.txt] @Convert_SabukStoneNpc14_1

[@SabukQuestStep14_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc14.txt] @Convert_SabukStoneNpc14_2

[@SabukQuestStep14_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc14.txt] @Convert_SabukStoneNpc14_3

[@SabukQuestStep14_Master2]
#ACT
mapting D1702 D1702_022 19 67
mapting D1701 D1702_022 19 67
Delaygoto [Grobal] 12 @SabukQuestStep14_Master3

[@SabukQuestStep14_Master3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc14.txt] [Convert] [Msg0]
Eventmsg "D1702_022,D1702" %A7 2000


[@SabukMainUser_Master_Step14]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step14

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