Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

A few api suggestions

Joined
Jan 4, 2014
Messages
10
A few suggestions for Players.getLocal

#isAnimating
#isMoving
#isUnderAttack

I know these can already be done, but it would be nice if it was in the official api :)
 
Joined
Nov 3, 2013
Messages
277
isAnimating -> getAnimationId() != -1
isMoving -> getSpeed() != 0
isUnderAttack -> getCombatGauge() != null

is it rly that hard
 
Last edited:
Joined
Mar 17, 2014
Messages
6
Imo: Should be closed @Quantum. As it's very easy to do, and if someone would like it to be done that way could simply do it locally.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,468
While it is indeed very simple to do these things, to the beginner scripter it may not be quite as obvious of a solution and therefore i think it should be added to the api.
 
Joined
Mar 17, 2014
Messages
6
While it is indeed very simple to do these things, to the beginner scripter it may not be quite as obvious of a solution and therefore i think it should be added to the api.
If a beginner scripter can't figure this out, then frankly how are they going to figure out other things? I'd rather someone who doens't know what they're doing ask questions on how to check animation, check for objects, npc's, or more then to have every bit of code spoonfed to them hindering their learning.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,468
If a beginner scripter can't figure this out, then frankly how are they going to figure out other things? I'd rather someone who doens't know what they're doing ask questions on how to check animation, check for objects, npc's, or more then to have every bit of code spoonfed to them hindering their learning.
It's not being spoonfed. The whole point of an api is to make things as easy and understandable as possible. This method would simply take the numbers out of the equation and make it easier for the untrained eye of a beginner scripter to understand what's going on in a script.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,121
Also makes it marginally more readable. How about documenting the convenience method with the "proper" method? For example...

// Equivalent to getAnimationId() != -1
public static boolean isAnimating() {

I feel this encourages learning and discovery of new methods, while still offering the intended convenience.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
7,468
Also makes it marginally more readable. How about documenting the convenience method with the "proper" method? For example...

// Equivalent to getAnimationId() != -1
public static boolean isAnimating() {

I feel this encourages learning and discovery of new methods, while still offering the intended convenience.
Good idea :)
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
Also makes it marginally more readable. How about documenting the convenience method with the "proper" method? For example...

// Equivalent to getAnimationId() != -1
public static boolean isAnimating() {

I feel this encourages learning and discovery of new methods, while still offering the intended convenience.
>static
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,121
Hey hey no need for name calling. :p Just trying to mediate between the noob sympathizers and haters. Plus, convenience methods are a norm in just about every major third party library.
 
Top