Restore actions on player login.
Contributed by Index.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
+11
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
+11
@@ -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)
|
||||
{
|
||||
|
||||
+11
@@ -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)
|
||||
{
|
||||
|
||||
+11
@@ -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)
|
||||
{
|
||||
|
||||
+11
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user