ownedlikenoob
2011-02-02 16:21:32
I've been holding this script back from everyone for a really long time because I wanted to get all the money to myself.
Yup, selfish.
Anyways, I quit RS after the Health update that changed a 10 hit to a 100 hit.
I have now returned due to the release of the wilderness and I have decided to make the script public.
Keep in mind, the script is about 2 years old and some of the procedures may be outdated.
I am using it right now, and it seems to be getting the job done alright (besides some small bugs)
anyways,
because this community has been very good to me and helped me to create a lot of scripts, I will post the code for the script.
Also, The script does not bank the ore. If anyone can figure out how to make it bank, That would be awesome. Anyone can use the code I used. If you do add walking, let me know please.
AND I DIDN'T USE STANDARDS. DO NOT COMPLAIN ABOUT IT!
-Bugs-
WorldSwitcher needs to be updated, causing the script to get stuck at high risk wilderness worlds.
-Features-
Mines Runite ore in heroe's guild
DOES NOT BANK ORE
Logs out when full inventory
gives a progress report (At bottom of Simba)
uses SMART
-Setup-
Start in hero's guild
(I would advise bringing falador teleports)
script:
I am a beginner scripter.
That's why the code is basic garbage… But it gets the job done.
That's all that counts.
-OwnedLikeNoob
Yup, selfish.
Anyways, I quit RS after the Health update that changed a 10 hit to a 100 hit.
I have now returned due to the release of the wilderness and I have decided to make the script public.
Keep in mind, the script is about 2 years old and some of the procedures may be outdated.
I am using it right now, and it seems to be getting the job done alright (besides some small bugs)
anyways,
because this community has been very good to me and helped me to create a lot of scripts, I will post the code for the script.
Also, The script does not bank the ore. If anyone can figure out how to make it bank, That would be awesome. Anyone can use the code I used. If you do add walking, let me know please.
AND I DIDN'T USE STANDARDS. DO NOT COMPLAIN ABOUT IT!
-Bugs-
WorldSwitcher needs to be updated, causing the script to get stuck at high risk wilderness worlds.
-Features-
Mines Runite ore in heroe's guild
DOES NOT BANK ORE
Logs out when full inventory
gives a progress report (At bottom of Simba)
uses SMART
-Setup-
Start in hero's guild
(I would advise bringing falador teleports)
script:
program MiningRune;
{$DEFINE SMART}
{.Include SRL/SRL.scar}
const
Rune = 10261864; {9998694} {11446133}
Rune2 = 9998694;
Rune3 = 11446133;
var
x, y, i, a, LastCount : Integer;
s : String;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :=''; //insert username
Players[0].Pass :=''; //insert password
Players[0].Nick :='';
Players[0].Active := True;
Players[0].WorldInfo := [True, -1, False];
end;
Procedure AntiBann;
begin
case (Random(500)) of
0: Begin
RandomRClick;
a := a+1;
end;
1: Begin
SleepAndMoveMouse(200 + Random(50));
a := a+1;
end;
2: Begin
ExamineInv;
a := a+1;
end;
3: Begin
PickUpMouse;
a := a+1;
end;
4: Begin
Mouse(572,485,5,5,true);
Wait(1000+random(1000));
a := a+1;
end;
5: Begin
HoverSkill('mining', False);
a := a+1;
end;
end;
end;
Procedure LookforRocks;
begin
MakeCompass('n');
Wait(200+Random(50));
KeyDown(38);
Wait(400+random(200));
end;
Procedure StartMining;
Begin
if(FindObjTPA(x, y, Rune, 8, 2, 26,29, 3, ['Mine', 'Rocks'])) or
(FindObjTPA(x, y, Rune2, 8, 2, 26,29, 3, ['Mine', 'Rocks'])) or
(FindObjTPA(x, y, Rune3, 8, 2, 26,29, 3, ['Mine', 'Rocks'])) then
Begin
WriteLn('Found Rock, Mining');
Wait(700+random(300));
case (Random(2)) of
0: Begin
LastCount := InvCount;
wait(100+random(50));
Mouse(x,y,5,2,False);
wait(100+random(200));
ChooseOption('Mine');
Wait(1300+random(300));
Repeat
Wait(1000+random(500));
AntiBann;
InvCount;
Until(LastCount < InvCount) or
(Not(FindObjTPA(x, y, Rune, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune2, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune3, 10, 2, 26,29, 3, ['Mine', 'Rocks'])));
end;
1: Begin
LastCount := InvCount;
Wait(100+random(100));
Mouse(x,y,2,2,True);
Wait(1300+random(300));
repeat
Wait(1000+random(400));
AntiBann;
InvCount;
Until(LastCount < InvCount) or
(Not(FindObjTPA(x, y, Rune, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune2, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune3, 10, 2, 26,29, 3, ['Mine', 'Rocks'])));
End;
end;
end;
end;
Procedure Check;
Begin
If(Not(FindObjTPA(x, y, Rune, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune2, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) and
(Not(FindObjTPA(x, y, Rune3, 10, 2, 26,29, 3, ['Mine', 'Rocks']))) then
Begin
WriteLn('Did not find Rock, Changing worlds');
ExitToLobby;
LoginPlayer;
Wait(3000+random(200));
end;
end;
Procedure InvCheck;
Begin
InvCount;
If(InvCount = 28) then
Begin
WriteLn('Inventory is full!');
Logout;
TerminateScript;
end;
end;
Procedure ProgressReport;
Begin
I := GetTimeRunning;
s := MsToTime(i,0);
WriteLn('Antibann happened '+IntToStr(a)+' Times');
WriteLn(s);
end;
begin
SetupSRL;
AllowPVP := False;
DeclarePlayers;
LoginPlayer;
Wait(2000+random(500));
LookforRocks;
Wait(400+random(500));
a := 0;
Repeat
StartMining;
Wait(200+random(300));
StartMining;
Wait(200+random(300));
StartMining;
Wait(200+random(300));
StartMining;
Wait(200+random(300));
InvCheck;
FindNormalRandoms;
Check;
ProgressReport;
Until(False);
end.
I am a beginner scripter.
That's why the code is basic garbage… But it gets the job done.
That's all that counts.
-OwnedLikeNoob