SRL Archive - OSR Help

Many hours and still me no walking


rsbots2013

2013-04-14 05:42:43

Old School RS

I am so lost when it comes to walking. I've tried many methods and I have almost come to giving it.

I've tried:

sps custom maps. With these I didn't understand how to move after I've done the photo shopping correctly, it boils down to lack of knowing how to modify script examples so they work.

DTM's, Map changes direction and like what many people have complained the minimap and 3d maps (Edit: screen not map) are off in degrees

MMouse, I don't want to use points on the 3d map (Edit: screen not map) instead of minimap b/c that doesnt seem realistic to me. I think it would be easy to get banned. When I use
"P07_MakeCameraAngleHigh, P07_MakeCompassNorth;" it only makes the 3d screen North and not the minimap. So the points on the minimap are not reliable to get exact or even trusted close to desired position.

I'm probably forgetting 1 or 2 other methods i've tried. Main point is I need help and I dont want to sound like I'm wanting to bother any1 a lot.

I would like to see stickied guides/tutorial for walking methods for dummies, this would not just benifit me but to other beginner scripters. And maybe other beginner scripters who have spent countless hhours trying to make a bot walk reliably.(sorry for ignorance on any other aspects of scripting a bot. Basically walking is all i've done so far. You got to admit walking is very crucial to a successfull bot.)

Thanks for all the help from people who have spent their time making a guide/tutorial. I've learnt so much from reading. But still end of lost or not understanding a section.

If someone could link guides or tutorials to how to walk reliably for OSRS that would be so appreciated and helpful. I will keep trying to understand guides to the most I can. I am determined to learn how to script reliable walking into a bot.

Thank you for reading. :) :thumbsup:

P.S - Sorry if I offended anyone.

tealc

2013-04-14 06:01:16

Where are you trying to walk to? Radial walking is good in certain situations.

rsbots2013

2013-04-14 06:05:20

Ardy east mine (south west of legends guild) to bank. I've heard of Radial walking. I haven't really read up on it. I hear DTM and SPS map walking are the more popular methods. Do you think Radial would be a good method for this area?

rsbots2013

2013-04-14 06:12:56

I'm looking into Radial walking now. I might as well give it a good try. Hopefully this will be the 1 for me :) I'm looking at this guide now.
http://villavu.com/forum/showthread.php?t=11584

litoris

2013-04-14 06:25:12

Move onto the official include, SRL-OSR.
Check my SPS tut for proper walking with SPS.

rsbots2013

2013-04-14 06:46:23

123

rsbots2013

2013-04-14 07:01:07

I've tried your guide but I was using old I think stuff for EOC rs sps stuff. I got new ones from Sean that seem like their for 07 rs :) wish me luck

kingsattack

2013-04-15 22:45:30

was you mapper giving you a 4 digit position? i know the one i tried gave wrong locations for paths because 3 digits.

if you pm me your skype name i would gladly get you some path locations with my private tool

kingsattack

2013-04-15 22:50:31

also try out this test walking script someone just posted as a skeleton its the bottom one

From: Too Soon
perhaps a group to develop public&private scripts,
thoughts?

i script in Java and C++,
i've had much experience with SCAR/Simba in making "runescape" scripts.

program Utility;
{$DEFINE SMART8}
{$i SRL-OSR/SRL.simba}

function buy(slot,amount: integer): procedure;
var slotarray: TPointArray;
i,x,y,ramount: integer;
begin
i := 0;
ramount := amount div 10;
slotarray := ([Point(96,79), Point(142,83), Point(191,86), Point(237,86), Point(282,86), Point(331,79), Point(377,82), Point(425,82)]);
x := slotarray[slot].X;
y := slotarray[slot].y;
repeat
Mouse(x,y,1,1,false);
ChooseOption('Buy 10');
inc(i);
until(ramount+(1 div 10) < i);
end;

begin
SetupSRL;
buy(7,140);
buy(6,50);
end.
program TestSPSWalk; //Success, fairly fluent in SPS now.
//{$DEFINE SMART8}
//{$i P07Include.simba}
{$i SRL-OSR/SRL.simba}
{$i SPS/sps-osr.simba}

var x,y: integer;
corePath1,corePath2: TPointArray;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True;
end;

procedure Walk;
begin
corePath1 := [Point(2723, 2719), Point(2723, 2726), Point(2723, 2736), Point(2727, 2740), Point(2727, 2747), Point(2724, 2757), Point(2723, 2765), Point(2723, 2765), Point(2720, 2772), Point(2723, 2778), Point(2727, 2785), Point(2727, 2792), Point(2727, 2800), Point(2730, 2806), Point(2730, 2817), Point(2724, 2821), Point(2724, 2828), Point(2724, 2834), Point(2724, 2834), Point(2727, 2845), Point(2731, 2852), Point(2731, 2852), Point(2737, 2859), Point(2738, 2866), Point(2738, 2876), Point(2741, 2883), Point(2744, 2887), Point(2751, 2890), Point(2759, 2894), Point(2762, 2901), Point(2762, 2908), Point(2769, 2908), Point(2772, 2905), Point(2776, 2898), Point(2779, 2894)];
corePath2 := [Point(2732, 2768), Point(2732, 2772), Point(2733, 2782), Point(2733, 2730)];
MakeCompass(5);
SPS_Tolerance := 300;
SPS_Accuracy := 3;
SPS_AnyAngle := True;
SPS_Setup(runescape_surface, ['VEastExit']);
WriteLn(SPS_GetMyPos);
SPS_WalkPath(corePath1);
SPS_Setup(runescape_surface, ['VIronMap']);
SPS_WalkPath(corePath2);
end;

