SRL Archive - RS3 Script Requests

Edge TPA walking.


Laimonas171

2012-12-05 05:43:55

Hey someone can make Edgevile flawless tpa walking (bank > furnace and furnace >bank), i have made one with SPS + RadialWalk But sometimes it goes too far to east.. (with no radial walk much more happens that :D).

DannyRS

2012-12-05 05:54:43

Because edge sometimes has alot of people, all functions like SPS and DTM have problems in rare cases, what i think is best would be checking for a very small DTM of the grey furnace room color on the MM and clicking there, then after smelting, you could just click the same spot on the MM, Coz theres only 2-3 possible spots you could be standing to smelt,

I was going to do this later today for my cball maker, i'll let you know how it goes if you like :P

Laimonas171

2012-12-05 06:50:56

From: DannyRS
Because edge sometimes has alot of people, all functions like SPS and DTM have problems in rare cases, what i think is best would be checking for a very small DTM of the grey furnace room color on the MM and clicking there, then after smelting, you could just click the same spot on the MM, Coz theres only 2-3 possible spots you could be standing to smelt,

I was going to do this later today for my cball maker, i'll let you know how it goes if you like :P


Yeah, but I have tried various options with sps, though.. I included radialWalk, works a bit better but still not 100% safe

masterBB

2012-12-05 06:52:38

combine dtm with radial walk with regular color finding -> winning

NKN

2012-12-05 06:53:49

I use DDTM walking for places where it might be inaccurate.
You could also just make your own SPS map.

P1ng

2012-12-05 06:55:05

The bank room and the furnace room both have grey floors but they both have slightly different grey floors (in the MM). It should be fairly easy to make a TPA walk between the two. I'll give it a crack now

Laimonas171

2012-12-05 06:55:47

From: masterBB
combine dtm with radial walk with regular color finding -> winning

I will try to do something like that probably

From: NKN
I use DDTM walking for places where it might be inaccurate.
You could also just make your own SPS map.


I have made my own sps map :)

P1ng

2012-12-05 07:34:41

function Walk2Bank: Boolean;
var
P: TPoint;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
if FindColorsTolerance(TPA, 4807270, MMx1, MMy1, MMx2, MMy2, 5) then //may need to alter colour and tolerance
begin
FilterPointsDist(TPA, 0, 70, MMCx, MMCy);
SortTPAFrom(TPA, Point(MMCx, MMy2));
ATPA := TPAToATPAEx(TPA, 25, 25);

if Length(ATPA) < 1 then
begin
WriteLn('0 ATPAs');
Exit;
end;

P := MiddleTPA(ATPA[0]);
Result := rs_OnMinimap(P.x, P.y);

if Result then
begin
Mouse(P.x, P.y, RandomRange(-2, 2), RandomRange(-2, 2), mouse_Left);

WaitFunc(@IsMoving, 10, RandomRange(1200, 1800));

while IsMoving do
Wait(5);
end;
end;
end;

Check the colour and tolerance because I didn't do extensive logging in and out to get it, but with the appropriate colours that should work for the bank and you could do the same but edit the sort point, tolerance and colour for the furnace

Shatterhand

2012-12-15 17:50:12

I found a great way to walk near edgeville. Its an easy DTM, great pixels: bushes. People cant stand on them.
So for the main point of the DTM, you choose the destination X, with a tolerance of 500 (dont care). You will need 3 more points, its shown on the picture:
http://i.imgur.com/zzFe0.png
Those two pixels on the bush like never change. And people cant stand on them, cover them. The third pixel on the water can have high tolerance (like 50).
Theres a very low chance of not finding these points. Although there is a very effective way to correct it. Just reset the camera until it finds the DTM.
CompassMovement(-40,40,false);
ClickNorth(SRL_ANGLE_HIGH);

DannyRS

2012-12-15 18:40:54

Those bushes work well, but if you rotate camera at furnace or the bank, you can see the other, so you dont actually ever need to use the MM other than a failsafe