More triggers for onActionRequest.
Contributed by Sahar.
This commit is contained in:
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -124,6 +124,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -228,9 +228,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(_targetX, _targetY, _targetZ));
|
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(_targetX, _targetY, _targetZ));
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -112,6 +112,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
// Stop if use self-buff (except if on AirShip or Boat).
|
// Stop if use self-buff (except if on AirShip or Boat).
|
||||||
if ((skill.isContinuous() && !skill.isDebuff() && (skill.getTargetType() == TargetType.SELF)) && (!player.isInAirShip() || !player.isInBoat()))
|
if ((skill.isContinuous() && !skill.isDebuff() && (skill.getTargetType() == TargetType.SELF)) && (!player.isInAirShip() || !player.isInBoat()))
|
||||||
{
|
{
|
||||||
|
@@ -170,6 +170,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -124,6 +124,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -228,9 +228,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(_targetX, _targetY, _targetZ));
|
player.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(_targetX, _targetY, _targetZ));
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -112,6 +112,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
// Stop if use self-buff (except if on AirShip or Boat).
|
// Stop if use self-buff (except if on AirShip or Boat).
|
||||||
if ((skill.isContinuous() && !skill.isDebuff() && (skill.getTargetType() == TargetType.SELF)) && (!player.isInAirShip() || !player.isInBoat()))
|
if ((skill.isContinuous() && !skill.isDebuff() && (skill.getTargetType() == TargetType.SELF)) && (!player.isInAirShip() || !player.isInBoat()))
|
||||||
{
|
{
|
||||||
|
@@ -170,6 +170,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -168,6 +168,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Don't allow to put formal wear while a cursed weapon is equipped.
|
// Don't allow to put formal wear while a cursed weapon is equipped.
|
||||||
|
@@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
switch (_actionId)
|
switch (_actionId)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (player.getTarget() != target)
|
if (player.getTarget() != target)
|
||||||
{
|
{
|
||||||
target.onAction(player);
|
target.onAction(player);
|
||||||
|
@@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check spawn protections.
|
// Mobius: Check spawn protections.
|
||||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
player.onActionRequest();
|
||||||
{
|
|
||||||
player.onActionRequest();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -169,6 +169,8 @@ public class UseItem implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.onActionRequest();
|
||||||
|
|
||||||
if (item.isEquipable())
|
if (item.isEquipable())
|
||||||
{
|
{
|
||||||
// Max equipable item grade configuration.
|
// Max equipable item grade configuration.
|
||||||
|
Reference in New Issue
Block a user