;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@SabukQuest_Control]
{
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg0]
Eventmsg "D1701" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_1



[@SabukQuest_Control_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg1]
Eventmsg "D1701" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_2


[@SabukQuest_Control_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg2]
Eventmsg "D1701" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_3



[@SabukQuest_Control_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg3]
Eventmsg "D1701" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_4

[@SabukQuest_Control_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg4]
Eventmsg "D1701" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_5

[@SabukQuest_Control_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg5]
Eventmsg "D1701" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_6

[@SabukQuest_Control_6]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg6]
Eventmsg "D1701" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_7

[@SabukQuest_Control_7]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg7]
Eventmsg "D1701" %A7 %D8
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step0


[@SabukQuest_Control_Step0]
#ACT


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

[@SabukQuest_Control_Step0_0()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 0
Equal D2 0
#ACT
goto @SabukQuest_End_Step0

#IF
#ACT
break

[@SabukQuest_End_Step0]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}


[@SabukQuest_Control_Step1]
{
#ACT

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=1,FLD_SabukStatusReady=1"
close
Map D1701_011
Delaygoto [Grobal] 12 @SabukQuest_Control_Step1_1

[@SabukQuest_Control_Step1_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg8]
EventMsg "D1701_011" %A7 2000
}




[@SabukQuest_Control_Step2]
{
#ACT
close
goto @SabukUserFace1_2

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=1,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg9]
EventMsg "D1701,D1701_011" %A7 %D8
Delaygoto [Grobal] 12 @SabukQuest_Control_Step2_1



[@SabukQuest_Control_Step2_1]
#ACT

MonGenP "D1701,202,323,15" ×æÂêÎÀÊ¿ 25
ApplyMonEx "D1701,202,323,30" ×æÂêÎÀÊ¿ [MonsterSide] Ç¬Ö®»¤·¨
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg10]
EventMsg "D1701,D1701_011" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step2_2

[@SabukUserFace1_2]
#CALL [System\EventUserFace.txt] @jobcheckEvent

[@SabukQuest_Control_Step2_2]
#ACT


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

[@SabukQuest_Control_Step2_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 1
Equal D2 2
#ACT
goto @SabukQuest_End_Step2

#IF
#ACT
break

[@SabukQuest_End_Step2]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End

}




[@SabukQuest_Control_Step3]
{
#ACT
Map D1701_012
Mapting D1701_011 D1701 202 323

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=1,FLD_SabukStatusReady=4"
Delaygoto [Grobal] 12 @SabukQuest_Control_Step3_1

[@SabukQuest_Control_Step3_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg11]
EventMsg "D1701_012" %A7 2000
}




[@SabukQuest_Control_Step4]
{
#ACT
close
goto @SabukUserFace1_4

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=1,FLD_SabukStatusReady=5"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg12]
EventMsg "D1701,D1701_012" %A7 %D8
Delaygoto [Grobal] 12 @SabukQuest_Control_Step4_1

[@SabukUserFace1_4]
#CALL [System\EventUserFace.txt] @jobcheckEvent

[@SabukQuest_Control_Step4_1]
#ACT

MonGenP "D1701,33,349,15" ×æÂêÎÀÊ¿ 25
ApplyMonEx "D1701,33,349,30" ×æÂêÎÀÊ¿ [MonsterSide] À¤Ö®»¤·¨
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg13]
EventMsg "D1701,D1701_012" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step4_2

[@SabukQuest_Control_Step4_2]
#ACT


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

[@SabukQuest_Control_Step4_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 1
Equal D2 5
#ACT
goto @SabukQuest_End_Step4

#IF
#ACT
break

[@SabukQuest_End_Step4]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End

}



[@SabukQuest_Control_Step5]
{
#ACT
Map D1701_013
Mapting D1701_012 D1701 33 349

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=2,FLD_SabukStatusReady=1"
Delaygoto [Grobal] 12 @SabukQuest_Control_Step5_1

[@SabukQuest_Control_Step5_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg14]
EventMsg "D1701_013" %A7 2000
}




[@SabukQuest_Control_Step6]
{
#ACT
close
goto @SabukUserFace2_2

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=2,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg15]
EventMsg "D1701,D1701_013" %A7 %D8
Delaygoto [Grobal] 12 @SabukQuest_Control_Step6_1

[@SabukUserFace2_2]
#CALL [System\EventUserFace.txt] @jobcheckEvent

