SRL Archive - OSR Help

Help with walking


m34tcode

2011-12-22 15:14:56

I am writing a script that fishes west of the fishers guild, then sells to Rasolo who is nearby. It is faster than power fishing and you catch fish faster at this spot.

The feathers pay for themselves this way so there is no need to make more money getting new feathers.

Because there is no road between the fishing spot and Rasolo, I'm having trouble walking.

I have been using 3 DTMs, each with a backup if the first isn't found, but it never finds any of them. I assume that the area value for the points is an area tolerance, and have been setting that to three.

When searching for the DTM i have it start it pi/3 and end at 2pi/3, incrementing by pi/100;

Hero

2011-12-22 15:49:53

Post a screenshot of the Minimap if you can?

m34tcode

2011-12-22 16:30:14


The North most NPC on the mini map is Rasolo

Kyle Undefined

2011-12-22 16:37:16

Search for Euph's ObjectDTM Include and use that. It's perfect for this.

m34tcode

2011-12-22 17:20:12

I used euphs gen objectdtm function, made sure compass was north first, and the include found no mini map objects?

program new;
{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}
{$i objectdtm/objdtminclude.simba}

procedure DeclarePlayers;
begin
HowManyPlayers := 1
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '';
Pass := '';
Active := true;
Member := true
end;
end;

var p:TPoint;box : TBox; fish:LongInt;
begin
Smart_Members := true;
Smart_Server := 83;
Smart_Signed := true;
Smart_SuperDetail := false;
SetupSRL;
DeclarePlayers;
if not LoggedIn then LogInPlayer;

GenerateObjDTM([MM_TREE,MM_TREE,MM_TREE],625,85,false,true);
end.

Kyle Undefined

2011-12-22 17:48:47

Add a wait between your if statement and the Generate function.

m34tcode

2011-12-22 17:49:26

i ran this after being logged in so that that wouldnt have been a prob. Ill retry that though.

EDIT: yea same error. ran in lumbridge behind castle with toooons of trees.

euphemism

2011-12-22 19:43:39

From: m34tcode
i ran this after being logged in so that that wouldnt have been a prob. Ill retry that though.

EDIT: yea same error. ran in lumbridge behind castle with toooons of trees.


Remember that time you didn't call "LoadObjects;" at the beginning of your script before using functions from the include? I remember that time. :)

m34tcode

2011-12-22 21:01:28

Wow. I even read that :duh::duh::duh:

Ty dude =]

EDIT: Success. Rep++ for your object DTM idea. Its amazing.

posted my pass again -.-

Not the first time. Recovering now haha.

EDIT again:

Haha my char is standing outside a bank box now. Dude realized I was poor as shit and logged out. Only made the acc few days ago.

kevin33

2011-12-22 21:52:33

From: m34tcode
I used euphs gen objectdtm function, made sure compass was north first, and the include found no mini map objects?

program new;
{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}
{$i objectdtm/objdtminclude.simba}

procedure DeclarePlayers;
begin
HowManyPlayers := 1
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '';
Pass := '';
Active := true;
Member := true
end;
end;

var p:TPoint;box : TBox; fish:LongInt;
begin
Smart_Members := true;
Smart_Server := 83;
Smart_Signed := true;
Smart_SuperDetail := false;
SetupSRL;
DeclarePlayers;
if not LoggedIn then LogInPlayer;

GenerateObjDTM([MM_TREE,MM_TREE,MM_TREE],625,85,false,true);
end.


Change your password for your rs account right away you left it in.

m34tcode

2011-12-22 21:55:28

Yea I'm on that. Realized that it was in here when i kept getting incorrect pass error