SRL Archive - SRL Archives

MapWalk.scar Tweaked the MouseMM


Gu3st...

2009-08-31 21:13:16

procedure MouseMM(x, y, randX, randY: Integer; Click : Boolean);
var
p: TPoint;
begin
if not rs_OnMinimap(x, y) then
exit;

p := RotatePoint(Point(x, y), rs_GetCompassAngleRadians, MMCX, MMCY);
MouseBox(p.x, p.y, p.x+randX, p.y+randY, (Integer(Not Click)*2)+1);
end;
Why? When humans walk they usually move the mouse to the next spot they know they will be clicking, therfor MMouseMM();

Naum

2009-08-31 21:39:12

Maybe you could merge the two?

procedure MouseMM(x, y, randX, randY: Integer; Click : Boolean);
var
p: TPoint;
begin
if not rs_OnMinimap(x, y) then
exit;

p := RotatePoint(Point(x, y), rs_GetCompassAngleRadians, MMCX, MMCY);
MouseBox(p.x, p.y, p.x+randX, p.y+randY, (Integer(Not Click)*2)+1);
end;

Gu3st...

2009-08-31 22:02:32

From: NaumanAkhlaQ
Maybe you could merge the two?

Code:
[LEFT]procedure MouseMM(x, y, randX, randY: Integer; Click : Boolean);
var
p: TPoint;
begin
if not rs_OnMinimap(x, y) then
exit;

p := RotatePoint(Point(x, y), rs_GetCompassAngleRadians, MMCX, MMCY);
MouseBox(p.x, p.y, p.x+randX, p.y+randY, (Integer(Not Click)*2)+1);
end;
[/LEFT]

It would break a lot of scripts

Naum

2009-08-31 22:38:01

From: Zyt3x
It would break a lot of scripts


Only scripts which use MouseMM, which is AFIAK not that many.

Gu3st...

2009-08-31 22:39:51

From: NaumanAkhlaQ
Only scripts which use MouseMM, which is AFIAK not that many.

Hmm.. mmmkay.. Merge then :)

Sir R. M8gic1an

2009-09-08 15:20:15

Don't go breaking my AK Smelter :(

But honestly, what do you expect to do with this?
MMouseMM(…);
wait(50+random(50));
MouseMM(…)

?

Cus there's no uptext checking etc. And if you're walking, you don't want to move it too soon because the MM will change.

Also, MouseMM was designed to be used as a failsafe, not as a bullet proof walking method. Therefore i don't think people should really be incentivated to MMouseMM then wait until FFlag then MouseMM.

If there is a change i'd do to MouseMM is making it use WallAngle (i believe it's in wizzyplugin?) and if it does not find the WallAngle then use CompassAngle, as WallAngle would be more accurate.

~RM

Gu3st...

2009-09-08 16:26:05

From: Rasta Magician
But honestly, what do you expect to do with this?

"When humans walk they usually move the mouse to the next spot they know they will be clicking, therefore MMouseMM();" ;)

I use this in my walking-procedures alot

Sir R. M8gic1an

2009-09-08 16:50:23

/me points to the rest of the post, especially the failsafe part…

~RM

Gu3st...

2009-09-08 16:55:29

From: Rasta Magician
/me points to the rest of the post, especially the failsafe part…

~RM
When I use the procedure I do like this:
MMouseMM();
while not FindSymbol() do // or TileOnMM / IsMoving and so on..
Wait(100); //Of course I add a timer here so that it wouldn't be an infinite loop
Mouse(); // to the Tile or Symbol or roadcolor or whatever suits you.
And to be honest, I did not understand the rest of that post so pardon me if the answer isn't good enough

mixster

2009-09-08 17:31:43

If you are still moving, then how do you know where to click next?
You could safely do MouseMM, then use one of the Flag Methods to get within a certain distance then reclick, which is what I do as a human rather than move, wait then click in the same place :)

Gu3st...

2009-09-08 18:11:11

From: mixster
If you are still moving, then how do you know where to click next?

You do a check for symbols / colours / tileonmm / ddtms :)
That's what I do

mixster

2009-09-08 18:37:42

You said as a human though and if you're still moving then they move too, so it would make colour/symbol/DTM finding unreliable. With reflection, even by the time you move the mouse as it comes up on the minimap it would probably be time to click. Still seems unhuman to do so quite like that though

Gu3st...

2009-09-08 19:10:37

From: mixster
You said as a human though and if you're still moving then they move too, so it would make colour/symbol/DTM finding unreliable. With reflection, even by the time you move the mouse as it comes up on the minimap it would probably be time to click. Still seems unhuman to do so quite like that though
I do not think you get my point or I haven't explained well enough; First you do the MMouseMM to a coord on the minimap that you have entered, lets say 600, 60 then you do
MMouseMM(600, 60);
then you do something like
while not TileOnMM(Point(3200, 3200)) do //or whatever method you are using :P
begin
if Random(10) = 0 then
WalkingAntiBan;
Wait(100);
end;
and then you do
MouseMM(Tilex, Tiley, True);

And if you have are walking in runescape (not running) then it would take quite some time before that ddtm/ tile/ colour came up.