SRL Archive - Help

Problem with script


rj

2013-02-02 23:26:30

In my script, it mines copper near falador, then walks to bank, looks for bank booth (sometimes sits inside of bank for 8 seconds before looking for bank booth) and then opens up the bank. It stores the ores. Now here is were the problem is, the bot then turns the compass north like it's supposed to to start walking to the mine, but it just sits there and does not walk. But then, if I start the script next to the bank with the inventory full, it opens the bank, banks the ore and then walks to mine like it's supposed to.

Here is the procedure:

procedure  ToMine;
var
ToMineVar: TPointArray;
begin
MakeCompass(360 - Random(15));
Status := ('Walking to mine via SPS');
WriteProgress;
ToMineVar:=[Point(3846,3174),Point(3846,3163),Point(3844,3155),Point(3838,3151),
Point(3828,3152),Point(3822,3162),Point(3818,3172),Point(3818,3181),
Point(3820,3190),Point(3821,3198),Point(3822,3206),Point(3823,3216),
Point(3823,3226),Point(3823,3236),Point(3823,3246),Point(3824,3256),
Point(3822,3267),Point(3821,3278),Point(3818,3287),Point(3819,3295),
Point(3821,3302),Point(3821,3314),Point(3821,3326),Point(3821,3340),
Point(3822,3356),Point(3821,3366),Point(3819,3374),Point(3817,3384),
Point(3814,3398),Point(3814,3412),Point(3812,3424),Point(3813,3436),
Point(3816,3447),Point(3818,3460),Point(3815,3471),Point(3811,3487),
Point(3801,3496),Point(3789,3502),Point(3778,3506),Point(3765,3513),
Point(3754,3518),Point(3741,3521),Point(3728,3522),Point(3717,3525),
Point(3704,3533),Point(3696,3546),Point(3696,3556),Point(3692,3574),
Point(3688,3585),Point(3688,3593),Point(3687,3603),Point(3686,3613),
Point(3683,3624),Point(3684,3634),Point(3677,3642),Point(3669,3653)];
if SPS_WalkPath(ToMineVar) then
Wait(RandomRange(800, 1000));
Exit;
end;

Here is the procedure that calls that:

Procedure StoreOre;
var
NotFull:Tbox;
begin
PrintSmart;
NotFull := IntToBox(552, 212, 731, 461);
SMART_DrawBoxEx(False, False, NotFull, COLINV);
If BankScreen Then
begin
Deposit(2, 28, True);
Wait(RandomRange(800, 2000));
ToMine;
end;
Wait(RandomRange(800, 2000));
StoreOre;
end;


What am I doing wrong here lol?

rj

2013-02-03 13:57:27

bump

Coh3n

2013-02-03 18:00:11

Are you calling SPS_Setup before you walk each path?

rj

2013-02-03 18:01:48

From: Coh3n
Are you calling SPS_Setup before you walk each path?


Like this:

procedure  WalkBank;
var
ToBankVar: TPointArray;
begin
MakeCompass(360 - Random(10));
//ClickNorth(SRL_ANGLE_HIGH);
Status := ('Walking to bank via SPS');
WriteProgress;
SPS_Setup(RUNESCAPE_SURFACE,['9_9','9_8','9_7']);
ToBankVar:=[Point(3693,3661),Point(3697,3661),Point(3700,3659),
Point(3697,3653),Point(3695,3648),Point(3694,3642),Point(3692,3634),
Point(3695,3629),Point(3692,3624),Point(3693,3621),Point(3693,3615),
Point(3691,3610),Point(3691,3603),Point(3691,3597),Point(3693,3590),
Point(3695,3585),Point(3695,3576),Point(3693,3571),Point(3695,3566),
Point(3696,3561),Point(3696,3554),Point(3698,3549),Point(3700,3542),
Point(3700,3535),Point(3702,3527),Point(3700,3520),Point(3701,3515),
Point(3701,3506),Point(3703,3500),Point(3706,3494),Point(3717,3490),
Point(3712,3489),Point(3713,3484),Point(3717,3479),Point(3722,3475),
Point(3726,3470),Point(3730,3466),Point(3732,3462),Point(3738,3458),
Point(3743,3451),Point(3749,3451),Point(3756,3448),Point(3763,3446),
Point(3770,3445),Point(3777,3441),Point(3781,3436),Point(3784,3431),
Point(3792,3427),Point(3801,3427),Point(3809,3427),Point(3811,3420),
Point(3813,3411),Point(3814,3403),Point(3816,3396),Point(3816,3388),
Point(3814,3381),Point(3816,3376),Point(3818,3371),Point(3819,3366),
Point(3820,3360),Point(3822,3354),Point(3822,3347),Point(3821,3340),
Point(3821,3333),Point(3821,3326),Point(3821,3320),Point(3821,3312),
Point(3821,3303),Point(3818,3295),Point(3818,3288),Point(3820,3283),
Point(3823,3280),Point(3824,3273),Point(3824,3268),Point(3824,3261),
Point(3823,3255),Point(3824,3250),Point(3825,3244),Point(3825,3236),
Point(3823,3229),Point(3824,3224),Point(3824,3215),Point(3824,3207),
Point(3822,3198),Point(3821,3191),Point(3821,3184),Point(3823,3176),
Point(3823,3168),Point(3823,3159),Point(3827,3157),Point(3833,3159),
Point(3838,3158),Point(3843,3160),Point(3846,3165),Point(3845,3169),
Point(3845,3175),Point(3844,3180),Point(3847,3183)];
if SPS_WalkPath(ToBankVar) then
Wait(RandomRange(1400, 2500));
end;

The script's SPS works but sometimes it just won't walk the path unless I stop the script and restart it.

Coh3n

2013-02-03 18:09:13

So SPS_Setup gets called multiple times throughout the script? The update I just made to SPS should fix that issue. Also, it just went to the updater if you downloaded SPS that way. You should have version 113 of SPS. :)

rj

2013-02-03 18:21:20

From: Coh3n
So SPS_Setup gets called multiple times throughout the script? The update I just made to SPS should fix that issue. Also, it just went to the updater if you downloaded SPS that way. You should have version 113 of SPS. :)


I do ahave it updated same issue

Coh3n

2013-02-03 21:04:50

You sure your local version is at 113?