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

[@SabukStoneNpc20_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc20_Master
break

#IF
#ACT
goto @SabukStoneNpc20_Guild
break



[@SabukStoneNpc20_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] @Convert_SabukStoneNpc20_0

[@SabukStoneNpc20_Master]
#ACT

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

[@SabukStoneNpc20_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 8
Equal D2 2
#ACT
goto @SabukQuestStep20_Master2
break

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

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

#IF
#ACT
goto @SabukQuestStep20_MasterNo
break

[@SabukQuestStep20_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] @Convert_SabukStoneNpc20_1

[@SabukQuestStep20_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] @Convert_SabukStoneNpc20_2

[@SabukQuestStep20_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] @Convert_SabukStoneNpc20_3

[@SabukQuestStep20_Master2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] @Convert_SabukStoneNpc20_4

[@SabukQuestStep20_Master3]
#ACT
mapting D1703 D1703_012 19 67
mapting D1702 D1703_012 19 67
mapting D1701 D1703_012 19 67
Delaygoto [Grobal] 12 @SabukQuestStep20_Master4

[@SabukQuestStep20_Master4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] [Convert] [Msg0]
EventMsg "D1703,D17032" %A7 2000
Delaygoto [Grobal] 12 @SabukQuestStep20_Master5

[@SabukQuestStep20_Master5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] [Convert] [Msg1]
EventMsg "D1703,D17032" %A7 2000
Delaygoto [Grobal] 12 @SabukQuestStep20_Master6

[@SabukQuestStep20_Master6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc20.txt] [Convert] [Msg2]
EventMsg "D1703,D17032" %A7 2000

[@SabukMainUser_Master_Step20]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step20

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