Add gfx command to developer tools

Setting the spotAnimFrame to 0 is required to play the graphic from the start
This commit is contained in:
Kamiel
2018-05-01 20:37:06 +02:00
committed by Adam
parent 084f8dcb64
commit e98304b536
2 changed files with 10 additions and 0 deletions

View File

@@ -187,6 +187,14 @@ public class DevToolsPlugin extends Plugin
localPlayer.setActionFrame(0);
break;
}
case "gfx":
{
int id = Integer.parseInt(args[0]);
Player localPlayer = client.getLocalPlayer();
localPlayer.setGraphic(id);
localPlayer.setSpotAnimFrame(0);
break;
}
}
}