SRL Archive - RS3 Help

Player performing action function


Kaladin

2014-01-29 10:25:08

Is there a function to check if your player is currently performing an action?
If not any tips for detecting this?

Tried looking in docs but couldnt see anything.
Thanks

sdf

2014-01-29 10:31:43

If the action you are doing has an animation, you can try to determine the pixelshift in the playerBox.

If the action you are doing has a unique colour that occurs when performing it (i.e. Colour of fishing rod when casting), you can use colour detection.

Kaladin

2014-01-29 11:05:39

Ah, perfect thanks very much :)

Clarity

2014-01-29 11:57:08

If the pixelshift and/or color finds were perfected, you could make an interesting include!

sdf

2014-01-29 12:06:50

From: Clarity
If the pixelshift and/or color finds were perfected, you could make an interesting include!


Closest thing to that was the isMoving function (under animation) from SRL-5, which is essentially what was suggested above (pixelshift method).

Clarity

2014-01-29 12:11:30

Yeah, that's based on minimap movement right? I think this guy was asking about actions moving or standalone (like is the player fishing or chopping wood atm).

sdf

2014-01-29 12:44:58

From: Clarity
Yeah, that's based on minimap movement right? I think this guy was asking about actions moving or standalone (like is the player fishing or chopping wood atm).


Nah, the one in SRL-5 was based off mainscreen pixelShift. The similarly named function in SRL-6 is based off the minimap.

Olly

2014-01-29 12:56:59

From: sdf
Nah, the one in SRL-5 was based off mainscreen pixelShift. The similarly named function in SRL-6 is based off the minimap.


Nop srl-5's was based on the minimap. https://github.com/SRL/SRL-5/blob/18b70d0c7dff0dce154be06abf6b8b2a36af3d3e/SRL/core/animation.simba#L386

sdf

2014-01-29 21:05:21

From: Olly
Nop srl-5's was based on the minimap. https://github.com/SRL/SRL-5/blob/18b70d0c7dff0dce154be06abf6b8b2a36af3d3e/SRL/core/animation.simba#L386


My life is a lie. Perhaps it was animating.