Waltzing Mouse
2008-07-06 14:51:21
This is my first script… I hope you guys like it!
I tested it and it worked okay for me :)
{========================================================================]
[ PowerOak 0.1 Alpha ]
[========================================================================]
[ By Waltzing Mouse ]
[ ]
[ Edit lines 18 - 21. ]
[ ]
[ If you experience any problems, please feel free to visit ]
[ my thread on the SRL forums: ]
[ ]
[ SRL-Forums.com/forum/poweroak-t35050.html ]
[========================================================================}
program PowerCutterAlpha;
{.include srl/srl.scar}
{.include srl/srl/skill/WoodCutting.scar}
const
Username = ''; // Your username
Password = ''; // Your password
TreeColour = 1390382; // Colour of Oak Tree
LoadsWanted = 10; // Amount of loads you want PowerChopping
// DO NOT EDIT BELOW HERE
MainX = 379;
MainY = 172;
PasswordX = 321;
PasswordY = 328;
LoginX = 379;
LoginY = 367;
LogoutX = 753;
LogoutY = 11;
ClickX = 636;
ClickY = 377;
var x, y, LoadsDone : Integer;
procedure Login;
begin
writeLn('Logging in...');
Mouse(MainX, MainY, 1, 1, true);
Wait(1000 + Random(100));
ClickMouse(MainX, MainY, True);
Wait(500 + Random(100));
TypeSend(Username);
Wait(Random(1000));
TypeSend(Password);
Wait(1500 + Random(100));
Mouse(LoginX, LoginY, 1, 1, true);
Wait(1000 + Random(100));
ClickMouse(LoginX, LoginY, True);
Wait(3500 + Random(100));
ClickMouse(LoginX, LoginY, True);
Wait(2000 + Random(100));
writeLn('Successfully logged in.');
end;
procedure AntiBan;
begin
Mouse(Random(516), Random(337), 10, 10, True);
Wait(3000);
ChopOak;
end;
procedure AntiRandom;
begin
FindBirdsNest;
FindEnt(x, y, True);
end;
procedure ChopOak;
begin
writeLn('Finding Oak...');
FindObj(x, y, 'ak', TreeColour, 30)
repeat
Mouse(x, y, 0, 0, true);
Wait(3000 + Random(1000));
AntiRandom;
writeLn('Oak found.');
until (FindObj(x, y, 'ak', TreeColour, 30) = false) or (InvFull)
end;
procedure Drop;
begin
if (InvFull) then
begin
DropItem(2);
DropItem(3);
DropItem(4);
DropItem(5);
DropItem(6);
DropItem(7);
DropItem(8);
DropItem(9);
DropItem(10);
DropItem(11);
DropItem(12);
DropItem(13);
DropItem(14);
DropItem(15);
DropItem(16);
DropItem(17);
DropItem(18);
DropItem(19);
DropItem(20);
DropItem(21);
DropItem(22);
DropItem(23);
DropItem(24);
DropItem(25);
DropItem(26);
DropItem(27);
DropItem(28);
end;
end;
begin
SetupSRL;
ActivateClient;
Login;
SendArrowWait(0, 250 + Random(50));
repeat
repeat
ChopOak;
until(InvFull);
Drop;
AntiBan;
LoadsDone := LoadsDone + 1;
writeLn('Chopped and dropped a load.');
until (LoadsDone >= LoadsWanted)
Logout;
end.I tested it and it worked okay for me :)