Kick player from timed hunting zone on logout.
This commit is contained in:
+7
@@ -10894,6 +10894,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure player variables are stored.
|
// Make sure player variables are stored.
|
||||||
getVariables().storeMe();
|
getVariables().storeMe();
|
||||||
|
|
||||||
|
|||||||
+7
@@ -11009,6 +11009,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure player variables are stored.
|
// Make sure player variables are stored.
|
||||||
getVariables().storeMe();
|
getVariables().storeMe();
|
||||||
|
|
||||||
|
|||||||
+7
@@ -11035,6 +11035,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure player variables are stored.
|
// Make sure player variables are stored.
|
||||||
getVariables().storeMe();
|
getVariables().storeMe();
|
||||||
|
|
||||||
|
|||||||
+7
@@ -10771,6 +10771,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure player variables are stored.
|
// Make sure player variables are stored.
|
||||||
getVariables().storeMe();
|
getVariables().storeMe();
|
||||||
|
|
||||||
|
|||||||
+7
@@ -10937,6 +10937,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Store death points.
|
// Store death points.
|
||||||
if (_isDeathKnight)
|
if (_isDeathKnight)
|
||||||
{
|
{
|
||||||
|
|||||||
+7
@@ -11003,6 +11003,13 @@ public class PlayerInstance extends Playable
|
|||||||
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
LOGGER.log(Level.SEVERE, "deleteMe()", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit timed hunting zone.
|
||||||
|
if (isInTimedHuntingZone(getX(), getY()))
|
||||||
|
{
|
||||||
|
teleToLocation(TeleportWhereType.TOWN);
|
||||||
|
storeCharBase();
|
||||||
|
}
|
||||||
|
|
||||||
// Store death points.
|
// Store death points.
|
||||||
if (_isDeathKnight)
|
if (_isDeathKnight)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user