SRL Archive - OSR Help

Custom SPS Map


Sin

2012-03-17 18:15:48

My Map -
Or do I have to have the FULL map, with ALL of the places recorded? :s

procedure WalkInsideFrosts;
var
myPath:TPointArray;
begin
myPath := [Point(242, 356), Point(247, 351), Point(256, 350), Point(265, 356),
Point(271, 363), Point(278, 365), Point(285, 365), Point(294, 365),
Point(301, 370)];
SPS_Setup(runescape_surface,['0_0Frosts']);
SPS_WalkPath(myPath);

end

Soz, i'm kinda clueless about SPS..

Kyle Undefined

2012-03-17 18:38:50

The map has to be 500x500 without any player/npc/monster dots on them. If you just need that area, then that map would work if you remove the dots.

Nebula

2012-03-17 18:45:53

You don't need the entire area, just the part where you'll be walking so what you have should be fine. It has to be 500x500. Remove the yellow/white dots with this script I made a while back for personal use:


program colormap;
{$i srl/srl.simba}
var
x, y: Integer;
begin
SetupSRL;
ActivateClient;
repeat
if (FindColorTolerance(x, y, 387575, 139, 95, 230, 167, 20))
then
Mouse(x, y, 0, 0, true);
until((FindColorTolerance(x, y, 387575, 44, 54, 83, 86, 20)) = false);
end.

Basically open the map in paint, use the simba color picking tool to get the color of the point you want to delete, put that in find color tolerance. Get the coordinates of the map and put them in as x1y1x2y2. use the color picking tool in paint and choose the color you want to replace the yellow/white dots with (in this case the lightblue snow color). start with a tolerance of like 20 and increase it until all of the color is replaced.

Sin

2012-03-17 18:59:27

You're a genius^
I change my vote to a yes on your app.

Olly

2012-03-17 21:29:49

Frosties I see :P Good luck

Nebula

2012-03-17 21:46:22

Oh I didn't realize this was going to be a frost dragon script, I thought it was going to be a Ice warrior killing script, I didn't see the procedure name :p

Sorry for not thinking of this sooner, but you don't have to manually make the map like that. This dungeon is showed on the map so you can just open it up and make the map by setting the zoom to 100%, and choosing the option to remove the labels like so: . Although you might want to remove those yellow boxes.

but if you don't feel like doing that either you can find the folder that is somewhere in the SPS section that has all the dungeon maps.

Edit: found it. use the attached image (click on it until it becomes its own separate page, then right click and make sure to save it as a .png so the quality isn't distorted.)

Sin

2012-03-17 22:05:08

That's not part of the Frost Dragon Cavern, btw gratz on Member! :)

Mat

2012-03-17 22:09:01

Sin, what are you trying to do as make a SPS map to walk? I found it to create most of the map and create a separate area's in SPS.
Like:

Frosts = 5;

Frosts:
with SPS_Surface do
begin
Name := 'Frosts';
ImagePath := SPS_IMG_PATH + 'Frosts\';
FactorX := 400;
FactorY := 400;
TileOffsetX := -1;
TileOffSetY := -1;
Tolerance := 0.5;
end;
<3

Sin

2012-03-17 22:11:16

I'll try that, busy botting atmo xD

Nebula

2012-03-17 22:14:51

From: Sin
That's not part of the Frost Dragon Cavern

Oh lol. Didn't realize.

From: Sin
btw gratz on Member! :)

Thanks


btw if you use the script I posted to remove the dots, don't forget to to remove the black on the bottom of each dot. Easiest way to do that is to [in paint] go to view->zoom. Otherwise it can be a pain to have to change around the box in FindColorTolerance due to the black area's in the cavern.

Sin

2012-03-17 22:16:54

Yeah I figured that out, heres my new map.
SPS isn't my strong suit, I might just have to rely on DTM walking..


Sin

2012-03-17 22:37:03

Alrighty Mat, I tried your solution, this is what came up -

[Error] C:\Simba\Includes\sps/sps.simba(99:5): Unknown identifier 'FROSTS' at line 98


FROSTS:
with SPS_Surface do
begin
Name := 'Frosts';
ImagePath := SPS_IMG_PATH + 'Frosts\';
FactorX := 400;
FactorY := 400;
TileOffsetX := -1;
TileOffSetY := -1;
Tolerance := 0.8;
end;


procedure WalkInsideFrosts;
var
myPath:TPointArray;
begin
myPath := [Point(242, 356), Point(247, 351), Point(256, 350), Point(265, 356),
Point(271, 363), Point(278, 365), Point(285, 365), Point(294, 365),
Point(301, 370)];
SPS_Setup(Frosts,['0_0']);
SPS_WalkPath(myPath);
end;

Nebula

2012-03-17 22:44:29

Make sure that you put frosts up here

Sin

2012-03-17 22:46:50

That explains it .___________.

shstiger2009

2012-03-17 23:00:21

From: Sin
That explains it .___________.


I'm just happy I knew why it said Unknown Identifier before you did. :) Lol. Btw, check your PM's.

Sin

2012-03-17 23:02:05

It worked!
Thanks Mat + Nebs <3