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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user