SRL Archive - Help

MMtoMS?


Mat

2012-01-07 15:07:47

  SPS_Setup(RUNESCAPE_SURFACE, ['4_12','5_12','4_13','4_11','5_11','5_13','3_12']);
Centre := SPS_GetMyPos;
Writeln(Centre);
MMtoMS(Centre);
How do I make the bot Click On MMtoMS?
Any ideas?
Mat

JuKKa

2012-01-07 15:11:33

There should be a function for that somewhere, i know i've seen it. tried search?

Mat

2012-01-07 15:13:03

I've tried and Haven't found anything that can help me :/

Brandon

2012-01-07 15:16:33


Function TileToMS(Tile: TPoint): TPoint;
begin
Result:= MMToMS(SPS_PosToMM(Tile));
end;

var
Pos: TPoint;
begin
Pos:= TileToMS(SPS_GetMyPos);
MMouse(Pos.x, Pos.y, 0, 0);
end.

Coh3n

2012-01-07 15:22:34

That probably won't work very well. MMToMS isn't very accurate.

Mat

2012-01-07 15:31:59

Omg Thanks GGZZ <3
Mat

Daniel

2012-01-07 15:52:15

From: Coh3n
That probably won't work very well. MMToMS isn't very accurate.


I asked on IRC yesterday and apparently it is?

Mat

2012-01-07 15:58:30

Nope its not :P I'm trying to get it to click a Title Next to it, The Centre Pos. To Click the One Right of it, Sometimes it clicked it others it didn't :/
Owell
Mat

Brandon

2012-01-07 16:20:45

From: Aligndude
Nope its not :P I'm trying to get it to click a Title Next to it, The Centre Pos. To Click the One Right of it, Sometimes it clicked it others it didn't :/
Owell
Mat


That's actually due to SPS.. Not MMToMS.. As far as I know, MMToMS is very very accurate.. I've used it in a bandit AFK'er..

I've used it to pick up items.. One pixel off = 1 tile off.. the reason it's not so accurate for you atm is because all TPoints are (Int, Int).. when it really should be (extended, extended).. and that SPS needs fixing.. I'm willing to bet that when SPS is fixed, it will be sooooo accurate just like it was before.

If it was extended, you'd be able to click inbetween pixels, etc.. and it would actually be almost 100% accurate.

Coh3n

2012-01-07 18:40:19

From: Daniel
I asked on IRC yesterday and apparently it is?
My mistake then. Last I heard it was very inaccurate. That's awesome, though. When SPS2 is released it could be very, very useful.

Mat

2012-01-07 18:59:26

Sweet!!!!!
Can't wait for sps2 so I can really get it to work better:)
Mat