SRL Archive - RS3 Help

SPS Walking


Battousai

2015-02-16 16:32:04

Was wondering what is wrong with my function or map, Sometimes it walks places just fine, and other times it completely misses where it is supposed to end up


Procedure walkToMine();
var
pathToMine := [Point(58, 38), Point(56, 35), Point(59, 26), Point(65, 22), Point(72, 16), Point(80, 16), Point(94, 16), Point(104, 23), Point(108, 31), Point(114, 50), Point(113, 64), Point(115, 73), Point(122, 86), Point(132, 100), Point(130, 112), Point(128, 124), Point(133, 135), Point(135, 149), Point(134, 162), Point(137, 174), Point(141, 184), Point(147, 194), Point(153, 198), Point(157, 200), Point(165, 204), Point(171, 207), Point(178, 210), Point(181, 215), Point(186, 222), Point(193, 228), Point(197, 230), Point(204, 233), Point(211, 236), Point(223, 238), Point(229, 239), Point(243, 246), Point(246, 253), Point(252, 263), Point(254, 269), Point(256, 282), Point(257, 290), Point(261, 300), Point(264, 310), Point(265, 323), Point(268, 335), Point(270, 343), Point(273, 354), Point(274, 358), Point(277, 366), Point(279, 373), Point(283, 381), Point(288, 393), Point(289, 400), Point(295, 409), Point(295, 414), Point(289, 423)];
Begin
SPS.walkPath(pathToMine);
If SPS.walkPath(pathToMine) Then
minimap.waitPlayerMoving;
ClearDebug;
writeLn('Status: Walking to Mine');
End;

Procedure walkToBank();
var
pathToBank := [Point(292, 420), Point(292, 412), Point(291, 403), Point(289, 393), Point(286, 386), Point(285, 378), Point(282, 369), Point(279, 358), Point(275, 347), Point(272, 339), Point(269, 328), Point(268, 319), Point(264, 305), Point(262, 288), Point(255, 273), Point(249, 265), Point(246, 256), Point(239, 250), Point(231, 238), Point(222, 237), Point(208, 233), Point(198, 225), Point(189, 219), Point(182, 211), Point(174, 202), Point(165, 196), Point(154, 182), Point(139, 171), Point(134, 162), Point(127, 152), Point(124, 144), Point(121, 135), Point(123, 129), Point(126, 121), Point(126, 113), Point(128, 104), Point(125, 96), Point(123, 87), Point(119, 79), Point(111, 68), Point(107, 60), Point(108, 53), Point(112, 48), Point(113, 39), Point(110, 31), Point(105, 20), Point(99, 14), Point(91, 13), Point(80, 13), Point(67, 16), Point(64, 20), Point(60, 28), Point(59, 33), Point(59, 43)];
Begin
SPS.walkPath(pathToBank);
If SPS.walkPath(pathToBank) Then
minimap.waitPlayerMoving;
ClearDebug;
writeLn('Status: Walking to Bank');
End;

The map i am using is below, It belongs inside RUNESCAPE_OTHER

Turpinator

2015-02-16 16:45:18

The map isnt large enough. you need more stuff around your walk path.

Lipcot

2015-02-16 16:51:00

yeah, as turpinator said.. you need a bigger map. 90% of sps problems mean you need a bigger map heh. just dont cut the black regions.

edit: to check if your sps map is done properly you could walk the path manually and checking the sps.debug, its an awesome tool. Like that you will notice which parts of the path are wrong.

Battousai

2015-02-16 16:59:58

From: Lipcot
yeah, as turpinator said.. you need a bigger map. 90% of sps problems mean you need a bigger map heh. just dont cut the black regions.

edit: to check if your sps map is done properly you could walk the path manually and checking the sps.debug, its an awesome tool. Like that you will notice which parts of the path are wrong.


The problem is, I can't make the map decently enough as anyway i try to line it up with another piece of the map then 90% of the map is completely screwed. It took well over 2 hours to create just that as it is. So if there is a better way to where i don't have to spend an entire day making a map that takes a minute to walk.

If any of you can show me a decent way to actually do that Then i am all ears

Lipcot

2015-02-16 21:55:52

make the minimap on rs client bigger and you'll get that image in like 3 screenshots or less

slacky

2015-02-17 02:11:32

https://villavu.com/forum/showthread.php?t=111234
Use the map posted over there, crop out the area you need, or… just do as the person above me suggested.

Battousai

2015-02-17 15:18:02

From: slacky
https://villavu.com/forum/showthread.php?t=111234
Use the map posted over there, crop out the area you need, or… just do as the person above me suggested.


Holy cow, Life saver xD