Separate names with a comma.
Discussion in 'Developer Support' started by Matty20, Jul 31, 2016.
How do I check if the player is animating or doing an action?
Players.getLocal().getAnimationId() returns...the Animation ID. This allows you to know what action a player is doing. For example, when this returns -1, the player is just standing still, doing nothing. When it returns 624, the player is mining. You can use the Development Toolkit to find the Animation ID to any action you need.
Thank you for your help SuperBotter.
You're welcome. I hope to see some bots from you in the future
Thanks SuperBotter, I've got a pretty good working Portable bot. Just making it better and making it so I can use different portables.
Can you help me with adding a combobox to the runemate interface so I can choose what portable I am using?
For GUI stuff in my bots I used Tutorial - EmbeddableUI Tutorial/Reference. I had to change some of it to be specific to my bot instead of to flax picking, but the code shouldn't be too hard to understand. The example GUI includes a combobox that you can modify for your uses.
Thanks, you have been a great help.
Hmmm, as for animation IDs, if you're only worried about if the player is animated, animationId != -1 would do, but if you're looking for a specific animation, animationId == specificAnimationId would be what you want. This is important cases where animations can be different depending on the player.