Moved timed hunting info packet to zone exit.
This commit is contained in:
parent
10632571b6
commit
9d55c790d8
@ -14348,7 +14348,6 @@ public class PlayerInstance extends Playable
|
|||||||
_timedHuntingZoneFinishTask.cancel(true);
|
_timedHuntingZoneFinishTask.cancel(true);
|
||||||
_timedHuntingZoneFinishTask = null;
|
_timedHuntingZoneFinishTask = null;
|
||||||
}
|
}
|
||||||
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimedHuntingZoneRemainingTime()
|
public long getTimedHuntingZoneRemainingTime()
|
||||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
|||||||
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
@ -67,6 +68,7 @@ public class TimedHuntingZone extends ZoneType
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
||||||
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14326,7 +14326,6 @@ public class PlayerInstance extends Playable
|
|||||||
_timedHuntingZoneFinishTask.cancel(true);
|
_timedHuntingZoneFinishTask.cancel(true);
|
||||||
_timedHuntingZoneFinishTask = null;
|
_timedHuntingZoneFinishTask = null;
|
||||||
}
|
}
|
||||||
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimedHuntingZoneRemainingTime()
|
public long getTimedHuntingZoneRemainingTime()
|
||||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
|||||||
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
@ -87,6 +88,7 @@ public class TimedHuntingZone extends ZoneType
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
||||||
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14231,7 +14231,6 @@ public class PlayerInstance extends Playable
|
|||||||
_timedHuntingZoneFinishTask.cancel(true);
|
_timedHuntingZoneFinishTask.cancel(true);
|
||||||
_timedHuntingZoneFinishTask = null;
|
_timedHuntingZoneFinishTask = null;
|
||||||
}
|
}
|
||||||
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimedHuntingZoneRemainingTime()
|
public long getTimedHuntingZoneRemainingTime()
|
||||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
|||||||
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
@ -62,6 +63,7 @@ public class TimedHuntingZone extends ZoneType
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
||||||
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14347,7 +14347,6 @@ public class PlayerInstance extends Playable
|
|||||||
_timedHuntingZoneFinishTask.cancel(true);
|
_timedHuntingZoneFinishTask.cancel(true);
|
||||||
_timedHuntingZoneFinishTask = null;
|
_timedHuntingZoneFinishTask = null;
|
||||||
}
|
}
|
||||||
sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimedHuntingZoneRemainingTime()
|
public long getTimedHuntingZoneRemainingTime()
|
||||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
|||||||
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
import org.l2jmobius.gameserver.model.zone.ZoneType;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
@ -62,6 +63,7 @@ public class TimedHuntingZone extends ZoneType
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
player.setInsideZone(ZoneId.TIMED_HUNTING, false);
|
||||||
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user