;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@CastleWarReady_TAOSUNG]
{
#ACT
ChangeMapAttr "5" "SAFE"
ChangeMapAttr "5" "NoFly"
ChangeMapAttr "5" "NoRFly"
ChangeMapAttr "5" "NoSpell"
TingWar TAOSUNG
LoadValue A7 [Convert_Def\QuestDiary\System\TaosungCastle\TaosungDefaultSetting.txt] [Convert] [Msg0]
lineMsg [Grobal] %A7
mongenp "5,267,145,0" Numa9 1
mongenp "5,201,159,0" NumaMonk7 1
mongenp "5,211,96,0" NumaCaptain7 1
Delaygoto [Grobal] 30 @TosungCastle_NumaMsg

[@TosungCastle_NumaMsg]
#CALL [System\TaosungCastle\TaosungNumaWar.txt] @TosungCastleWar_NumaMsg
}

[@CastleWarStart_TAOSUNG]
{
#ACT
ResetMapAttr "5"

SetAreaAttr "5, 265, 88, 6" "NoFly"
SetAreaAttr "5, 265, 88, 6" "NoRFly"
SetAreaAttr "5, 265, 88, 10" "NoLack"

SetAreaAttr "5, 250, 105, 8" "NoLack"
SetAreaAttr "5, 44, 122, 8" "NoLack"
SetAreaAttr "5, 320, 306, 8" "NoLack"
SetAreaAttr "5, 151, 315, 8" "NoLack"
movenpc "Z013,10,11,(WeaponShop)_Addison" 5 199 132
movenpc "Z013,10,12,(Drapery)_Gaynor" 5 209 115
movenpc "Z013,10,13,(PotionShop)_Sherisse" 5 242 144
movenpc "Z013,10,14,(RareShop)_Talbot" 5 243 86
movenpc "Z013,10,15,(Grocery)_Vance" 5 229 153
movenpc "Z013,10,16,(Accessory)_Zilpha" 5 222 147
movenpc "Z013,9,16,(BootyShop)_Aiden" 5 247 147
movenpc "Z013,9,15,(RentalService)_Krissoff" 5 226 94
movenpc "Z013,9,14,(Merchant)_Shaun" 5 255 90
movenpc "Z013,9,13,(Blacksmith)_Harry" 5 262 107
movenpc "Z013,9,13,(Administrator)_Official" 5 262 84

LoadValue A7 [Convert_Def\QuestDiary\System\TaosungCastle\TaosungDefaultSetting.txt] [Convert] [Msg1]
lineMsg [Grobal] %A7
LoadValue A7 [Convert_Def\QuestDiary\System\TaosungCastle\TaosungDefaultSetting.txt] [Convert] [Msg2]
lineMsg [Grobal] %A7
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='TAOSUNG'" "FLD_FLAGSTATUS='Ready'"
Delaygoto [Grobal] 30 @TosungCastle_Numa

[@TosungCastle_Numa]
#CALL [System\TaosungCastle\TaosungNumaWar.txt] @TosungCastleWar_Numa
}

[@CastleWarFinish_TAOSUNG]
{
#ACT
ResetMapAttr "5"

SetAreaAttr "5, 250, 105, 6" "Clear"
SetAreaAttr "5, 250, 105, 6" "Clear"
SetAreaAttr "5, 250, 105, 10" "Clear"

SetAreaAttr "5, 250, 105, 8" "Clear"
SetAreaAttr "5, 44, 122, 8" "Clear"
SetAreaAttr "5, 320, 306, 8" "Clear"
SetAreaAttr "5, 151, 315, 8" "Clear"
MonClear "5" Numa
MonClear "5" NumaMonk
MonClear "5" NumaCaptain
MonClear "5" GreatNumaMonk
MonClear "5" NumaSlinger
MonClear "5" ArmouredNuma
MonClear "5" Numa9
MonClear "5" NumaMonk7
MonClear "5" NumaCaptain7
movenpc "Z013,10,11,(WeaponShop)_Addison" 5 199 132
movenpc "Z013,10,12,(Drapery)_Gaynor" 5 209 115
movenpc "Z013,10,13,(PotionShop)_Sherisse" 5 242 144
movenpc "Z013,10,14,(RareShop)_Talbot" 5 243 86
movenpc "Z013,10,15,(Grocery)_Vance" 5 229 153
movenpc "Z013,10,16,(Accessory)_Zilpha" 5 222 147
movenpc "Z013,9,16,(BootyShop)_Aiden" 5 247 147
movenpc "Z013,9,15,(RentalService)_Krissoff" 5 226 94
movenpc "Z013,9,14,(Merchant)_Shaun" 5 255 90
movenpc "Z013,9,13,(Blacksmith)_Harry" 5 262 107
movenpc "Z013,9,13,(Administrator)_Official" 5 262 84

LoadValue A7 [Convert_Def\QuestDiary\System\TaosungCastle\TaosungDefaultSetting.txt] [Convert] [Msg3]
lineMsg [Grobal] %A7
UpdateValueSql "TBL_CastleFlagDef" "FLD_CASTLENAME='TAOSUNG'" "FLD_FLAGSTATUS='Complete'"
Delaygoto [Grobal] 10 @TosungCastle_Numa_Finished

[@TosungCastle_Numa_Finished]
#CALL [System\TaosungCastle\TaosungNumaWar.txt] @TosungCastleWar_Numa_Finished
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;