SRL Archive - OSR Help

SetRun


P1ng

2012-08-12 01:14:13

So I'm writing a new script and had a custom SPS map made for it.
Below is my current walking procedure, but for some reason it toggles my run option, usually to false.

I'm just trying to work out where in this piece of code there is something that would make it toggle the run to whatever it feels like?

procedure Walk2Bank;
var
myPath: Array of TPoint;
begin
Status('Walk2Bank - SPS');
if not LoggedIn then
begin
{$IFDEF DEBUG}
WriteLn('Not logged in @Walk2Bank.');
{$ENDIF}
NextPlayer(False);
end;
if FindNormalRandoms then
Exit;
MakeCompass('n');
SetAngle(SRL_ANGLE_HIGH);
myPath := [Point(261, 172), Point(253, 176), Point(243, 178), Point(233, 178), Point(224, 179), Point(220, 182), Point(213, 182)];
if not SPS_WalkPath(myPath) then
Walk2Bank2; //TPA failsafe walking method
end;

Nebula

2012-08-12 01:37:57

Part of SPS_WalkPath is

RunEnergy(20);

CephaXz

2012-08-12 01:43:43

SPS_WalkPath sets to run whenever your energy reached 20. Make something like SPS_WalkPath2 and edit to your likings :p

EDIT: Sorry, didn't saw that post ^^

P1ng

2012-08-12 02:00:35

But my energy is almost always above 90 because I don't have a long distance to travel?

CephaXz

2012-08-12 02:10:42

If it has 20 or more than 20 energy, it will toggle run. 90 is more than 20.

Btw, you only wanted to walk?

P1ng

2012-08-12 02:27:22

Nah, I wanted to run. made a SPS_WalkPathEx without the RunEnergy and it's working perfectly now :) Thanks guys!

J J

2012-08-12 06:42:03

From: P1ng
Nah, I wanted to run. made a SPS_WalkPathEx without the RunEnergy and it's working perfectly now :) Thanks guys!

I had this problem in my GOP script aswell, but only at the mind & body altar. I guess I know how to fix it now :)

NCDS

2012-08-12 07:19:38

From: P1ng
But my energy is almost always above 90 because I don't have a long distance to travel?


This is due to the way the run 'meter' glows when activated, as it sometimes causes the function to misread the actual value.