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
The map i am using is below, It belongs inside RUNESCAPE_OTHER
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