;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@CastleWarReady]
{
#ACT
SENDCMD "3, 235, 157, 4" 沙巴克城门1 CLOSE
SENDCMD "3, 169, 151, 1" 沙巴克城门3 CLOSE
SENDCMD "3, 233, 87, 1" 沙巴克城门4 CLOSE
ChangeMapAttr "3" "SAFE"
ChangeMapAttr "3" "NoFly"
ChangeMapAttr "3" "NoRFly"
ChangeMapAttr "3" "NoSpell"
TingWar Sabuk
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukDefaultSetting.txt] [Convert] [Msg0]
lineMsg [Grobal] %A7
}

[@CastleWarStart]
{
#ACT
ResetMapAttr "3"

SetAreaAttr "3, 206, 119, 6" "NoFly"
SetAreaAttr "3, 206, 119, 6" "NoRFly"
SetAreaAttr "3, 206, 119, 10" "NoLack"

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

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

SetAreaAttr "3, 217, 110, 8" "NoLack"
SetAreaAttr "3, 148, 61, 8" "NoLack"
SetAreaAttr "3, 266, 288, 8" "NoLack"
SetAreaAttr "3, 106, 285, 8" "NoLack"
movenpc "3,206,154,『武器店』_老胡" Z011 7 14
movenpc "3,238,119,『棉布店』_喜儿" Z011 7 15
movenpc "3,207,92,『药店』_晶晶" Z011 8 13
movenpc "3,213,88,『旅店』_惠莲" Z011 8 14
movenpc "3,209,147,『杂货店』_基德" Z011 8 15
movenpc "3,242,122,『饰品店』_多多" Z011 10 7
movenpc "3,209,151,『铁匠铺』_啊翔" Z011 10 8
movenpc "3,203,102,『材料商』_俞公" Z011 10 9
movenpc "3,203,87,『租赁店』_大熊" Z011 10 10
movenpc "3,197,102,『寄售商』_郑焕" Z011 10 11
movenpc "3,165,150,『沙巴克城旗幟』" Z011 10 13
movenpc "3,170,155,『沙巴克城旗幟』" Z011 10 14
movenpc "3,233,156,『沙巴克城旗幟』" Z011 10 15
movenpc "3,238,151,『沙巴克城旗幟』" Z011 10 16
movenpc "3,240,83,『沙巴克城旗幟』" Z011 9 16
movenpc "3,236,79,『沙巴克城旗幟』" Z011 9 15
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukDefaultSetting.txt] [Convert] [Msg1]
lineMsg [Grobal] %A7
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukDefaultSetting.txt] [Convert] [Msg2]
lineMsg [Grobal] %A7
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='SABUK'" "FLD_FLAGSTATUS='Ready'"
}

[@CastleWarFinish]
{
#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,『武器店』_老胡" 3 206 154
movenpc "Z011,7,15,『棉布店』_喜儿" 3 238 119
movenpc "Z011,8,13,『药店』_晶晶" 3 207 92
movenpc "Z011,8,14,『旅店』_惠莲" 3 213 88
movenpc "Z011,8,15,『杂货店』_基德" 3 209 147
movenpc "Z011,10,7,『饰品店』_多多" 3 242 122
movenpc "Z011,10,8,『铁匠铺』_啊翔" 3 209 151
movenpc "Z011,10,9,『材料商』_俞公" 3 203 102
movenpc "Z011,10,10,『租赁店』_大熊" 3 203 87
movenpc "Z011,10,11,『寄售商』_郑焕" 3 197 102
movenpc "Z011,10,13,『沙巴克城旗幟』" 3 165 150
movenpc "Z011,10,14,『沙巴克城旗幟』" 3 170 155
movenpc "Z011,10,15,『沙巴克城旗幟』" 3 233 156
movenpc "Z011,10,16,『沙巴克城旗幟』" 3 238 151
movenpc "Z011,9,16,『沙巴克城旗幟』" 3 240 83
movenpc "Z011,9,15,『沙巴克城旗幟』" 3 236 79
LoadValue A7 [Convert_Def\QuestDiary\System\SabukCastle\SabukDefaultSetting.txt] [Convert] [Msg3]
lineMsg [Grobal] %A7
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='SABUK'" "FLD_FLAGSTATUS='Complete'"

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