SRL Archive - OSR Help

Walking On Entrana


mafia miles

2013-04-07 00:58:12

Is radialwalking a vialble method of walking on Entrana? Ive been using sps and I keep running to the wrong places. Is DDTM a better option than the other 2?

dzpliu

2013-04-07 01:06:55

are you using the correct coordinates? did you use the tools for make sps paths? SPS is alot easier.

mafia miles

2013-04-07 01:15:17

I dont know if im using the correct coordiantes. Im pulling up the runescape_surface map. It works to walk elsewhere but on entrana i keep getting weird paths. What SPS genorater do u recommend? can I just pull the sps cords from a get my position code? maybe print in the debug box?

Sjoe

2013-04-07 01:17:30

Make a custom map of your path, it shouldn't be that big . And it's way more accurate.
Get your buildings alligned perfectly straigh(north) though!

mafia miles

2013-04-07 01:20:18

Thanks Joe for all the help! How can I get the coing SPS_Setup(FIndCustomMap?)
And Can I just use the 3_10 map found in the runescape surfaces folder or should i screen shot runescapesurface map zoomed in or where should my base map be from? I cant mix and match minimaps :z

dzpliu

2013-04-07 01:28:16

runescape_surface use 7_7, and 8_7.
SPS_Setup(RUNESCAPE_SURFACE, ['7_7','8_7']);

mafia miles

2013-04-07 01:39:31

Ok Im using caps in my SPS SETUP(RUNESCAPE_SURFACE) part. Still idles after starting script.


Procedure GoAlter;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['7_7','8_7','7_8','8_8']);
myPath := [Point(3024, 3180), Point(3069, 3225), Point(3118, 3256), Point(3188, 3252), Point(3228, 3206), Point(3222, 3148), Point(3226, 3080), Point(3094, 3006), Point(2936, 3177), Point(3040, 3326), Point(3267, 3315), Point(3290, 3026)];
SPS_WalkPath(mypath);
end;

dzpliu

2013-04-07 01:48:03

From: mafia miles
Ok Im using caps in my SPS SETUP(RUNESCAPE_SURFACE) part. Still idles after starting script.


Procedure GoAlter;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['7_7','8_7','7_8','8_8']);
myPath := [Point(3024, 3180), Point(3069, 3225), Point(3118, 3256), Point(3188, 3252), Point(3228, 3206), Point(3222, 3148), Point(3226, 3080), Point(3094, 3006), Point(2936, 3177), Point(3040, 3326), Point(3267, 3315), Point(3290, 3026)];
SPS_WalkPath(mypath);
end;


if you put too many maps in one procedure, it will lag alot. 7_7 is actually enough.

mafia miles

2013-04-07 01:55:15

Now its just running around the building and stopping. I like your idea though
Heres My coding:
program Runtoalter3;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR/SRL/Misc/Debug.Simba}
{$I SPS/sps-osr.simba}


var
mypath:TPointArray;
X, Y, pX, pY:Integer;
walkalt:TPointArray;
A:Extended;

const
AccountLogin = '';
AccountPass = '';
CharacterName = '';
version = '1.1';



procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := AccountLogin;
Players[0].Pass := AccountPass;
Players[0].Nick := CharacterName; //Important for antirandoms
Players[0].Active := True;
end;





function InArea(Pt1, Pt2: TPoint): Boolean;
var
Loc: TPoint;
Box: TBox;
begin
Loc := SPS_GetMyPos;
Box := PointToBox(Pt1, Pt2);
if (PointInBox(Loc, Box)) then
Result := true else Result := false;
end;

Procedure GoAlter;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['7_7']);
walkalt := [Point(3024, 3180), Point(3069, 3225), Point(3118, 3256), Point(3188, 3252), Point(3228, 3206), Point(3222, 3148), Point(3226, 3080), Point(3094, 3006), Point(2936, 3177), Point(3040, 3326), Point(3267, 3315), Point(3290, 3026)];
SPS_WalkPath(walkalt);
end;

begin

SetupSRL;
Cleardebug;
activateclient;
DeclarePlayer;
LoginPlayer;
wait(500);
repeat
begin
GoAlter;
end;
until(false)
end.

Sjoe

2013-04-07 02:31:27

Hey it's Sjoe not Joe (can't stand people calling me Joe)

And by custom map I mean this tutorial here: http://villavu.com/forum/showthread.php?t=84360

The maps from runescape_surface will probably not work, since the colors are way different.
(U can test it out first though, to be sure)

dzpliu

2013-04-07 02:35:01

From: Sjoekeloe
Hey it's Sjoe not Joe (can't stand people calling me Joe)

And by custom map I mean this tutorial here: http://villavu.com/forum/showthread.php?t=84360

The maps from runescape_surface will probably not work, since the colors are way different.
(U can test it out first though, to be sure)


why does the color way different? i have used runescape_surface maps in my other scripts, they work fine. just asking.

Sjoe

2013-04-07 02:36:50

From: dzpliu
why does the color way different? i have used runescape_surface maps in my other scripts, they work fine. just asking.


Guess they work better on some places, did not really work for me.

Compare the minimap colors with the rs surface maps, there's a huge different :p

dzpliu

2013-04-07 02:38:43

From: Sjoekeloe
Guess they work better on some places, did not really work for me.

Compare the minimap colors with the rs surface maps, there's a huge different :p

hey your right! but its not really different, its just the minimap is more detailed. i guess its time to use custom maps for better accuracy…it loads faster too right?

Sjoe

2013-04-07 02:59:36

