forked from MagicBane/Server
zone override
This commit is contained in:
@@ -32,6 +32,8 @@ public class dbCityHandler extends dbHandlerBase {
|
||||
String type = rs.getString("type");
|
||||
switch (type) {
|
||||
case "zone":
|
||||
if(rs.getInt("isPlayerCity") != 0 && Zone.skipZone(rs.getString("Name")))
|
||||
break;
|
||||
Zone zone = new Zone(rs);
|
||||
DbManager.addToCache(zone);
|
||||
list.add(zone);
|
||||
|
||||
@@ -103,7 +103,26 @@ public class Zone extends AbstractGameObject {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static boolean skipZone(String name){
|
||||
switch(name){
|
||||
case "Kralgar Holm":
|
||||
case "Doomhorn Skrae":
|
||||
case "Ymur's Crown":
|
||||
case "Ecklund Wilds":
|
||||
case "Ragnir Holm":
|
||||
case "Aurrochs Skrae":
|
||||
case "Hregerend Wildlands":
|
||||
case "The Blood Sands":
|
||||
case "Vale of Nar Addad":
|
||||
case "Kharsoom":
|
||||
case "Leth'khalivar Desert":
|
||||
case "Thollok Marsh":
|
||||
case "The Black Bog":
|
||||
case "sevaath Mere":
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static void serializeForClientMsg(Zone zone, ByteBufferWriter writer) {
|
||||
|
||||
if (zone.loadNum == 0 && zone.playerCityID == 0)
|
||||
|
||||
Reference in New Issue
Block a user