SRL Archive - RS3 Outdated / Broken Scripts

Power Miner v1


Devoker

2009-06-17 10:17:29

Welcome to my Power Miner Thread!
This script is a simple, non-SMART script that runs properly.
If you have used this script for over five minutes, please post your progress report.

Features
  • Mines Copper, Tin, or Coal
  • Working Anti-Ban System
  • Drops Inventory

Future Features
  • Detects Gems
  • Multiple Users

Floor66

2009-06-17 10:32:19

Doesn't look bad, only you have to be logged in when it starts…
Why don't you use SRL's DeclarePlayers?
Btw, the
 tags mess with standards ;_;
[scar]
{
___ ___ ___ ___ _____ _____ ___ ___
| | | | | | | | | | | | | | |\ | | | |
|___| | | | | | |___ |___| | | | | | \ | |___ |___|
| | | | | | | | \ | | | | | \ | | | \
| |___| |__|__| |___ | \ | | | __|__ | \| |___ | \

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|| ||
|| How do I stop the script? ||
|| Instead of pressing Ctrl + Alt + S, use F9. ||
|| ||
|| What does this do? ||
|| This script mines all quick spawn ores. ||
|| ||
|| Will I get caught or banned? ||
|| Most likely not as there are good Anti Bans and Anti Randoms. ||
|| ||
|| Where should I use this script? ||
|| Al Kharid has all of the ore that this script has. ||
|| ||
|| How do I set the script up? ||
|| Scroll down and then fill in the empty spaces. ||
|| ||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}
Program PowerMiner;
{.include SRL/SRL.Scar}

Var
X, Y, I : Integer;
RockColor : Array [0..2] Of Integer;

Procedure DeclarePlayers;
Begin
CurrentPlayer := 0; // Starting player
HowManyPlayers := 1; // How many players in total?
NumberOfPlayers(HowManyPlayers);

Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // Nickname, 3 - 4 letters of username
Players[0].Active := True; // Use this player?
Players[0].BoxRewards := ['XP', 'xp']; // Reward box reward uptext (default = lamp)
Players[0].Integers[0] := 0; // How many rocks to mine
Players[0].Strings[0] := 'iron'; // What rock to mine (copper, tin, iron, coal)
Players[0].Booleans[0] := True; // Pickaxe equipped?
End;

Procedure DeclareColors;
Begin
Case Capitalize(Players[CurrentPlayer].Strings[0]) Of
'Copper': Begin
RockColor[0] := 4813728
RockColor[1] := 4351888
RockColor[2] := 4154250
End;
'Tin': Begin
RockColor[0] := 9539996
RockColor[1] := 9737632
RockColor[2] := 9342617
End;
'Iron': Begin
RockColor[0] := 2964578
RockColor[1] := 2371919
RockColor[2] := 2832991
End;
'Coal': Begin
RockColor[0] := 2241331
RockColor[1] := 2834239
RockColor[2] := 2636603
End;
End;
End;

Procedure AntiBan;
Var
RCompass : TStringArray;
Begin
LampSkill := 'Mining';
FindNormalRandoms;
RCompass := ['E', 'S', 'W'];
MakeCompass(RCompass);
Wait(2500 + Random(1000));
MakeCompass('N');
Case Random(25) Of
0: BoredHuman;
1: RandomMovement;
2: PickUpMouse;
3: HoverSkill('Mining', False);
4: MMouse(Random(X), Random(Y), 0, 0);
5: TypeSend('Mining Levels?');
End;
End;

Procedure MineRock;
Var
Inv1, Inv2 : Integer;
Begin
AntiBan;
If FindObj(x, y, 'ine', RockColor[I], 10) Then
Begin
Inv1 := InvCount;
Inv2 := Inv1;
Mouse(x, y, 6, 6, False);
ChooseOption('ine');
While Inv1 < Inv2 Do
Begin
Wait(50 + Random(50));
Inv2 := InvCount;
End;
Inc(Players[CurrentPlayer].Integers[1]);
End;
End;

Procedure DropRock;
Begin
Case Players[CurrentPlayer].Booleans[0] Of
True : Begin
For I := 1 To 28 Do
DropItem(I);
End;
False : Begin
For I := 4 To 28 Do
DropItem(I);
End;
End;
End;

Procedure ProgressReport;
Begin
WriteLn('|||||||||||||||||||||||||||||||||||');
WriteLn('|| Power Miner ||');
WriteLn('|||||||||||||||||||||||||||||||||||');
WriteLn('Time Running: ' + TimeRunning);
WriteLn('Rocks Mined: ' + IntToStr(Players[CurrentPlayer].Integers[1]));
WriteLn('|||||||||||||||||||||||||||||||||||');
WriteLn('|| Created By: Devoker ||');
WriteLn('|||||||||||||||||||||||||||||||||||');
End;

Procedure MainLoop;
Begin
Wait(1000 + Random(500));
SetAngle(True);
MakeCompass('N');
If InvFull Then
DropRock
Else
MineRock;
End;

Begin
SetupSRL;
DeclareColors;
DeclarePlayers;
ActivateClient;
If Not LoggedIn Then
LoginPlayer;
Repeat
MainLoop;
Until(IsFKeyDown(9) or (Players[CurrentPlayer].Integers[1] >= Players[CurrentPlayer].Integers[0]));
ProgressReport;
End.

I changed quite a lot, some standards but also some scripting stuff, and I added DeclarePlayers.

I made your MineRock procedure to this:

Procedure MineRock;
Var
Inv1, Inv2 : Integer;
Begin
AntiBan;
If FindObj(x, y, 'ine', RockColor[I], 10) Then
Begin
Inv1 := InvCount; //Get the current inv count (e.x: 5)
Inv2 := Inv1; //Is now also 5
Mouse(x, y, 6, 6, False);
ChooseOption('ine'); //Begin mining...
While Inv1 < Inv2 Do //When you start mining, they are both 5.
Begin
Wait(50 + Random(50));
Inv2 := InvCount; //Gets the InvCount again, if this is MORE than the variable we took BEFORE mining (Inv1), we know we gained 1 ore!
End;
Inc(Players[CurrentPlayer].Integers[1]); //Replaced 'M' with this.
End;
End;

TRiLeZ

2009-06-17 10:34:31

Fix your standards
I havnt looked at the script yet so I cant give you any feedback

TomTuff

2009-06-19 09:54:24

i would use, but theres no option for iron :\

mnagi85

2009-06-19 17:34:22

Trying out now, will post proggy once completed testing.

EDIT: Tried out, had several problems, too many to list- regarding includes and other files. It's just scripted completely wrong, or it's old. Didn't even start.

noob-2

2009-06-21 17:56:46

From: mnagi85
Trying out now, will post proggy once completed testing.

EDIT: Tried out, had several problems, too many to list- regarding includes and other files. It's just scripted completely wrong, or it's old. Didn't even start.


Could be users fault.

Floor66

2009-06-21 20:26:02

Probably is his fault.

JPHamlett

2009-06-23 05:15:19

looks goods

wont run it but it looks good from what i can see if your looking for new things to add you can check out my power miner

jsut credit if you take any functions or procedures

rs2player

2009-07-06 18:24:50

thanks, i like your script becasuse it is simple and actually worked.

|||||||||||||||||||||||||||||||||||
|| Power Miner ||
|||||||||||||||||||||||||||||||||||
Time Running: 12 Minutes and 37 Seconds
Rocks Mined: 102

i did for longer than this but didn't get another prog.