SRL Archive - OSR Help

Detect Walking


Justin

2011-12-22 21:03:44

Hello.

I am trying to make a collecting script but I am running into a problem, it will detect the item is on the ground but then after my Wait() fuction has finished it will try to click on the item again, but as my character is already walking towards the item, it misclicks and then stops the "Take" action and replaces it with a "Walk" action.

Is there any way to have a check to see if my character is moving, if moving, wait(800) until not moving?

Kyle Undefined

2011-12-22 21:06:04

You can check for pixel shift, if it's greater than a certain amount, then the character is moving.

Yanhua

2011-12-22 21:10:47

Use FFlag(0); as the wait.

Justin

2011-12-22 21:18:18

Thanks guys.
I've never worked with pixel shift so I'll have a look into it

YoHoJo

2011-12-22 21:19:17

IsMoving; also works
Flag; FFlag(0); look into them, good luck.