[@SabukQuest_Control_Step6_1]
#ACT

MonGenP "D1701,270,51,15" ×æÂêÎÀÊ¿ 25
ApplyMonEx "D1701,270,51,30" ×æÂêÎÀÊ¿ [MonsterSide] ¿²Ö®»¤·¨
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg16]
EventMsg "D1701,D1701_013" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step6_2

[@SabukQuest_Control_Step6_2]
#ACT


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

[@SabukQuest_Control_Step6_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 2
Equal D2 2
#ACT
goto @SabukQuest_End_Step6

#IF
#ACT
break

[@SabukQuest_End_Step6]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step7]
{
#ACT
Map D1701_014
Mapting D1701_013 D1701 270 51

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=2,FLD_SabukStatusReady=4"
Delaygoto [Grobal] 12 @SabukQuest_Control_Step7_1

[@SabukQuest_Control_Step7_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg17]
EventMsg "D1701_014" %A7 2000
}



[@SabukQuest_Control_Step8]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=2,FLD_SabukStatusReady=5"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg18]
EventMsg "D1701,D1701_014" %A7 %D8
Delaygoto [Grobal] 12 @SabukQuest_Control_Step8_1

[@SabukQuest_Control_Step8_1]
#ACT

MonGenP "D1701,376,288,15" ×æÂêÎÀÊ¿ 25
ApplyMonEx "D1701,376,288,30" ×æÂêÎÀÊ¿ [MonsterSide] ÀëÖ®»¤·¨
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg19]
EventMsg "D1701,D1701_014" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step8_2

[@SabukQuest_Control_Step8_2]
#ACT


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

[@SabukQuest_Control_Step8_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 2
Equal D2 5
#ACT
goto @SabukQuest_End_Step8

#IF
#ACT
break

[@SabukQuest_End_Step8]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}


[@SabukQuest_Control_Step9]
{
#ACT
Map D1701_015
Mapting D1701_014 D1701 376 288

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=3,FLD_SabukStatusReady=1"
Delaygoto [Grobal] 12 @SabukQuest_Control_Step9_1

[@SabukQuest_Control_Step9_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg20]
EventMsg "D1701_014,D1701" %A7 2000
}



[@SabukQuest_Control_Step10]
{
#ACT
close
goto @SabukUserFace3_2

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=3,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg21]
EventMsg "D1701,D1701_015" %A7 %D8
Delaygoto [Grobal] 12 @SabukQuest_Control_Step10_1


[@SabukUserFace3_2]
#CALL [System\EventUserFace.txt] @jobcheckEvent


[@SabukQuest_Control_Step10_1]
#ACT

MonGenP "D1701,374,32,15" ×æÂêÎÀÊ¿ 30
ApplyMonEx "D1701,374,32,30" ×æÂêÎÀÊ¿ [MonsterSide] °µºÚ»¤·¨
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg22]
EventMsg "D1701,D1701_015" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step10_2

[@SabukQuest_Control_Step10_2]
#ACT


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

[@SabukQuest_Control_Step10_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 3
Equal D2 2
#ACT
goto @SabukQuest_End_Step10

#IF
#ACT
break

[@SabukQuest_End_Step10]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}


[@SabukQuest_Control_Step11]
{
#ACT

Mapting D1701_015 D1701 374 32

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=4,FLD_SabukStatusReady=0"
Delaygoto [Grobal] 12 @SabukQuest_Control_Step11_1

[@SabukQuest_Control_Step11_1]
#ACT

LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg23]
EventMsg "D1701,D1702" %A7
Delaygoto [Grobal] 30 @SabukQuest_Control_Step11_2

[@SabukQuest_Control_Step11_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg24]
EventMsg "D1701,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step11_3

[@SabukQuest_Control_Step11_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg25]
EventMsg "D1701,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step11_4

[@SabukQuest_Control_Step11_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg26]
EventMsg "D1701,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step11_5

[@SabukQuest_Control_Step11_5]
#ACT


MonGenP "D1702,90,361,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702,90,361,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ÇàÁúÓÒ»¤ÎÀ
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg27]
EventMsg "D1701,D1702" %A7
}




[@SabukQuest_Control_Step12]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=4,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg28]
EventMsg "D1701,D1701_015" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step12_1

[@SabukQuest_Control_Step12_1]
#ACT


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

