SRL Archive - OSR Help

MSI Help


lmcdonald

2012-03-02 14:38:49

Im trying to do the SPS


But for some reason it walks off in some wierd direction from what I am telling it to.
Any Help?
I am using the Pathmaker, Im trying to add the Catherby yews. Heres some of the Add

        SCRIPT_CB_YEWS:
with MSI_Scripts[whichScript] do
begin
Name := 'Catherby Yews';
Constant := SCRIPT_CB_YEWS;
SkillName := 'Woodcutting';
SkillConst := SKILL_WOODCUTTING;
BankType := Bank;
WhichBank := MSI_BANK_CB;
AutoObjects := @MSI_ChopInvFull;
BankObjects := @MSI_BankStandard;
PlayerSetup := @MSI_SetupWoodcutting;

Defaults.Trees := [TREE_YEW_NEW];

with PathInfo do
begin
Name := 'LOC_CB_BANK to LOC_CB_YEWS';
StartLoc := LOC_CB_BANK;
EndLoc := LOC_CB_YEWS;

SPSPath := [
TPointArray([Point(3053, 2870), Point(2853, 2912)])];


SPSAreas := [
TStringArray(['7_7'])
];
end;
end;


Any help would be much appreciated
Luke.

PatDuffy

2012-03-02 15:12:49

Instead of using the pathmaker, create a script that uses SPS's GetMyPos function to more accurately obtain points.

This is the one I use(for MSI scripting)
program SPSFinder;

{$define SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}

procedure MainLoop;
begin
repeat
writeln(toStr(SPS_GetMyPos));
Wait(1000);
until false;
end;

begin

SetUpSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['9_7','9_8']);
SPS_Continue := True;
MainLoop;
end.

Just change the areas by getting them from the PathMaker tool, since the areas are correct.

lmcdonald

2012-03-02 17:09:19

Nice 1 Bud i'll have a try with it tomorrow.