Slither1
2012-01-17 13:37:15
my bot is right clicking all monsters in pest control before selecting attack from the list
any ideas on how to fix this?
any ideas on how to fix this?
2012-01-17 13:37:15
2012-01-17 13:41:02
2012-01-17 13:45:47
2012-01-17 13:50:53
2012-01-17 13:55:41
2012-01-17 13:57:25
From: Slither1
yeah i know, i've managed to get it working except for this constant right clicking
2012-01-17 14:04:27
From: okokokok
Post the whole script and ill edit it for you
2012-01-17 14:14:35
From: Slither1
my bot is right clicking all monsters in pest control before selecting attack from the list
any ideas on how to fix this?
2012-01-17 14:19:09
2012-01-17 14:21:52
From: Slither1
i'm happy to learn if anyone wishes to give me a push in the right direction. I managed to get it working with SRL5 but I got stuck on this because im new to simba
2012-01-17 14:22:01
From: PatDuffy
Awh, don't do that…leachers will never learn to script if we keep feeding them what they want.
I edited the pest control script last night to work, it took me 2 edits of lines.
2012-01-17 14:23:59
From: okokokok
He doesn't even know how to post the script
2012-01-17 14:34:43
From: Slither1
i know how to post the script but i would prefer to attempt to fix it myself instead of getting it fixed for me and not gaining anything from it
2012-01-17 14:40:15
begin
GetMousePos(StartX, StartY);
GMMouse(x, y, rx, ry);
GetMousePos(TargetX, TargetY);
if left then Button := MOUSE_LEFT
else Button := MOUSE_LEFT;
//else Button := MOUSE_RIGHT;
HoldMouse(TargetX, TargetY, Button);
Wait(25+Round(Gaussian(70, 2.3, True)));
if (Random(15) = 0) then
begin
2012-01-17 16:21:39
2012-01-17 16:34:51
2012-01-17 16:40:40
From: wantonman
post it ill help , that kid is being an asshole
2012-01-17 16:45:48
2012-01-17 16:50:49
2012-01-17 17:39:39
From: wantonman
I was not talking about you PATDUFFY!
2012-01-17 18:07:27
Mouse(x, y, 0, 0, false);
ChooseOption('YourMonsterName');
end;
Mouse(x, y, 0, 0, true); //the "false" has been changed to "true"
ChooseOption('YourMonsterName');
end;
2012-01-17 18:08:34
From: KeepBotting
Find the procedure that tells the bot to click on the monster, it should look something like this:
Mouse(x, y, 0, 0, false);
ChooseOption('YourMonsterName');
end;
Change that one "false" to "true" and it will only right-click when necessary.
example:
Mouse(x, y, 0, 0, true); //the "false" has been changed to "true"
ChooseOption('YourMonsterName');
end;
2012-01-17 18:15:24
From: Slither1
i know how to post the script but i would prefer to attempt to fix it myself instead of getting it fixed for me and not gaining anything from it
2012-01-17 18:16:42
From: Kyle UndefinedWow, I suck. So I just spent 3 hours learning how to script in SRL4?
That's for SRL 4, not SRL 5. SRL 5 is mouse_Right ;)
2012-01-17 18:17:26
From: KeepBotting
Wow, I suck. So I just spent 3 hours learning how to script in SRL4?
2012-01-17 18:18:43
2012-01-17 18:20:31
From: KeepBotting
Wow, I suck. So I just spent 3 hours learning how to script in SRL4?
2012-01-17 18:33:14
2012-01-17 18:34:41
From: wantonman
yeah if you learn how to script you learn how to script! yull be a mem in no time (*wink)
2012-01-17 19:24:58
procedure GMouse(x, y, rx, ry: Integer; left: Boolean);
var
StartX, StartY, TargetX, TargetY, Button: Integer;
DeltaX, DeltaY: Integer;
Neliojuuri, K: Extended;
begin
GetMousePos(StartX, StartY);
GMMouse(x, y, rx, ry);
GetMousePos(TargetX, TargetY);
if left then Button := MOUSE_LEFT
else Button := MOUSE_LEFT;
//else Button := MOUSE_RIGHT;
HoldMouse(TargetX, TargetY, Button);
Wait(25+Round(Gaussian(70, 2.3, True)));
if (Random(15) = 0) then
begin
DeltaX := TargetX-StartX;
DeltaY := TargetY-StartY;
Neliojuuri := Sqrt(DeltaY*DeltaY+DeltaX*DeltaX);
if (Neliojuuri = 0) then MoveMouse(TargetX-1+Random(3), TargetY-1+Random(3))
else begin
K := 1.5/Neliojuuri;
MoveMouse(TargetX+Round((K*DeltaX)), TargetY+Round((K*DeltaY)));
end;
end;
Wait(25+Round(Gaussian(70, 2.3, True)));
ReleaseMouse(TargetX, TargetY, Button);
end;
2012-01-17 23:57:50
From: PatDuffy
I edited the pest control script last night to work, it took me 2 edits of lines.
2012-01-18 16:18:59