[@SabukQuest_Control_Step12_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 4
Equal D2 2
#ACT
goto @SabukQuest_End_Step12

#IF
#ACT
break

[@SabukQuest_End_Step12]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step13]
{
#ACT
close
mapting D1702_011 3 228 112
MonGenP "D1702_012,67,25,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702_012,67,25,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] °×»¢ÓÒ»¤ÎÀ



UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=4,FLD_SabukStatusReady=3"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg29]
EventMsg "D1702_012" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step13_1

[@SabukQuest_Control_Step13_1]
#ACT


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

[@SabukQuest_Control_Step13_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 4
Equal D2 3
#ACT
goto @SabukQuest_End_Step13

#IF
#ACT
break

[@SabukQuest_End_Step13]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step13_A]
{
#ACT
close


MonGenP "D1702,82,27,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702,82,27,20" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] °×»¢ÓÒ»¤ÎÀ
mapting D1702_012 D1702 172 232

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=5,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg30]
EventMsg "D1702_012,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step13_A_1

[@SabukQuest_Control_Step13_A_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg31]
EventMsg "D1702_012,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step13_A_2

[@SabukQuest_Control_Step13_A_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg32]
EventMsg "D1702_012,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step13_A_3

[@SabukQuest_Control_Step13_A_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg33]
EventMsg "D1702_012,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step13_A_4

[@SabukQuest_Control_Step13_A_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg34]
EventMsg "D1702_012,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step13_A_5

[@SabukQuest_Control_Step13_A_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg35]
EventMsg "D1702_012,D1702" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step13_A_6


[@SabukQuest_Control_Step13_A_6]
#ACT


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

[@SabukQuest_Control_Step13_A_7()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 5
Equal D2 0
#ACT
goto @SabukQuest_End_Step13_A

#IF
#ACT
break

[@SabukQuest_End_Step13_A]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step14]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=5,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg36]
EventMsg "D1702" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step14_1

[@SabukQuest_Control_Step14_1]
#ACT


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

[@SabukQuest_Control_Step14_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 5
Equal D2 1
#ACT
goto @SabukQuest_End_Step14

#IF
#ACT
break

[@SabukQuest_End_Step14]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step15]
{
#ACT
close
mapting D1702_021 3 228 112
MonGenP "D1702_022,67,25,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702_022,67,25,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ¿×È¸ÓÒ»¤ÎÀ


UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=5,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg37]
EventMsg "D1702_022" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step15_1

[@SabukQuest_Control_Step15_1]
#ACT


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

[@SabukQuest_Control_Step15_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 5
Equal D2 2
#ACT
goto @SabukQuest_End_Step15

#IF
#ACT
break

[@SabukQuest_End_Step15]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step15_A]
{
#ACT
close


MonGenP "D1702,326,147,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702,326,147,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ¿×È¸ÓÒ»¤ÎÀ
mapting D1702_022 D1702 202 146

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=6,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg38]
EventMsg "D1702_022,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step15_A_1

[@SabukQuest_Control_Step15_A_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg39]
EventMsg "D1702_022,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step15_A_2

[@SabukQuest_Control_Step15_A_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg40]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step15_A_3

[@SabukQuest_Control_Step15_A_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg41]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step15_A_4

[@SabukQuest_Control_Step15_A_4]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg42]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step15_A_5

[@SabukQuest_Control_Step15_A_5]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg43]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step15_A_6


[@SabukQuest_Control_Step15_A_6]
#ACT


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

[@SabukQuest_Control_Step15_A_7()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 6
Equal D2 0
#ACT
goto @SabukQuest_End_Step15_A

#IF
#ACT
break

[@SabukQuest_End_Step15_A]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step16]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=6,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg44]
EventMsg "D1702" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step16_1

[@SabukQuest_Control_Step16_1]
#ACT


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

[@SabukQuest_Control_Step16_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 6
Equal D2 1
#ACT
goto @SabukQuest_End_Step16

#IF
#ACT
break

[@SabukQuest_End_Step16]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step17]
{
#ACT
close
mapting D1702_031 3 228 112

MonGenP "D1702_032,67,25,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702_032,67,25,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ÐþÎäÓÒ»¤ÎÀ

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=6,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg45]
EventMsg "D1702_032" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step17_1

[@SabukQuest_Control_Step17_1]
#ACT


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

