Renamed method checkInstanceTime to isSoloInstance.

This commit is contained in:
MobiusDevelopment 2021-06-28 23:15:28 +00:00
parent 35632e82a8
commit c9659c5cbe
28 changed files with 77 additions and 77 deletions

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;

View File

@ -16,7 +16,7 @@
<xs:element type="xs:short" name="minLevel" /> <xs:element type="xs:short" name="minLevel" />
<xs:element type="xs:short" name="maxLevel" /> <xs:element type="xs:short" name="maxLevel" />
<xs:element type="xs:int" name="instanceId" minOccurs="0" /> <xs:element type="xs:int" name="instanceId" minOccurs="0" />
<xs:element type="xs:boolean" name="checkInstanceTime" minOccurs="0" /> <xs:element type="xs:boolean" name="soloInstance" minOccurs="0" />
<xs:element type="xs:boolean" name="weekly" minOccurs="0" /> <xs:element type="xs:boolean" name="weekly" minOccurs="0" />
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:byte" name="id" use="optional" /> <xs:attribute type="xs:byte" name="id" use="optional" />

View File

@ -88,7 +88,7 @@ public class TimedHuntingZoneData implements IXmlReader
int remainRefillTime = 3600; int remainRefillTime = 3600;
int refillTimeMax = 3600; int refillTimeMax = 3600;
int instanceId = 0; int instanceId = 0;
boolean checkInstanceTime = true; boolean soloInstance = true;
boolean weekly = false; boolean weekly = false;
Location enterLocation = null; Location enterLocation = null;
for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling()) for (Node zoneNode = listNode.getFirstChild(); zoneNode != null; zoneNode = zoneNode.getNextSibling())
@ -151,9 +151,9 @@ public class TimedHuntingZoneData implements IXmlReader
instanceId = Integer.parseInt(zoneNode.getTextContent()); instanceId = Integer.parseInt(zoneNode.getTextContent());
break; break;
} }
case "checkInstanceTime": case "soloInstance":
{ {
checkInstanceTime = Boolean.parseBoolean(zoneNode.getTextContent()); soloInstance = Boolean.parseBoolean(zoneNode.getTextContent());
break; break;
} }
case "weekly": case "weekly":
@ -163,7 +163,7 @@ public class TimedHuntingZoneData implements IXmlReader
} }
} }
} }
_timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, checkInstanceTime, weekly, enterLocation)); _timedHuntingZoneData.put(id, new TimedHuntingZoneHolder(id, name, initialTime, maxAddedTime, resetDelay, entryItemId, entryFee, minLevel, maxLevel, remainRefillTime, refillTimeMax, instanceId, soloInstance, weekly, enterLocation));
} }
} }
} }

View File

@ -36,13 +36,13 @@ public class TimedHuntingZoneHolder
private final int _remainRefillTime; private final int _remainRefillTime;
private final int _refillTimeMax; private final int _refillTimeMax;
private final int _instanceId; private final int _instanceId;
private final boolean _checkInstanceTime; private final boolean _soloInstance;
private final boolean _weekly; private final boolean _weekly;
private final Location _enterLocation; private final Location _enterLocation;
private final int _mapX; private final int _mapX;
private final int _mapY; private final int _mapY;
public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean checkInstanceTime, boolean weekly, Location enterLocation) public TimedHuntingZoneHolder(int id, String name, int initialTime, int maximumAddedTime, int resetDelay, int entryItemId, int entryFee, int minLevel, int maxLevel, int remainRefillTime, int refillTimeMax, int instanceId, boolean soloInstance, boolean weekly, Location enterLocation)
{ {
_id = id; _id = id;
_name = name; _name = name;
@ -56,7 +56,7 @@ public class TimedHuntingZoneHolder
_remainRefillTime = remainRefillTime; _remainRefillTime = remainRefillTime;
_refillTimeMax = refillTimeMax; _refillTimeMax = refillTimeMax;
_instanceId = instanceId; _instanceId = instanceId;
_checkInstanceTime = checkInstanceTime; _soloInstance = soloInstance;
_weekly = weekly; _weekly = weekly;
_enterLocation = enterLocation; _enterLocation = enterLocation;
_mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN; _mapX = ((_enterLocation.getX() - World.WORLD_X_MIN) >> 15) + World.TILE_X_MIN;
@ -123,9 +123,9 @@ public class TimedHuntingZoneHolder
return _instanceId; return _instanceId;
} }
public boolean checkInstanceTime() public boolean isSoloInstance()
{ {
return _checkInstanceTime; return _soloInstance;
} }
public boolean isWeekly() public boolean isWeekly()

View File

@ -102,7 +102,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
} }
final int instanceId = holder.getInstanceId(); final int instanceId = holder.getInstanceId();
if ((instanceId > 0) && holder.checkInstanceTime() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis())) if ((instanceId > 0) && holder.isSoloInstance() && (InstanceManager.getInstance().getInstanceTime(player, instanceId) > Chronos.currentTimeMillis()))
{ {
player.sendMessage("This transcendent instance has not reset yet."); player.sendMessage("This transcendent instance has not reset yet.");
return; return;