Emarian
2013-03-28 13:38:09
Alright, this is my first script. This is based off of PwnDemChickens, with permission by the original author, except it kills cows.
I'm going to come back and expand this thread later, but I've been working on this for awhile, my head hurts, and I'm ready to go blaze right now. I'll see you guys tonight.
Changelog:
0.1: Barely works but is working
0.2: Made camera go all the way up when logged in and a few insignificant changes
*UPDATE*
Will clean up the code tomorrow morning, break down Clickcow into several different procedures and a few other changes. Should I increase the tolerance of the FindObj?
*UPDATE2*
Done. Just need to resolve the below antirandoms error.
Features:
Kills cows
Autologin
2 colors for cow detection
Minibreaker
Not yet added features:
Antiban
Random support
Proggy
Pick up hides (working but temporarily removed until cow detection and clicking is perfect)
Banking hides
I really need some help with the cow detection and clicking, so any suggestions/comments or constructive changes to the script would be MUCH MUCH appreciated. I would also really appreciate it if anyone wants to give suggestions as to how to decrease ban chances. How can I improve the anti-ban that is somewhat implemented?
Any help at all is great. You're not going to hurt my feelings - I know I suck right now.
I'm going to come back and expand this thread later, but I've been working on this for awhile, my head hurts, and I'm ready to go blaze right now. I'll see you guys tonight.
Changelog:
0.1: Barely works but is working
0.2: Made camera go all the way up when logged in and a few insignificant changes
*UPDATE*
Will clean up the code tomorrow morning, break down Clickcow into several different procedures and a few other changes. Should I increase the tolerance of the FindObj?
*UPDATE2*
Done. Just need to resolve the below antirandoms error.
Features:
Kills cows
Autologin
2 colors for cow detection
Minibreaker
Not yet added features:
Antiban
Random support
Proggy
Pick up hides (working but temporarily removed until cow detection and clicking is perfect)
Banking hides
I really need some help with the cow detection and clicking, so any suggestions/comments or constructive changes to the script would be MUCH MUCH appreciated. I would also really appreciate it if anyone wants to give suggestions as to how to decrease ban chances. How can I improve the anti-ban that is somewhat implemented?
Any help at all is great. You're not going to hurt my feelings - I know I suck right now.
program PwnDemCows;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR/SRL/Misc/Debug.Simba}
const
cowCOLOR1 = 4938351;
cowCOLOR2 = 1188393;
greenLifeBar = 65280;
var
x, y, x1, y1: Integer;
//Declare your username and password
procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '';
Pass := '';
Active := True;
end;
end;
//More human like movement
Procedure HumanMove;
Begin
case random(200) of
1..160: MMouse(RandomRange(X - 7, X + 7), RandomRange(y - 7, y + 7), 0, 0);
161..190: MMouse(RandomRange(X - 9, X + 9), RandomRange(y - 9, y + 9), 0, 0);
191..200: MMouse(RandomRange(X - 12, X + 12), RandomRange(y - 12, y + 12), 0, 0);
End;
End;
procedure Antiban;
begin
case Random(100) of
1: HoverSkill('magic', False);
2: HoverSkill('random', False);
3: Boredhuman;
4: Wait(2500 + random(4500));
5: HoverSkill('smithing', False);
6: PickUpMouse;
7: RandomMovement;
8: RandomRClick;
end;
end;
procedure MiniBreaker;
begin
case Random(160) of
1: Wait(40000 + random(7400));
2: Wait(25500 + random(8550));
3: Wait(60040 + random(6759));
4: Wait(20400 + random(2549));
end;
end;
procedure ClickCow;
begin
if (not LoggedIn) then
begin
LogInPlayer;
MakeCompass('N');
KeyDown(VK_UP);
Wait(RandomRange(1500, 2500));
KeyUp(VK_UP);
end;
repeat
repeat
wait(1200);
until (FindColor(x, y, greenLifeBar, 206, 127, 298, 196) = false);
if FindObjCustom(x, y, ['Cow'], [cowCOLOR1, cowCOLOR2], 25) then
begin
x := x - 20;
y := y - 20;
if x < 0 then
begin
x := 0;
end;
if y < 0 then
begin
y := 0;
end;
end
else
begin
KeyDown(VK_RIGHT);
repeat
Wait(RandomRange(50, 100));
until (FindObjCustom(x, y, ['Cow'], [cowCOLOR1, cowCOLOR2], 5))
KeyUp(VK_RIGHT);
end;
if FindColor(x1, y1, greenLifeBar, x, y, x + 40, y + 40) = false then
begin
x := x + 20;
y := y + 20;
MMouse(x, y, 3, 3);
Writeln('Detected a cow, lets kill it!');
ClickMouse2(mouse_left);
end
else
begin
case Random(2) of
0: Antiban();
1: MiniBreaker();
end;
end;
wait(2000);
until (false)
end;
begin
ClearDebug;
SetupSRL;
DeclarePlayer;
ActivateClient;
Wait(2000);
ClickCow;
end.