Harkonnen
2008-07-13 01:10:42
This is not only my first powerminer but also it is my first full script please let me know if it is any good or if I forgot something.
program HarksPowerMiner;
{
Hey THis is my first power miner be nice I am sure
that it will not be the greatest but I hope that it
is not bad for a first script
}
{.include SRL/SRL.scar}
const
RockColor1= AAAAA; //Place rock color #1 Here
RockColor2= BBBBBB; //Place rock color #2 Here
var x, y, Tries: integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 5;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0] .Name := 'Username'; //Players Username
Players[0] .Pass := 'Password'; //Players Password
Players[0] .Nick := '3-4 Lw Case letters of Username'; //Players nick for randoms
Players[0] .Active := True; // If you do not want to use this player make active = false
Players[1] .Name := 'Username'; //Players Username
Players[1] .Pass := 'Password'; //Players Password
Players[1] .Nick := '3-4 Lw Case letters of Username'; //Players nick for randoms
Players[1] .Active := True; // If you do not want to use this player make active = false
Players[2] .Name := 'Username'; //Players Username
Players[2] .Pass := 'Password'; //Players Password
Players[2] .Nick := '3-4 Lw Case letters of Username'; //Players nick for randoms
Players[2] .Active := True; // If you do not want to use this player make active = false
Players[3] .Name := 'Username'; //Players Username
Players[3] .Pass := 'Password'; //Players Password
Players[3] .Nick := '3-4 Lw Case letters of Username'; //Players nick for randoms
Players[3] .Active := True; // If you do not want to use this player make active = false
Players[4] .Name := 'Username'; //Players Username
Players[4] .Pass := 'Password'; //Players Password
Players[4] .Nick := '3-4 Lw Case letters of Username'; //Players nick for randoms
Players[4] .Active := True; // If you do not want to use this player make active = false
{
If a player has been turned off make sure to adjust the proper
numbers in order for proper function.
}
end;
procedure AntiRandoms;
begin
if (FindFight) then
RunAway('N', True,1,15000);
FindNormalRandoms;
FindLamp('Mining');
end;
procedure Antiban;
begin
if not LoggedIn then Exit;
case Random(30) of
1: RandomRClick;
2: HoverSkill('Mining', false);
3. RandomMovement;
4: BoredHuman;
5: AlmostLogout;
6: DoEmote(400 +Random(90));
end;
procedure RockMining;
begin
if not LoggedIn then
Exit;
if (not (FindObjCustom(x,y, ['Mi', 'ne'], [RockColor1, RockColor2], 7))) then
wait(100+random(100))
Tries := Tries + 1;
if(Tries+random(25) = 40)then
begin
Logout;
Exit;
end else
if FindObjCustom(x, y, ['Min', 'ine'], [RockCOlor1, RockColor2], 7) then
repeat
case (random)2)) of
1: Mouse(x, y, 4, 4, false);
ChooseOption('ine');
2: Mouse(x, y, 4, 4, True);
end;
until (InvFull)
end;
procedure DropRocks;
begin
if FindObjCustom(x, y, ['Ore'], [RockColor1, Rockcolor2], 7) then
DropTo(2,28);
end;
begin
SteupSRL;
repeat
RockMining;
DropRocks;
AntiBan;
until (False)
end;
end.