SRL Archive - OSR Help

one day I will learn,


blink

2012-04-15 20:53:02

so I go to test my script after re-installing Simba and I get this

Error: Exception: Access violation at line 305
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 4, SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 6]


I tried figuring it out on my own but I need help.

EDIT: I FIGURED OUT THE ISSUE, i FORGOT A COMMAND WHILE SETTING UP SPS

nickrules

2012-04-15 21:14:25

What line did it highlight?


also, make an antiban function instead of this
          MakeCompass('E');
Wait(5100+ random(1010));
MakeCompass('W');
SetAngle(SRL_ANGLE_HIGH);
Wait(4007+ random(1003));
SetAngle(SRL_ANGLE_LOW);
MakeCompass('N');
Wait(3200+ random(2150));

blink

2012-04-15 21:43:01

it didnt highlight anything from my script… it opened a new tab labeled "sps" and highlighted line 305 :

FoundMatches := SPS_FindMapInMap(P.x, P.y, SPS_AreaMaps, SmallMap, SPS_Tolerance);

(lines 305-324)

fretje12

2012-04-15 22:34:06

but it is not this day !

blink

2012-04-16 09:06:32

From: fretje12
but it is not this day !


"But today will not be the day. " Would be more appropriate grammar, Unless of course you are 12, then I apologize.

Secondly, nice troll.

Thirdly, you are mistaken because I figured it out on my own.

Sir Ducksworthy

2012-04-16 10:14:58

Lol blink.. don't feed the Troller's..

young richard

2012-04-17 00:46:23

how is this fixed? Im having the same problem

blink

2012-04-17 14:43:05

From: young richard
how is this fixed? Im having the same problem



basically my script looked like this

I originally forgot to add,

SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_9']);

thats how i solved it,

Scripting for me is a lot of trial and error.



procedure WalkToBank;

var
ToBank,ToTrees:TPointArray;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms;

SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_9']);

SPS_Areas := ['10_9'];
ToBank:= [Point(4273, 3657), Point(4273, 3657),
Point(4216, 3640), Point(4190, 3665)];
SPS_WalkPath(ToBank);
Wait(5075+random(953));

SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_9']);

SPS_Areas := ['10_9'];
ToTrees := [Point(4190, 3665), Point(4191, 3645),
Point(4232, 3643), Point(4269, 3666)];

SPS_WalkPath(ToTrees);

Wait(1354+random(254));
FindNormalRandoms;
end;

Anyways I upgraded to DTM walking