Add anim command to developer tools

It is required to set the action frame to 0 else the animation will not play from the beginning
This commit is contained in:
Kamiel
2018-05-01 20:27:07 +02:00
committed by Adam
parent f5ce1084d0
commit acfba42295

View File

@@ -38,6 +38,7 @@ import lombok.extern.slf4j.Slf4j;
import net.runelite.api.ChatMessageType;
import net.runelite.api.Client;
import net.runelite.api.Experience;
import net.runelite.api.Player;
import net.runelite.api.Skill;
import net.runelite.api.events.CommandExecuted;
import net.runelite.api.events.VarbitChanged;
@@ -178,6 +179,14 @@ public class DevToolsPlugin extends Plugin
client.setChangedSkillsCount(count);
break;
}
case "anim":
{
int id = Integer.parseInt(args[0]);
Player localPlayer = client.getLocalPlayer();
localPlayer.setAnimation(id);
localPlayer.setActionFrame(0);
break;
}
}
}