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