[@SabukQuest_Control_Step17_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 6
Equal D2 2
#ACT
goto @SabukQuest_End_Step17

#IF
#ACT
break

[@SabukQuest_End_Step17]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step17_A]
{
#ACT
close


MonGenP "D1702,303,313,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702,303,313,20" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ÐþÎäÓÒ»¤ÎÀ
mapting D1702_032 D1702 377 256

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=7,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg46]
EventMsg "D1702_032,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step17_A_1

[@SabukQuest_Control_Step17_A_1]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg47]
EventMsg "D1702_032,D1702" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step17_A_2

[@SabukQuest_Control_Step17_A_2]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg48]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 12 @SabukQuest_Control_Step17_A_3

[@SabukQuest_Control_Step17_A_3]
#ACT
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg49]
EventMsg "D1702_022,D1702" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step17_A_4

[@SabukQuest_Control_Step17_A_4]
#ACT


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

[@SabukQuest_Control_Step17_A_5()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 7
Equal D2 0
#ACT
goto @SabukQuest_End_Step17_A

#IF
#ACT
break

[@SabukQuest_End_Step17_A]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step18]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=7,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg50]
EventMsg "D1702" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step18_1

[@SabukQuest_Control_Step18_1]
#ACT


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

[@SabukQuest_Control_Step18_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 7
Equal D2 1
#ACT
goto @SabukQuest_End_Step18

#IF
#ACT
break

[@SabukQuest_End_Step18]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step19]
{
#ACT
close
mapting D1702_041 3 228 112
MonGenP "D1702_042,67,25,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702_042,67,25,30" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ÖÕ¼«ÓÒ»¤ÎÀ


UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=7,FLD_SabukStatusReady=2"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg51]
EventMsg "D1702_012" %A7
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step19_1

[@SabukQuest_Control_Step19_1]
#ACT


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

[@SabukQuest_Control_Step19_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 7
Equal D2 2
#ACT
goto @SabukQuest_End_Step19

#IF
#ACT
break

[@SabukQuest_End_Step19]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step19_A]
{
#ACT
close


MonGenP "D1702,214,40,15" ÅËÒ¹ÓÒ»¤ÎÀ 25
ApplyMonEx "D1702,214,40,20" ÅËÒ¹ÓÒ»¤ÎÀ [MonsterSide] ÐþÎäÓÒ»¤ÎÀ
mapting D1702_042 D1702 302 128

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=8,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg52]
EventMsg "D1702_042,D1702" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step19_A_1

[@SabukQuest_Control_Step19_A_1]
#ACT


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

[@SabukQuest_Control_Step19_A_2()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 8
Equal D2 0
#ACT
goto @SabukQuest_End_Step19_A

#IF
#ACT
break

[@SabukQuest_End_Step19_A]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step20]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=8,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg53]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step20_1

[@SabukQuest_Control_Step20_1]
#ACT

MonGenP "D1703,297,354,15" Éñ½¢ÊØÎÀ 25
ApplyMonEx "D1703,297,354,20" Éñ½¢ÊØÎÀ [MonsterSide] ¸¡ÓÎÍöÁé
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg54]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step20_2

[@SabukQuest_Control_Step20_2]
#ACT


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

[@SabukQuest_Control_Step20_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 8
Equal D2 1
#ACT
goto @SabukQuest_End_Step20

#IF
#ACT
break

[@SabukQuest_End_Step20]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step21]
{
#ACT
close
mapting D1703_011 3 228 112

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=8,FLD_SabukStatusReady=3"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg55]
EventMsg "D1703_012" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step21_1

[@SabukQuest_Control_Step21_1]
#ACT


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

[@SabukQuest_Control_Step21_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 8
Equal D2 3
#ACT
goto @SabukQuest_End_Step21

#IF
#ACT
break

[@SabukQuest_End_Step21]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}





[@SabukQuest_Control_Step22]
{
#ACT
close
Mapting D1703_013 3 228 112
Mapting D1703_012 D1703 265 174
Mapting D1703_014 D1703 265 174

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=9,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg56]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step21_1

[@SabukQuest_Control_Step21_1]
#ACT


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

[@SabukQuest_Control_Step21_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 9
Equal D2 0
#ACT
goto @SabukQuest_End_Step21

#IF
#ACT
break

[@SabukQuest_End_Step21]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}





[@SabukQuest_Control_Step23]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=9,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg57]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step23_1

[@SabukQuest_Control_Step23_1]
#ACT

