;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@SabukStoneNpc29_start1]
{
#IF
IsCastleGuild Sabuk
IsGuildMaster
#ACT
goto @SabukStoneNpc29_Master
break

#IF
#ACT
goto @SabukStoneNpc29_Guild
break



[@SabukStoneNpc29_Guild]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc29.txt] @Convert_SabukStoneNpc29_0

[@SabukStoneNpc29_Master]
#ACT
ReadValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukUserName,FLD_SabukCondition,FLD_SabukStatus,FLD_SabukStatusReady" [@SabukStoneNpc28_Call_0]

[@SabukStoneNpc29_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 11
Equal D2 0
#ACT
goto @SabukQuestStep29_Master
break

#IF
CheckGroupCount 1
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 11
Equal D2 1
#ACT
goto @SabukQuestStep29_Master1
break

#IF
!CheckGroupCount 1
Equal A2 %USERNAME
!Equal A3 "Stop"
Equal D1 11
Equal D2 1
#ACT
goto @SabukQuestStep29_Master2
break

#IF
#ACT
goto @SabukQuestStep29_MasterNo
break

[@SabukQuestStep29_MasterNo]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc29.txt] @Convert_SabukStoneNpc29_1

[@SabukQuestStep29_Master1]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc29.txt] @Convert_SabukStoneNpc29_2

[@SabukQuestStep29_Master_ok]
#ACT
GroupMove "D1704,19,29,5" %USERNAME
MonGenP "D1704,30,17,0" 霸王教主 1
ApplyMonEx "D1701,30,17,10" 霸王教主 [MonsterSide] 沙巴克恶灵
MonGenP "D1704,30,17,15" 红衣法师 10


[@SabukQuestStep29_Master2]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc29.txt] @Convert_SabukStoneNpc29_3

[@SabukQuestStep29_Master]

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\SabukStoneNpc29.txt] @Convert_SabukStoneNpc29_4

[@SabukMainUser_Master_Step29]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_Control_Step29

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