Restore actions on player login.

Contributed by Index.
This commit is contained in:
MobiusDevelopment 2022-07-28 21:10:42 +00:00
parent 6eb6b14ebd
commit e14839c951
10 changed files with 110 additions and 0 deletions

View File

@ -14454,6 +14454,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14481,6 +14485,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14525,6 +14525,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14552,6 +14556,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14563,6 +14563,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14590,6 +14594,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14613,6 +14613,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14640,6 +14644,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14641,6 +14641,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14668,6 +14672,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14366,6 +14366,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14393,6 +14397,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14629,6 +14629,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14656,6 +14660,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14710,6 +14710,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14737,6 +14741,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14890,6 +14890,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -14917,6 +14921,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{

View File

@ -14979,6 +14979,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@ -15006,6 +15010,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{