MonGenP "D1703,136,69,15" Éñ½¢ÊØÎÀ 25
ApplyMonEx "D1703,136,69,20" Éñ½¢ÊØÎÀ [MonsterSide] ¸¡ÓÎÍöÁé
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg58]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step23_2

[@SabukQuest_Control_Step23_2]
#ACT


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

[@SabukQuest_Control_Step23_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 9
Equal D2 1
#ACT
goto @SabukQuest_End_Step23

#IF
#ACT
break

[@SabukQuest_End_Step23]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step24]
{
#ACT
close
mapting D1703_021 3 228 112

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=9,FLD_SabukStatusReady=3"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg59]
EventMsg "D1703_022" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step24_1

[@SabukQuest_Control_Step24_1]
#ACT


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

[@SabukQuest_Control_Step24_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 9
Equal D2 3
#ACT
goto @SabukQuest_End_Step24

#IF
#ACT
break

[@SabukQuest_End_Step24]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}





[@SabukQuest_Control_Step25]
{
#ACT
close
Mapting D1703_023 3 228 112
Mapting D1703_022 D1703 193 179
Mapting D1703_024 D1703 193 179

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=10,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg60]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step25_1

[@SabukQuest_Control_Step25_1]
#ACT


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

[@SabukQuest_Control_Step25_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 10
Equal D2 0
#ACT
goto @SabukQuest_End_Step25

#IF
#ACT
break

[@SabukQuest_End_Step25]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}





[@SabukQuest_Control_Step26]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=10,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg61]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 12 @SabukQuest_Control_Step26_1

[@SabukQuest_Control_Step26_1]
#ACT

MonGenP "D1703,78,72,15" Éñ½¢ÊØÎÀ 25
ApplyMonEx "D1703,78,72,20" Éñ½¢ÊØÎÀ [MonsterSide] ¸¡ÓÎÍöÁé
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg62]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step26_2

[@SabukQuest_Control_Step26_2]
#ACT


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

[@SabukQuest_Control_Step26_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 10
Equal D2 1
#ACT
goto @SabukQuest_End_Step26

#IF
#ACT
break

[@SabukQuest_End_Step26]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}




[@SabukQuest_Control_Step27]
{
#ACT
close
mapting D1703_031 3 228 112

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=10,FLD_SabukStatusReady=3"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg63]
EventMsg "D1703_022" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step27_1

[@SabukQuest_Control_Step27_1]
#ACT


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

[@SabukQuest_Control_Step27_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 10
Equal D2 3
#ACT
goto @SabukQuest_End_Step27

#IF
#ACT
break

[@SabukQuest_End_Step27]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}





[@SabukQuest_Control_Step28]
{
#ACT
close
Mapting D1703_033 3 228 112
Mapting D1703_032 D1703 133 136
Mapting D1703_034 D1703 133 136

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=11,FLD_SabukStatusReady=0"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg64]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step28_1

[@SabukQuest_Control_Step28_1]
#ACT


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

[@SabukQuest_Control_Step28_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 11
Equal D2 0
#ACT
goto @SabukQuest_End_Step28

#IF
#ACT
break

[@SabukQuest_End_Step28]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}



[@SabukQuest_Control_Step29]
{
#ACT
close

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukStatus=11,FLD_SabukStatusReady=1"
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg65]
EventMsg "D1703" %A7 2000
Delaygoto [Grobal] 1800 @SabukQuest_Control_Step29_1

[@SabukQuest_Control_Step29_1]
#ACT


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

[@SabukQuest_Control_Step29_3()]
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)


#IF
Equal D1 11
Equal D2 1
#ACT
goto @SabukQuest_End_Step29
break

#IF
#ACT
break

[@SabukQuest_End_Step29]
#CALL [SabukCastleQuest\SabukQuestEvent.txt] @SabukQuest_End
}

[@SabukQuest_End]
{
#ACT

UpdateValueSql "TBL_SabukGuildQuest" "FLD_SabukQuest='SabukQuest'" "FLD_SabukUserName='NULL',FLD_SabukCondition='Stop',FLD_SabukStatus=0,FLD_SabukStatusReady=0"
mapting D1701 3 228 112
mapting D1702 3 228 112
mapting D1703 3 228 112
mapting D1704 3 228 112
LoadValue A7 [Convert_Def\QuestDiary\SabukCastleQuest\SabukQuestEvent.txt] [Convert] [Msg66]
Linemsg "3,D1703,D1702,D1701" %A7



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