begin
//SetupSRL;
DeclarePlayers;
LoginPlayer;
Walk;
end.

rsbots2013

2013-04-16 03:08:46

Thanks for the reply and help. :)

I just copied and pasted that code and with that code and whenever I try to make a sps walk script I get these hints what do they mean?:

"[Hint] C:\Simba\Includes\SPS/sps-osr.simba(480:3): Variable 'Z' never used at line 479
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(482:3): Variable 'DEGREEFIX' never used at line 481
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(483:3): Variable 'FINDPOINT' never used at line 482"

Sjoe

2013-04-16 03:10:54

From: rsbots2013
I just copied and pasted that code and with that code and whenever I try to make a sps walk script I get these errors what do they mean?:

"[Hint] C:\Simba\Includes\SPS/sps-osr.simba(480:3): Variable 'Z' never used at line 479
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(482:3): Variable 'DEGREEFIX' never used at line 481
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(483:3): Variable 'FINDPOINT' never used at line 482"


Aren't errors, and u need the sps maps for Kingsattack scripts.

rsbots2013

2013-04-16 03:29:29

From: kingsattack
also try out this test walking script someone just posted as a skeleton its the bottom one


I tried it and didn't get resolts I wanted. My character on OSRS would not move a spot and the script would stop. I changed the coding just the stuff so it's looking at a differnt map from 'runescape_surface' and generated different path points and Everything would compile right. and I get these notes in the debug:

"[Hint] C:\Simba\Includes\SPS/sps-osr.simba(480:3): Variable 'Z' never used at line 479
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(482:3): Variable 'DEGREEFIX' never used at line 481
[Hint] C:\Simba\Includes\SPS/sps-osr.simba(483:3): Variable 'FINDPOINT' never used at line 482
[Hint] (8:5): Variable 'X' never used at line 7
[Hint] (8:5): Variable 'Y' never used at line 7
[Hint] (9:1): Variable 'COREPATH2' never used at line 8
Compiled successfully in 3485 ms.
(2589, 3368)
Error: Out of Proc Range at line 430"

Oh and Simba would open a new script 'math' and direct me to "Calculates a normally distributed point around mean (u) with a standard " this line being orange. Line found in GuassRand in 'math'.

and heres my script:

program TestSPSWalk; //Success, fairly fluent in SPS now.
//{$DEFINE SMART8}
//{$i P07Include.simba}
{$i SRL-OSR/SRL.simba}
{$i SPS/sps-osr.simba}

var x,y: integer;
corePath1,corePath2: TPointArray;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:=True;
end;

procedure Walk;
begin
corePath1 := [Point(183, 163), Point(178, 163), Point(173, 164), Point(172, 172), Point(174, 177), Point(173, 184), Point(174, 191), Point(174, 198), Point(173, 203), Point(171, 210), Point(172, 215), Point(172, 221), Point(175, 229), Point(176, 237), Point(176, 241), Point(178, 247), Point(179, 253), Point(177, 262), Point(174, 266), Point(169, 270), Point(167, 272), Point(161, 274), Point(156, 277), Point(148, 284), Point(147, 289), Point(143, 293), Point(136, 297), Point(133, 303), Point(131, 308), Point(125, 312), Point(121, 318), Point(118, 324), Point(111, 328), Point(105, 332), Point(100, 334), Point(92, 334), Point(85, 334), Point(77, 333), Point(69, 332), Point(63, 331), Point(55, 328), Point(47, 328), Point(42, 328), Point(35, 328), Point(27, 328), Point(18, 328), Point(11, 328), Point(3, 328), Point(2, 351), Point(7, 350), Point(12, 352), Point(17, 352), Point(21, 351), Point(26, 351), Point(31, 354), Point(36, 353)];
//corePath2 := [Point(2732, 2768), Point(2732, 2772), Point(2733, 2782), Point(2733, 2730)];
MakeCompass(5);
SPS_Tolerance := 300;
SPS_Accuracy := 3;
SPS_AnyAngle := True;
SPS_Setup(runescape_surface, ['6_8']);
WriteLn(SPS_GetMyPos);
SPS_WalkPath(corePath1);
//SPS_Setup(runescape_surface, ['VIronMap']);
//SPS_WalkPath(corePath2);
end;

begin
//SetupSRL;
DeclarePlayers;
LoginPlayer;
ActivateClient;
Walk;
end.

rsbots2013

2013-04-16 03:31:03

From: Sjoe
Aren't errors, and u need the sps maps for Kingsattack scripts.


Thanks for your reply :)

Sjoe or anyone else. what do the hints mean? are they always there or is there a way to get rid of them?

I already changed the maps. Maybe have a look at my copied and modified script. :)

Neznam

2013-04-16 03:37:09

From: rsbots2013
Thanks for your reply :)

Sjoe or anyone else. what do the hints mean? are they always there or is there a way to get rid of them?

I already changed the maps. Maybe have a look at my copied and modified script. :)


Hints tell you what may be wrong with your script and why isn't not properly working. Why would you want to get rid of them?

rsbots2013

2013-04-16 03:41:24

I don't want to now. Since I know why their there. Thanks

The Killer

2013-04-16 15:03:17

From: rsbots2013



DTM's, Map changes direction and like what many people have complained the minimap and 3d maps (Edit: screen not map) are off in degrees


Using FindDTMRotated would resolve the problem with the degrees being off :D
I havn;t really read all the thread jsut thought I'd help by throwing that in. You would be better off with dynamic DTMs (DDTM) as they can be used so that they work with the different colour changes the minimap goes through.