View Full Version : MMtoMS?
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
01-07-2012, 08:11 PM
There should be a function for that somewhere, i know i've seen it. tried search?
I've tried and Haven't found anything that can help me :/
Brandon
01-07-2012, 08:16 PM
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
01-07-2012, 08:22 PM
That probably won't work very well. MMToMS isn't very accurate.
Daniel
01-07-2012, 08:52 PM
That probably won't work very well. MMToMS isn't very accurate.
I asked on IRC yesterday and apparently it is?
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
01-07-2012, 09:20 PM
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
01-07-2012, 11:40 PM
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.
Sweet!!!!!
Can't wait for sps2 so I can really get it to work better:)
Mat
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.