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

[@SabukStoneMap1]
{
#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneMap_Call_1
break

#IF
#ACT
Enter_Fail
break

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_0

[@SabukStoneMap_Call_1]
#ACT

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

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

#IF
Equal A3 "Stop"
#ACT
Enter_Fail
goto @SabukStoneMap_Call_1ok
break

#IF
!Equal A3 "Stop"
Equal D1 4
Equal D2 0
#ACT
Enter_Fail
goto @SabukStoneMap_Call_1ok
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_1

#ACT
Enter_Fail

[@SabukStoneMap_Call_1ok]
#ACT
Mapmove D1702 25 46

}

[@SabukStoneMap12]
{
#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneMap_Call_12
break

#IF
#ACT
Enter_Fail
break

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_2

[@SabukStoneMap_Call_12]
#ACT


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

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

#IF
Equal A3 "Stop"
#ACT
Enter_Fail
goto @SabukStoneMap_Call_12ok
break

#IF
!Equal A3 "Stop"
Equal D1 4
Equal D2 0
#ACT
Enter_Fail
goto @SabukStoneMap_Call_12ok
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_3

#ACT
Enter_Fail

[@SabukStoneMap_Call_12ok]
#ACT
Mapmove D1701 371 33

}

[@SabukStoneMap2]
{
#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneMap_Call_2
break

#IF
#ACT
Enter_Fail
break

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_4

[@SabukStoneMap_Call_2]
#ACT


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

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

#IF
Equal A3 "Stop"
#ACT
Enter_Fail
goto @SabukStoneMap_Call_2ok
break

#IF
!Equal A3 "Stop"
Equal D1 8
Equal D2 0
#ACT
Enter_Fail
goto @SabukStoneMap_Call_2ok
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_5

#ACT
Enter_Fail

[@SabukStoneMap_Call_2ok]
#ACT
Mapmove D1703 151 137

}


[@SabukStoneMap21]
{
#IF
IsCastleGuild Sabuk
#ACT
goto @SabukStoneMap_Call_21
break

#IF
#ACT
Enter_Fail
break

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_6

[@SabukStoneMap_Call_21]
#ACT


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

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

#IF
Equal A3 "Stop"
#ACT
Enter_Fail
goto @SabukStoneMap_Call_21ok
break

#IF
!Equal A3 "Stop"
Equal D1 8
Equal D2 0
#ACT
Enter_Fail
goto @SabukStoneMap_Call_21ok
break

#IF

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\SabukCastleQuest\Map_SabukGuildQuest.txt] @Convert_Map_SabukGuildQuest_7

#ACT
Enter_Fail

[@SabukStoneMap_Call_21ok]
#ACT
Mapmove D1702 305 79

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