[Convert] 
Msg1= The map is now PVP. Kill whoever, Its up to you....Just Leave your anger here.

;;不要删掉此行

;[Convert] 
;Msg1= The map is now PVP. Kill whoever, Its up to you....Just Leave your anger here.

[@Main]
#IF
IsAdmin
#ACT
GoTo @Admin
#ELSEACT
goto @SW

[@SW]
#SAY
{FCOLOR/10}Sabuk Wall Flag{FCOLOR/12}\ \
{FCOLOR/1}<$CS_SABUK_OWNER>'s{FCOLOR/12} Flag\ \
<Leave/@Exit>

;--------------------------------------------------------------------

[@Admin]
#SAY
<Flag & Wall Options/@SamakWall>\
<Normal/@Merchant_Main>\\
<Start Spawn Around Central Flag/@CenterFlagSpawn>\
Zuma Attack: <Big Rat/@ZumaRat>\
Zuma Attack: <Zuma Archer/@ZumaArcher>\
Zuma Attack: <Zuma Statues/@ZumaStatue>\
Zuma Attack: <Zuma Guardian/@ZumaGuardian>\
Zuma Attack: <Zuma Guardian Chief At Center Flag/@SpawnZGC>\\
<Clear Zumas/@KillMonsters>\\
<Leave/@Exit>

[@ZumaRat]
#SAY
<Spawn Rats At Front Gate/@RatAtFrontGate>\
<Spawn Rats At Front Gate/@RatAtLeftGate>\
<Spawn Rats At Front Gate/@RatAtRightGate>\
<Spawn Rats At Center Flag/@RatAtFlag>\
<Back/@Admin>

[@ZumaStatue]
#SAY
<Spawn Zuma Statues At Front Gate/@ZumaStatueAtFrontGate>\
<Spawn Zuma Statues At Front Gate/@ZumaStatueAtLeftGate>\
<Spawn Zuma Statues At Front Gate/@ZumaStatueAtRightGate>\
<Spawn Zuma Statues At Center Flag/@ZumaStatueAtFlag>\
<Back/@Admin>

[@ZumaGuardian]
#SAY
<Spawn Zuma Guardians At Front Gate/@ZumaGuardianAtFrontGate>\
<Spawn Zuma Guardians At Front Gate/@ZumaGuardianAtLeftGate>\
<Spawn Zuma Guardians At Front Gate/@ZumaGuardianAtRightGate>\
<Spawn Zuma Guardians At Center Flag/@ZumaGuardianAtFlag>\
<Back/@Admin>

[@ZumaArcher]
#SAY
<Spawn Zuma Archers At Front Gate/@ZumaArcherAtFrontGate>\
<Spawn Zuma Archers At Front Gate/@ZumaArcherAtLeftGate>\
<Spawn Zuma Archers At Front Gate/@ZumaArcherAtRightGate>\
<Spawn Zuma Archers At Center Flag/@ZumaArcherAtFlag>\
<Back/@Admin>

;---------------------------------------------------

[@KillMonsters]
#ACT
Monclear "3" "BigRat"
Monclear "3" "ZumaArcher"
Monclear "3" "ZumaStatue"
Monclear "3" "ZumaGuardian"
Monclear "3" "ZumaGuardianChief"
Monclear "3" "BigRat1"
Monclear "3" "ZumaArcher1"
Monclear "3" "ZumaStatue1"
Monclear "3" "ZumaGuardian1"
Monclear "3" "ZumaGuardianChief1"
GoTo @Admin

;---------------------------------------------------

[@RatAtFrontGate]
#ACT
mongenp "3,238,155,30" BigRat 20 "noitem"
GoTo @ZumaRat

[@RatAtLeftGate]
#ACT
mongenp "3,166,156,30" BigRat 20 "noitem"
GoTo @ZumaRat

[@RatAtRightGate]
#ACT
mongenp "3,243,78,30" BigRat 20 "noitem"
GoTo @ZumaRat

[@RatAtFlag]
#ACT
mongenp "3,205,118,15" BigRat1 30 "noitem"
GoTo @ZumaRat

;------------------------------------------------

[@ZumaStatueAtFrontGate]
#ACT
mongenp "3,238,155,30" ZumaStatue 20 "noitem"
GoTo @ZumaStatue

[@ZumaStatueAtLeftGate]
#ACT
mongenp "3,166,156,30" ZumaStatue 20 "noitem"
GoTo @ZumaStatue

[@ZumaStatueAtRightGate]
#ACT
mongenp "3,243,78,30" ZumaStatue 20 "noitem"
GoTo @ZumaStatue

[@ZumaStatueAtFlag]
#ACT
mongenp "3,205,118,15" ZumaStatue1 25 "noitem"
GoTo @ZumaStatue

;------------------------------------------------

[@ZumaGuardianAtFrontGate]
#ACT
mongenp "3,238,155,30" ZumaGuardian 20 "noitem"
GoTo @ZumaGuardian

[@ZumaGuardianAtLeftGate]
#ACT
mongenp "3,166,156,30" ZumaGuardian 20 "noitem"
GoTo @ZumaGuardian

[@ZumaGuardianAtRightGate]
#ACT
mongenp "3,243,78,30" ZumaGuardian 20 "noitem"
GoTo @ZumaGuardian

[@ZumaGuardianAtFlag]
#ACT
mongenp "3,205,118,15" ZumaGuardian1 25 "noitem"
GoTo @ZumaGuardian

