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

[@SabukStoneNpc22_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc22_Master
break

#IF
#ACT
goto @SabukStoneNpc22_Guild
break



[@SabukStoneNpc22_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc22.txt] @Convert_SabukStoneNpc22_0

[@SabukStoneNpc22_Master]
#ACT

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

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



#IF
CheckHum D1703_013 1
!Equal A3 "Stop"
Equal D1 8
Equal D2 3
#ACT
goto @SabukQuestStep22_Master
break

#IF
!CheckHum D1703_013 1
!Equal A3 "Stop"
Equal D1 8
Equal D2 2
#ACT
goto @SabukQuestStep22_Master1
break

#IF
CheckHum D1703_013 1
!Equal A3 "Stop"
Equal D1 8
Equal D2 2
#ACT
goto @SabukQuestStep22_Master2
break

#IF
#ACT
goto @SabukQuestStep22_MasterNo
break

[@SabukQuestStep22_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc22.txt] @Convert_SabukStoneNpc22_1

[@SabukQuestStep22_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc22.txt] @Convert_SabukStoneNpc22_2

[@SabukQuestStep22_Master2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc22.txt] @Convert_SabukStoneNpc22_3

[@SabukQuestStep22_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc22.txt] @Convert_SabukStoneNpc22_4

[@SabukMainUser_Master_Step22]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step22

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