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

[@SabukStoneNpc12_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc12_Master
break

#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneNpc12_Guild
break



[@SabukStoneNpc12_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc12.txt] @Convert_SabukStoneNpc12_0

[@SabukStoneNpc12_Master]
#ACT

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

[@SabukStoneNpc12_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 4
Equal D2 2
#ACT
goto @SabukQuestStep12_Master1
break

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

#IF
#ACT
goto @SabukQuestStep12_MasterNo
break

[@SabukQuestStep12_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc12.txt] @Convert_SabukStoneNpc12_1

[@SabukQuestStep12_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc12.txt] @Convert_SabukStoneNpc12_2

[@SabukQuestStep12_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc12.txt] @Convert_SabukStoneNpc12_3

[@SabukQuestStep12_Master2]
#ACT
mapting D1702 D1702_012 19 67
mapting D1701 D1702_012 19 67
Delaygoto [Grobal] 12 @SabukQuestStep12_Master3

[@SabukQuestStep12_Master3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc12.txt] [Convert] [Msg0]
Eventmsg "D1702_012" %A7 2000

[@SabukMainUser_Master_Step12]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step12

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