VastlySuperior
2012-09-13 12:06:20
Hi
I have this problem that when I call SPS Setup from the following code it does not want to execute. I need to call it from this location as I need to walk over different parts from Runescape.
Here is the code and how I call it
It Retrieves the paths information from this procedure, The problem might also be with the string case selection as I get no debug information from that case. Am I using the string case in the wrong way?
I use it Like This:
But when I do the SPSSetup from The Declare Players section it works fine, the same code from above except I take out the SPS Setup from that procedure.
I need some help here to get this to work. I don`t know why it would not do the SPS Setup from that procedure, but from the declare players it works fine
I have this problem that when I call SPS Setup from the following code it does not want to execute. I need to call it from this location as I need to walk over different parts from Runescape.
Here is the code and how I call it
procedure SelectArea(Choice:Integer);
Begin
Case Choice of
0: Begin // Rimmington Area Coordinates
Info := 'Selecting Rimmington For Mining Operations';
MLocation := 'Rimmington';
ArBoxLH := Point(98, 393);
ArBoxRL := Point(160, 447);
MLocBoxLH := Point(73, 152);
MLocBoxRL := Point(164, 234);
GateRoomLH := Point(260, 260);
GateRoomRL := Point(300, 300);
DBoxLH := Point(382, 186);
DBoxRL := Point(427, 210);
If Debug then
WriteLn('Setting SPS Map Which Should Be Used');
SPSMap := ['rimmington'];
If Debug then
WriteLn('SPS Custom Map Name = ' + ToStr(SPSMap));
SPS_Setup(RUNESCAPE_OTHER,['rimmington']);
If Debug then
WriteLn('SPS Setup Now Done');
If Debug then
WriteLn('Selecting Rimminton Area For Mining operation');
End;
End
End;It Retrieves the paths information from this procedure, The problem might also be with the string case selection as I get no debug information from that case. Am I using the string case in the wrong way?
Procedure UniversalWalker(Choice:Integer;Walk:String);
Begin
Case Choice of
0: Begin // Rimmington Area Coordinates
If Debug then
WriteLn('Selecting Rimminton Area For Mining operation');
Case Walk of
'arrival': Begin
Info := 'Arriving At Port Sarim Gate Room, Walking To Rimmington Mine';
If Debug then
WriteLn('Selecting Rimminton Mining Path');
Path := [Point(277, 287), Point(222, 267), Point(169, 248), Point(115, 247), Point(122, 192)];
DTMArea := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
DTMTarget := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
DTMWalk := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
end;
'depbox': Begin
Info := 'Walking To Port Sarim Deposito Box';
If Debug then
WriteLn('Selecting Port Sarim Deposito Box Path');
Path := [Point(286, 277), Point(332, 274), Point(331, 218), Point(378, 205), Point(407, 205)];
If Debug then
WriteLn('Comming From Gate Room, On Our Way To The Deposito Box');
end;
'mining': Begin
Info := 'Walking From Port Sarim Gate Room To Rimmington Mining Area';
If Debug then
WriteLn('Selecting Rimminton Mining Path');
Path := [Point(277, 287), Point(222, 267), Point(169, 248), Point(115, 247), Point(122, 192)];
DTMArea := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
DTMTarget := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
DTMWalk := '80:80:5:5:7:74:105:5:7:82:100:5:7:95:104:5:7:112:83:5:7:69:71:4:130:38:130:130:27:130:27:38';
If Debug then
WriteLn('Walking From Port Sarim Gate Room To Rimmington Mining Area');
end;
End;
End;
End;I use it Like This:
MarkTime(FailSafeTime);
If not(InArea(MLocBoxLH,MLocBoxRL))then
Begin
SPS_WalkPath(Path);
While not(InArea(MLocBoxLH,MLocBoxRL)) do
Begin
Antiban;
Wait(1000);
If TimeFromMark(FailsafeTime) > 50000 then
Begin
Break;
End;
End;
End; But when I do the SPSSetup from The Declare Players section it works fine, the same code from above except I take out the SPS Setup from that procedure.
I need some help here to get this to work. I don`t know why it would not do the SPS Setup from that procedure, but from the declare players it works fine
