CynicRus
2012-08-28 08:52:21
Hi all. I present to you path maker for Simba. Final release!
Features:
Screenshot's:



Example generated code:
https://github.com/CynicRus/sps_path
Thanks for you advice:)
Features:
- Multipath (max path = 8)
- Working with sps surface map or custom map for sps
- Generate walking code
Screenshot's:



Example generated code:
program Walker;
//code generated with Custom path generator for SPS by Cynic
{$DEFINE SMART}
{$i SRL/srl.simba}
{$i sps/sps.simba}
var
//place your variables here
Status: string;
procedure DeclarePlayers;
begin
HowManyPlayers:=1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;
with Players[0] do
begin
Name:='';
Pass:='';
BoxRewards:='';
LampSkill:=SKILL_ATTACK;
Pin:='';
Active:=true;
end;
end;
procedure CatherbyToSeers;
var
CatherbyToSeersPath: TPointArray;
begin
CatherbyToSeersPath:=[Point(3135,2898),Point(3119,2896),Point(3113,2900),Point(3100,2901),Point(3091,2907),Point(3074,2910),Point(3057,2914),Point(3029,2922),Point(3006,2916),Point(2985,2890),Point(2967,2880),Point(2956,2869),Point(2941,2852),Point(2929,2840),Point(2918,2815),Point(2900,2806),Point(2890,2791),Point(2892,2773),Point(2871,2756),Point(2863,2740),Point(2849,2734),Point(2836,2734),Point(2811,2730),Point(2789,2723),Point(2769,2711),Point(2754,2708),Point(2740,2706),Point(2737,2691),Point(2737,2682)];
if SPS_WalkPath(CatherbyToSeersPath) then
Status := 'CatherbyToSeers';
else begin
Status :='Failed CatherbyToSeers';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure SeersToMagicTree;
var
SeersToMagicTreePath: TPointArray;
begin
SeersToMagicTreePath:=[Point(2737,2681),Point(2739,2692),Point(2740,2700),Point(2740,2707),Point(2740,2715),Point(2738,2723),Point(2738,2736),Point(2740,2763),Point(2737,2783),Point(2724,2792)];
if SPS_WalkPath(SeersToMagicTreePath) then
Status := 'SeersToMagicTree';
else begin
Status :='Failed SeersToMagicTree';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure MagicTreeToForrest;
var
MagicTreeToForrestPath: TPointArray;
begin
MagicTreeToForrestPath:=[Point(2722,2793),Point(2728,2796),Point(2737,2803),Point(2747,2815),Point(2768,2820),Point(2785,2823),Point(2818,2825),Point(2828,2825),Point(2846,2826),Point(2860,2827),Point(2872,2827),Point(2890,2836),Point(2912,2851),Point(2915,2876),Point(2911,2895),Point(2901,2914),Point(2880,2923),Point(2868,2929)];
if SPS_WalkPath(MagicTreeToForrestPath) then
Status := 'MagicTreeToForrest';
else begin
Status :='Failed MagicTreeToForrest';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure ForrestToCamelot;
var
ForrestToCamelotPath: TPointArray;
begin
ForrestToCamelotPath:=[Point(2869,2931),Point(2846,2930),Point(2823,2928),Point(2799,2922),Point(2780,2915),Point(2771,2906),Point(2769,2881),Point(2769,2859),Point(2773,2843),Point(2782,2835),Point(2804,2826),Point(2823,2815),Point(2839,2806),Point(2848,2798),Point(2862,2789),Point(2864,2770),Point(2868,2751),Point(2871,2729),Point(2866,2721)];
if SPS_WalkPath(ForrestToCamelotPath) then
Status := 'ForrestToCamelot';
else begin
Status :='Failed ForrestToCamelot';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure CamelotToCatherbyBank;
var
CamelotToCatherbyBankPath: TPointArray;
begin
CamelotToCatherbyBankPath:=[Point(2869,2719),Point(2882,2724),Point(2887,2729),Point(2891,2738),Point(2903,2749),Point(2936,2768),Point(2948,2775),Point(2952,2800),Point(2956,2819),Point(2969,2832),Point(2978,2847),Point(2998,2849),Point(3019,2848),Point(3031,2857),Point(3045,2862),Point(3050,2879),Point(3050,2898),Point(3057,2907),Point(3070,2907),Point(3071,2893)];
if SPS_WalkPath(CamelotToCatherbyBankPath) then
Status := 'CamelotToCatherbyBank';
else begin
Status :='Failed CamelotToCatherbyBank';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure CatherbyBankToForrest;
var
CatherbyBankToForrestPath: TPointArray;
begin
CatherbyBankToForrestPath:=[Point(3072,2892),Point(3072,2897),Point(3072,2907),Point(3059,2912),Point(3041,2918),Point(3018,2921),Point(2997,2906),Point(2983,2903),Point(2966,2907),Point(2947,2911),Point(2914,2918),Point(2894,2925),Point(2876,2929),Point(2856,2925)];
if SPS_WalkPath(CatherbyBankToForrestPath) then
Status := 'CatherbyBankToForrest';
else begin
Status :='Failed CatherbyBankToForrest';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure ForrestToSeersAnvil;
var
ForrestToSeersAnvilPath: TPointArray;
begin
ForrestToSeersAnvilPath:=[Point(2852,2920),Point(2823,2920),Point(2792,2913),Point(2760,2900),Point(2751,2870),Point(2746,2840),Point(2733,2812),Point(2719,2802),Point(2710,2766),Point(2717,2734),Point(2717,2715),Point(2711,2706),Point(2688,2707),Point(2674,2709),Point(2674,2696),Point(2674,2682),Point(2677,2673)];
if SPS_WalkPath(ForrestToSeersAnvilPath) then
Status := 'ForrestToSeersAnvil';
else begin
Status :='Failed ForrestToSeersAnvil';
WriteLn(status + '#Time Running:' +TimeRunning);
Logout;
TerminateScript;
end;
WriteLn(status + '#Time Running:' +TimeRunning);
end;
end;
procedure SetupWalker;
begin
SRL_SIXHOURFIX := TRUE;
SMART_FIXSPEED := TRUE;
SetupSRL;
DeclarePlayers;
LoginPlayer;
Wait(802+ Random(160));
ClickNorth(SRL_ANGLE_HIGH);
SPS_Setup(RUNESCAPE_SURFACE,['7_7','7_6','6_7','8_7','7_8','6_6','8_8','8_6','6_8','5_6','7_6','6_7','5_5','7_5','5_7','5_7','6_8','5_8','7_5','6_5'];
end;
Written in lazarus, source aviable on GIT:https://github.com/CynicRus/sps_path
Thanks for you advice:)