;------------------------------------------------

[@ZumaArcherAtFrontGate]
#ACT
mongenp "3,238,155,30" ZumaArcher 20 "noitem"
GoTo @ZumaArcher

[@ZumaArcherAtLeftGate]
#ACT
mongenp "3,166,156,30" ZumaArcher 20 "noitem"
GoTo @ZumaArcher

[@ZumaArcherAtRightGate]
#ACT
mongenp "3,243,78,30" ZumaArcher 20 "noitem"
GoTo @ZumaArcher

[@ZumaArcherAtFlag]
#ACT
mongenp "3,205,118,15" ZumaArcher1 25 "noitem"
GoTo @ZumaArcher

;------------------------------------------------

[@CenterFlagSpawn]
#ACT
mongenp "3,205,118,5" BigRat1 15 "noitem"
mongenp "3,206,118,5" ZumaArcher1 10 "noitem"
mongenp "3,207,118,5" ZumaStatue1 15 "noitem"
mongenp "3,208,118,5" ZumaGuardian1 15 "noitem"
#SAY
Include <Zuma Guardian Chief/@SpawnZGC>?\\
<Back/@Admin>

;------------------------------------------------

[@SpawnZGC]
#ACT
mongenp "3,205,118,5" ZumaGuardian1 1 "noitem"
GoTo @Admin

;------------------------------------------------

[@SamakWall]
#SAY
<Zuma's Take Flag/@Zuma_Flag>\
<War_Ready_Sabuk/@War_Ready_Sabuk>\
<War_Start_Sabuk/@War_Start_Sabuk>\
<War_Finish_Sabuk/@War_Finish_Sabuk>\
<SystemOwnerChanged_Sabuk/@SystemOwnerChanged_Sabuk>\
<SystemFlagChanged_Sabuk/@SystemFlagChanged_Sabuk>\\
<Safe Zone/@SZ>\
<Not Safe Zone/@notSZ>\
<Fight Zone/@Fight>\

[@Fight]
#ACT
ChangeMapAttr "3" "FIGHT"
LoadValue A7 [Market_Def\Samak\Flag_Sabuk-3.txt] [Convert] [Msg1]
EventMsg Grobal %A7 10025
CLOSE

[@SZ]
#ACT
ChangeMapAttr "3" "SAFE"
CLOSE

[@notSZ]
#ACT
ResetMapAttr "3"
CLOSE

[@Zuma_Flag]
#ACT
CAPTURECASTLEFLAG [SABUK]
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='SABUK'" "FLD_FLAGSTATUS='Confuse'"
mov D0 0
SENDCMD "3, 0, 0, 1000" (SabukWallFlag) "@_Startup"
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukMainFlag.txt] [Convert] [Msg14]
linemsg "3" %A7
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukMainFlag.txt] [Convert] [Msg15]
linemsg "3" %A7
CLOSE

[@WarEnd]
#ACT
ResetMapAttr "3"

SetAreaAttr "3, 206, 119, 6" "Clear"
SetAreaAttr "3, 206, 119, 6" "Clear"
SetAreaAttr "3, 206, 119, 10" "Clear"

SetAreaAttr "3, 212, 126, 5" "Clear"
SetAreaAttr "3, 210, 108, 5" "Clear"
SetAreaAttr "3, 203, 132, 5" "Clear"

SetAreaAttr "3, 234, 151, 4" "Clear"
SetAreaAttr "3, 169, 151, 4" "Clear"
SetAreaAttr "3, 233, 87, 4" "Clear"

SetAreaAttr "3, 217, 110, 8" "Clear"
SetAreaAttr "3, 148, 61, 8" "Clear"
SetAreaAttr "3, 266, 288, 8" "Clear"
SetAreaAttr "3, 106, 285, 8" "Clear"
movenpc "Z011,7,14,(WeaponShop)_Aaron" 3 206 154
movenpc "Z011,7,15,(Drapery)_Petruska" 3 238 119
movenpc "Z011,8,13,(Grocery)_Tranter" 3 210 147
movenpc "Z011,8,14,(Accessory)_Yasmina" 3 242 122
movenpc "Z011,8,15,(BootyShop)_John" 3 203 102
movenpc "Z011,10,7,(RentalService)_Hagrid" 3 203 87
movenpc "Z011,10,8,(Merchant)_Tom" 3 197 102
movenpc "Z011,10,9,(Blacksmith)_Christopher" 3 209 151
movenpc "Z011,10,10,(Administrator)_Offical " 3 193 106
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukDefaultSetting.txt] [Convert] [Msg3]
lineMsg [Grobal] %A7
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='SABUK'" "FLD_FLAGSTATUS='Complete'"
CLOSE

[@War_Ready_Sabuk]
#CALL [System\SabukCastle\SabukDefaultSetting.txt] @CastleWarReady

[@War_Start_Sabuk]
#CALL [System\SabukCastle\SabukDefaultSetting.txt] @CastleWarStart

[@War_Finish_Sabuk]
#CALL [System\SabukCastle\SabukDefaultSetting.txt] @CastleWarFinish

[@SystemOwnerChanged_Sabuk]
#CALL [System\SabukCastle\Sabukflag.txt] @ChangeFlag

[@SystemFlagChanged_Sabuk]
#CALL [System\SabukCastle\Sabukflag.txt] @ChangeFlag

;;不要删掉此行