From: dzpliu
hey your right! but its not really different, its just the minimap is more detailed. i guess its time to use custom maps for better accuracy…it loads faster too right?


Load time should be the same, but they are the most accurate :)

litoris

2013-04-07 03:16:49

SPS does work there, but you need to edit out that giant "Entrana" text with some green.

dzpliu

2013-04-07 03:19:10

From: litoris
SPS does work there, but you need to edit out that giant "Entrana" text with some green.


the one provided in SPS has no text. :D

mafia miles

2013-04-07 10:50:56

Anyone care to help me make a custom map for entrana for the whole of villavu? Im trying to make a minimap merge from the minimap photoshop tut and am hhaving problems pasting into a new layer with gimp.

dzpliu

2013-04-07 10:52:13

From: mafia miles
Anyone care to help me make a custom map for entrana for the whole of villavu? Im trying to make a minimap merge from the minimap photoshop tut and am hhaving problems pasting into a new layer with gimp.


save ur current work on photoshop as PSD and send it to me

mafia miles

2013-04-07 10:54:00

mind taking a png file?

dzpliu

2013-04-07 10:54:57

From: mafia miles
mind taking a png file?


i dont play 07 so i cant do the minimap part. if you dont have all the minimaps saved in photoshop, i cant help you :c

mafia miles

2013-04-07 10:55:41

Ill do the minimap part. can u just import a png file?

dzpliu

2013-04-07 10:56:49

From: mafia miles
mind taking a png file?


or you could take screenshots and save inside photoshop as PSD and send to me. you do know the basic idea right?
i would need like at least 10 screenshots of minimap with different positions

dzpliu

2013-04-07 10:57:51

From: mafia miles
Ill do the minimap part. can u just import a png file?


ok if you cant save as psd, save as jpeg/png is fine, but i would need them separately. like 10files

Vusn

2013-04-07 11:40:22

Here is the map that I have been using. It still has the text on it, but I haven't had any issues with it.

dzpliu

2013-04-07 11:46:40

From: Vusn
Here is the map that I have been using. It still has the text on it, but I haven't had any issues with it.


he wants a custom map using minimaps :P

mafia miles

2013-04-07 12:04:14

Had problems making my own map. Any tuts with gimp for making your own?
@dzpliu Heres my minimaps:[ATTACH=CONFIG]20579[/ATTACH]
If you want them 1 by one just let me know.

mafia miles

2013-04-09 08:02:27

New coding and new minimap placed in other07 folder. renamed other runescape surfaces to runescape_other07.
Its running a bit and then returning (-1,-1) for position. Is my map not dead north? colors off? Ideas?

program RunToAlter5;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SPS/sps-osr.simba}



var
mypath:TPointArray;
DegreeFix: TIntegerArray;
FindPoint: Boolean;
z:integer;


const
AccountLogin = '';
AccountPass = '';
CharacterName = '';
version = '1.1';


//Declare your username and password
procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := AccountLogin;
Players[0].Pass := AccountPass;
Players[0].Nick := CharacterName; //Important for antirandoms
Players[0].Active := True;
end;


procedure paths;
begin
SPS_Setup(runescape_other, ['16_14']);
myPath := [Point(326, 353), Point(352, 383), Point(392, 389), Point(392, 423), Point(420, 427), Point(488, 418), Point(524, 408), Point(529, 371), Point(522, 342), Point(539, 275)];
end;




procedure Mainland1;
begin

SPS_Setup(runescape_other, ['16_14']);



Wait(600);
(SPS_Blindwalk(Point(6712, 5940))); //

Wait(600);
(SPS_Blindwalk(Point(6745, 5988))); //

Wait(600);
(SPS_Blindwalk(Point(6793, 6015))); //

Wait(600);
(SPS_Blindwalk(Point(6616, 5396))); //

Wait(600);
(SPS_Blindwalk(Point(6847, 6033))); //

Wait(600);
(SPS_Blindwalk(Point(6922, 6018))); //

Wait(600);
(SPS_Blindwalk(Point(6928, 5955))); //

Wait(600);
(SPS_Blindwalk(Point(6934, 5895))); //

Wait(600);
(SPS_Blindwalk(Point(6943, 5862))); //
end;


begin

SetupSRL;
activateclient;
DeclarePlayer;
LoginPlayer;
SMART_FIXSPEED := TRUE;
SPS_AnyAngle := true; //I want to use this map with a different angle, so I set it true
SPS_Debug := True;
wait(500);
MakeCompass('E');
repeat



SPS_Setup(runescape_other, ['16_14']);


SPS_GetMyPos;



mainland1;


until(false)
end.
[ATTACH=CONFIG]20588[/ATTACH]

dzpliu

2013-04-09 08:06:25

using custom maps has different coordinates from the vanilla ones.
coordinates >1000 = something wrong.

mafia miles

2013-04-09 08:17:01

Well I get cordinates from 100s to 300s but when i call sps get my pos there always in the thousandsa or -1 -1. any ideas? should I resize the map no black and add water color?

dzpliu

2013-04-09 09:10:30

From: mafia miles
Well I get cordinates from 100s to 300s but when i call sps get my pos there always in the thousandsa or -1 -1. any ideas? should I resize the map no black and add water color?


im having problems with custom maps too, what i did is using POS:=SPS_GetMyPos; and Writeln('POS coordinates: '+ToStr(POS)); and manually find my coordinates

mafia miles

2013-04-09 15:04:50

MyLoc:=SPS_GetMyPos;
Writeln('POS coordinates: '+ToStr(MyLoc));

Does ^ work? still gives me -1 -1 :(