SRL Archive - RS3 Outdated / Broken Scripts

Trav's Essence Miner [Reflection]


traveler

2010-11-13 22:43:19

Traveler's Essence Miner!

This Script is still in the beta stage. Please post any bugs you find in the script.


About
I set out to make the perfect essence miner a couple of days ago. i have put lots of work into this script to make it run almost perfectly. This script uses reflection. Therefore, it will almost never fail, unless your hooks go out-of-date.

Setup
Fill in lines 36-44.
Start in Varrock East Bank with your pickaxe either equipped or somewhere in your inventory. Then just hit the start button and watch it go.

Anti-Randoms and Anti-Bans
Anti-Randoms and Anti-Bans are included.

To-Do List:
1. Nothing currently planned, Anything else you guys want to see?

Bugs
If you find any bugs with the script, please let me know Immediately!

Progress Reports
***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 02h 21m 43s *
***********************************************
*Progress Report For: *
*---------------------------------------------*
*Time Runing: 02h 21m 42s *
*Essence Made: 2126 *
*Essence Per Hour: 900 *
*Loads: 77 *
*Exp Gained: 10630 *
*Exp Per Hour: 4501 *
*---------------------------------------------*

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 03h 37s *
***********************************************
*Progress Report For: *
*---------------------------------------------*
*Time Runing: 03h 20s *
*Essence Made: 2660 *
*Essence Per Hour: 885 *
*Loads: 95 *
*Exp Gained: 13300 *
*Exp Per Hour: 4425 *
*---------------------------------------------*

tunderofnl

2010-11-13 23:06:46

I start in east bank and when I run it it logs in and logs out with the message:
Opening Bank and Depositing all but Pickaxes
Not At bank, quiting
***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 01m 04s *
***********************************************
*Progress Report For: Thunderofnl2 *
*———————————————*
*Time Runing: 11s *
*Essence Made: 0 *
*Essence Per Hour: 0 *
*Loads: 1 *
*Exp Gained: 0 *
*Exp Per Hour: 0 *
*———————————————*
Successfully executed.

Cstrike

2010-11-13 23:14:06

I shall be testing this and helping you with proggys and stuff as much as I can between this and my miner :)

BTW R_OpenBankBooth can suck at times

traveler

2010-11-13 23:29:50

The open bank function works fine, it's just I need to add a small wait after the player logins, which I thought I did.

I will fix the problem tomorrow when I get on my pc (currently on my iPod :P).

Bad Boy JH

2010-11-14 02:27:11

I haave an issue, I have a character with a low-ish mining level, mid 30s, and the 70 second wait is too short, I can't get a full load…
also, if none of the items you don't want to be deposited are in the inventory, use the deposit all function

Cstrike

2010-11-14 10:33:11

From: Bad Boy JH
I haave an issue, I have a character with a low-ish mining level, mid 30s, and the 70 second wait is too short, I can't get a full load…
also, if none of the items you don't want to be deposited are in the inventory, use the deposit all function


From: traveler
The open bank function works fine, it's just I need to add a small wait after the player logins, which I thought I did.

I will fix the problem tomorrow when I get on my pc (currently on my iPod :P).



The fix to this would be repeat until (R_InvFull) :) hopefully

traveler

2010-11-14 11:54:41

From: cstrike
The fix to this would be repeat until (R_InvFull) :) hopefully


I had that already, just had a failsafe for if it stopped mining and it went past a certain amount of time. Just i forgot how slow mining with a bronze pickaxe can be.

Updated in v0.91:
-added color banking failsafe
-fixed a ess mining issue
-fixed total loads issue

Bad Boy JH

2010-11-14 19:57:38


***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 01h 46m 23s *
***********************************************
*Progress Report For: *
*---------------------------------------------*
*Time Runing: 01h 36m 49s *
*Essence Made: 896 *
*Essence Per Hour: 555 *
*Loads: 34 *
*Exp Gained: 4480 *
*Exp Per Hour: 2776 *
*---------------------------------------------*

I did modify the script to make the changes I suggested…which is not a great deal..
it stopped because it thought it wasn't in the bank, but it was…

traveler

2010-11-14 22:03:35

Updated in v0.95:
-Add TONS of banking failsafes.
-Fixed major problem with breaking
-other small fixes

monkeyskater1993

2010-11-15 12:39:34

I just came back so possibly I didn't set simba up and everything correctly but I am pretty sure I did. I keep getting
[Error] C:\Program Files\Simba\Includes\SRL/SRL/Core/Globals.scar(26:3): Duplicate identifier 'FriendChars' at line 25
Compiling failed.

traveler

2010-11-15 14:32:44

From: monkeyskater1993
I just came back so possibly I didn't set simba up and everything correctly but I am pretty sure I did. I keep getting
[Error] C:\Program Files\Simba\Includes\SRL/SRL/Core/Globals.scar(26:3): Duplicate identifier 'FriendChars' at line 25
Compiling failed.


Well that wouldnt be my script. I never used the identifier FriendChars anywhere in my script. sorry to say but it looks like simba or something in srl isnt set up right.

monkeyskater1993

2010-11-15 17:09:37

My bad, I made a mistake with setting the basics up:/ imagine that. Sorry for double post, I will be updating this one with proggy later, running very smoothly. Stopped earlier because script was unable to find the portal but since then it's been running very well and efficiently. Very nice job:]
One stopped at the "pick the odd one out" random, other stopped for frog randomD:.

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 07h 21m 25s *
***********************************************
*Progress Report For: *
*———————————————*
*Time Runing: 07h 20m 37s *
*Essence Made: 5656 *
*Essence Per Hour: 770 *
*Loads: 203 *
*Exp Gained: 28280 *
*Exp Per Hour: 3851 *
*———————————————*
***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 05h 48m 14s *
***********************************************
*Progress Report For: *
*———————————————*
*Time Runing: 05h 47m 34s *
*Essence Made: 4844 *
*Essence Per Hour: 836 *
Walking To Aubury

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 04h 47m 41s *
***********************************************
*Progress Report For: asdf *
*———————————————*
*Time Runing: 04h 47m 09s *
*Essence Made: 3834 *
*Essence Per Hour: 801 *
*Loads: 138 *
*Exp Gained: 19170 *
*Exp Per Hour: 4006 *
*———————————————*
P.S. It's running very well so seeing as you probably won't need to tweak much if anything in this current version for awhile have you thought about making it pouch friendly? That would be awesome:D Unless it already is then tell me.:P

traveler

2010-11-15 22:00:17

the best progress report so far:


***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 04h 36m 09s *
***********************************************
*Progress Report For: *
*---------------------------------------------*
*Time Runing: 04h 36m 06s *
*Essence Made: 4284 *
*Essence Per Hour: 931 *
*Loads: 153 *
*Exp Gained: 21420 *
*Exp Per Hour: 4655 *
*---------------------------------------------*

monkeyskater1993

2010-11-17 14:21:54

[Error] (482:13): Unknown identifier 'R_LobbyScreen' at line 481
Compiling failed.
Getting this now:/ I think you can replace best prog with the one I posted above:D.

traveler

2010-11-17 15:38:12

Reflection is undergoing a major re-organization and they forgot to move r_lobbyscreen. Just change r_lobbyscreen to lobbyscreen for now. I'm unable to post updated versions until I get done with my tests. So I'll post a permant fix this weekend.

klit rs

2010-12-07 04:43:11

Used it today! Worked very nicely! Didnt get proggy tho… Sorry!

traveler

2010-12-07 10:08:21

From: klit rs
Used it today! Worked very nicely! Didnt get proggy tho… Sorry!


good to hear that it still works good, and to bad you didnt get the proggy.

B o l t o n

2010-12-10 22:17:09

Just started getting into Scar scripts, when I click on the link to open the script it doesnt work for me, someone please help me?

traveler

2010-12-10 22:22:39

From: B o l t o n
Just started getting into Scar scripts, when I click on the link to open the script it doesnt work for me, someone please help me?


This is actually a simba script. and when you say it doesnt work for you, do you mean it doesnt download? or that it just doesnt open?

B o l t o n

2010-12-10 22:36:13

Got it working on one of my account but I have a new one that has to use my email to log in, it doesn't do the @ sign properly, it does an A with an accent and it doesn't put the full stops at the end eg. .co.uk

marksteele

2010-12-11 04:39:06

does this support pouches?

also:

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 02h 09m 45s *
***********************************************
*Progress Report For: ******* *
*———————————————*
*Time Runing: 234h 12m 55s *
*Essence Made: 1820 *
*Essence Per Hour: 8 *
*Loads: 69 *
*Exp Gained: 9100 *
*Exp Per Hour: 39 *
*———————————————*


seems like somethings wrong with the this but I can't put my finger on it :)

Was running until I got this

Error: Out Of Range at line 75
The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\SRL/logs/SRL log 11-12-10 1.txt] has not been freed in the script, freeing it now.

traveler

2010-12-11 10:20:10

wtf 234 hrs? and as for that error, thats problem the menu error. that will be fixed soon hopefully.

marksteele

2010-12-11 14:29:37

From: traveler
wtf 234 hrs? and as for that error, thats problem the menu error. that will be fixed soon hopefully.


yah the proggie must have messed up somewhere, its the same with ess per hour.

traveler

2010-12-11 16:20:46

hmm…. oh well, ill look to see if i have it multiplied somewhere. good to hear that the scripts working otherwise. and for the pouches support, it does not have support for it.

Her0n

2010-12-11 20:13:01

I'm going to test this script, I'll try to get it going for a solid 24 hours.

Home

2010-12-12 04:18:37

If you get a lot of runetime errors, you can change the R_IsUpText to regular SRL OCR checking.

~Home

Her0n

2010-12-12 11:00:54

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 05h 46m 30s *
***********************************************
*Progress Report For: Archer Adam8 *
*———————————————*
*Time Runing: 05h 46m 14s *
*Essence Made: 4394 *
*Essence Per Hour: 761 *
*Loads: 161 *
*Exp Gained: 21970 *
*Exp Per Hour: 3807 *
*———————————————*

Sadly my laptop was closed by accident last night, so this is all I got.

Looking promising though.

B o l t o n

2010-12-13 12:17:00

***********************************************
**********Traveler's Essence Miner************
***********************************************
*Total Time Runing: 03h 21m 09s *
***********************************************
*———————————————*
*Time Runing: 03h 20m 18s *
*Essence Made: 2565 *
*Essence Per Hour: 768 *
*Loads: 95 *
*Exp Gained: 12825 *
*Exp Per Hour: 3842 *
*———————————————*

joewasha

2010-12-24 00:54:45

Exception in Script: Failed to create new thread, code:8

I'll get this message after my script stops because a new tab was made in simba. I need help

B o l t o n

2010-12-24 07:07:46

ran this before and worked clean as a whistle, this time though I got this…

No Reflection update
Loaded fonts: BigChars, CharsNPC, CharsTrade, FriendChars, LoginChars, SmallChars, StatChars, UpChars, XPChars
No SRL update / Plugins update available!
[Hint] C:\Simba\Includes\SRL/SRL/core/gametab.scar(1514:3): Variable 'P' never used at line 1513
[Hint] (60:3): Variable 'I' never used at line 59
[Error] (261:58): Type mismatch at line 260
Compiling failed.

any ideas?

Furyan

2010-12-24 08:23:19

From: B o l t o n
ran this before and worked clean as a whistle, this time though I got this…

No Reflection update
Loaded fonts: BigChars, CharsNPC, CharsTrade, FriendChars, LoginChars, SmallChars, StatChars, UpChars, XPChars
No SRL update / Plugins update available!
[Hint] C:\Simba\Includes\SRL/SRL/core/gametab.scar(1514:3): Variable 'P' never used at line 1513
[Hint] (60:3): Variable 'I' never used at line 59
[Error] (261:58): Type mismatch at line 260
Compiling failed.

any ideas?



Change GetObjectsByID to GetObjectsByIDEx. That did it for me.

**BANNED The Man

2010-12-24 12:32:42

Here's a working version :)

BorderlandsPsycho

2010-12-24 12:59:19

Thanks a lot dynamite!

B o l t o n

2010-12-24 17:12:33

Thanks, will edit proggie into this reply, will be a good few hours proggie if script runs smoothly like it normally does.

Ok no proggie, things not working for me -_- this is what I get…

Done Mining Essence, time to find the portal
Exception in Script: Failed to create new thread, code:8
The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\SRL/logs/SRL log 24-12-10 4.txt] has not been freed in the script, freeing it now.
Exception in Script: Out of memory

any ideas?

Sgt Soul

2010-12-24 22:51:09

From: B o l t o n
Thanks, will edit proggie into this reply, will be a good few hours proggie if script runs smoothly like it normally does.

Ok no proggie, things not working for me -_- this is what I get…

Done Mining Essence, time to find the portal
Exception in Script: Failed to create new thread, code:8
The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\SRL/logs/SRL log 24-12-10 4.txt] has not been freed in the script, freeing it now.
Exception in Script: Out of memory

any ideas?


I find that this problem happens with both of traveler's mining scripts, sorry I don't have an answer for your problem but if you can't get it fixed you can always just use to MSI script for mining :) if you struggle trying to operate it just PM your problems and I will try to help you out!!

many thanks,
Sgt Soul

Carlosthepro

2010-12-25 00:23:53

Unable to find file'srl/srl.scar' used from"

Sex

2010-12-25 00:25:08

Download SRL.

jayzarks95

2010-12-25 17:21:18

[Hint] C:\Simba\Includes\SRL/SRL/core/gametab.scar(1514:3): Variable 'P' never used at line 1513
[Hint] (60:3): Variable 'I' never used at line 59
[Error] (261:58): Type mismatch at line 260
Compiling failed.

Furyan

2010-12-25 18:26:52

From: jayzarks95
[Hint] C:\Simba\Includes\SRL/SRL/core/gametab.scar(1514:3): Variable 'P' never used at line 1513
[Hint] (60:3): Variable 'I' never used at line 59
[Error] (261:58): Type mismatch at line 260
Compiling failed.


Scroll up a few posts and you will see that Dynamite posted a working version.

jayzarks95

2010-12-25 18:52:32

alright thank you

Furyan

2010-12-27 07:51:17

I'm still getting this annoying error with all Trav's scripts.

Console output:

Done Mining Essence, time to find the portal
Exception in Script: Failed to create new thread, code:8
The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\SRL/logs/SRL log 27-12-10 0.txt] has not been freed in the script, freeing it now.

Sgt Soul

2010-12-27 07:56:00

I am also, Furyan you should try other mining scripts until Trav finds the exact cause. The chances are that other scripts might not have the same problem :)

0UT2K1LL

2010-12-28 03:29:24

Script compiles begins SMART… but just sits there. No typing or anything, all info to log in is filled out, but nothing gives..

Any Ideas? I would greatly appreciate it =P

TomTuff

2010-12-28 03:41:34

From: sgt soul
I am also, Furyan you should try other mining scripts until Trav finds the exact cause. The chances are that other scripts might not have the same problem :)


My cooking scripts have been getting this. I have a feeling it is due to reflection. I've filed a bug report, we'll see what the ref devs have to say.

Sgt Soul

2010-12-28 07:03:18

From: TomTuff
My cooking scripts have been getting this. I have a feeling it is due to reflection. I've filed a bug report, we'll see what the ref devs have to say.


really??? that sucks :( I was actually about to buy a lot of raw fish for my main and use your script, message me if you find a fix and then I will use your script from 85-99 :) and give you progress reports along the way!!! :) <3

Furyan

2010-12-28 07:23:02

From: 0UT2K1LL
Script compiles begins SMART… but just sits there. No typing or anything, all info to log in is filled out, but nothing gives..

Any Ideas? I would greatly appreciate it =P


Make sure you have your runescape settings correct, as shown in this tutorial: http://villavu.com/forum/showthread.php?t=60510 . If you don't, it will just sit there and wait after runescape has loaded.

Sgt Soul

2010-12-28 08:01:36

From: 0UT2K1LL
Script compiles begins SMART… but just sits there. No typing or anything, all info to log in is filled out, but nothing gives..

Any Ideas? I would greatly appreciate it =P


this is usually due to the screen not being set to FIXED, which is in the runescape settings when you load up the client. :)

Death12652

2010-12-28 23:38:44

Nevermind fixed it great script by the way will post proggy soon keep forgetting lolz.

Becks

2011-01-03 19:02:21

Het Trav you looking to update ;)?

traveler

2011-01-03 19:57:13

becks, redownload .95, i fixed the GetObjectsByIDEx error. if the script still doesnt work, pm me

melovearmy

2011-01-16 22:35:53

Hey im new here, and when i try to start the script, i get error
[Error] (229:29): Invalid number of parameters at line 228
Compiling failed.
Line 228 is: Aubury:=SortNPCs(GetNPCs);

Smitty

2011-01-25 22:41:44

[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(329:3): Variable 'I' never used at line 328
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(329:3): Variable 'CTS' never used at line 328
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(330:3): Variable 'P' never used at line 329
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(331:3): Variable 'OBJS' never used at line 330
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(332:3): Variable 'DONE' never used at line 331
[Error] (70:31): Invalid number of parameters at line 69
Compiling failed.

looked good but whats wrong?

**BANNED The Man

2011-01-26 16:48:08

Now although I have an essence miner I am still happy to help :)
Here is a compiling version:

program new;
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}

//*******************************\\
// Trav's Essence Miner \\
//*******************************\\
// Setup \\
// Fill in lines 36-44 \\
// Start in bank \\
// Hit The Start Button \\
//*******************************\\
// To-Do List \\
// 1.Anything you want to see? \\
//*******************************\\

type
EssOptions = record
EssTotal,TimeTotal,LoadsTotal,Loads,Break:Integer;
Exp:Extended;
Debug:Boolean;
end;

var
Options:array of EssOptions;
Time,TimeMark,BreakTime:Integer;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
SetLength(Options,HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := ''; //your username, duh
Players[0].Pass := ''; //your password
Players[0].Nick := ''; //3-4 letters of ur username, not including first letter
Players[0].Active := True; //Is he going to Mine?
Players[0].Pin := ''; //Your Pin if you have one

Options[0].Loads := 0; //how many loads to do, 0 for unlimited
Options[0].Debug := True; //Enable Debuging?
Options[0].Break := 0; //Take a break every X hours? 0 = disabled

end;

procedure Debug(s:String);
begin
if(Options[CurrentPlayer].Debug = True) then
writeln(s);
end;

procedure MineEss; forward;

procedure Antiban;
var
EssPlayers:Array of TPlayer;
I,RanPlayer:Integer;
TP:TPoint;
begin
R_FindRandoms;
if LevelUp then
MineEss;
Case Random(40) of
1: RandomRClick;
2:
begin
EssPlayers := GetAllPlayers;
if(Length(EssPlayers)>0)then
begin
RanPlayer := RandomRange(0,High(EssPlayers));
if(TileOnMS(Tile(EssPlayers[RanPlayer].Tile.X,EssPlayers[RanPlayer].Tile.Y),5)) then
begin
TP:=TileToMS(Tile(EssPlayers[RanPlayer].Tile.X,EssPlayers[RanPlayer].Tile.Y),5);
Mouse(TP.X,TP.Y,5,5,false);
wait(200+random(300));
MMouse(RandomRange(MIX1,MIX2),RandomRange(MIY1,MIY2),0,0);
end;
end;
end;
3:
begin
MMouse(-100+random(50),-50-random(50),5,5);
wait(3000+random(5000));
end;
4:
begin
PickUpMouse;
wait(1000+random(500));
end;
5:
begin
GameTab(21+Random(10));
wait(100+random(2000));
GameTab(25);
end;
end;
end;

//originally R_DepositAllByIDEX by Zyt3x, but updated for my needs.
procedure EM_DepositAllButIDEx(IDs : TIntegerArray);
var
I, T : Integer;
Item : TInvItem;
begin
if not LoggedIn then
Exit;
for I := 1 to 28 do
begin
Item := GetInvItemAt(I);
if(InIntArray(IDs, Item.ID))then Continue;
R_ClickItem(I, False, 'Deposit-All');
T := GetSystemTime;
while(R_ItemExists(I)) and (GetSystemTime-T<6000) do
wait(100);
end;
end;

procedure Bank;
var
Items:TInvItemArray;
begin
if not LoggedIn Then
Exit;
R_FindRandoms;
Debug('Opening Bank and Depositing all but Pickaxes');
wait(500+random(500));
if(R_ItemIdExistsEx([7936,1436],Items)) then
begin
if R_OpenBankBooth('veb') then
begin
if(R_ItemIDExistsEx([1269,1271,1265,15259,1267,1273,1275],Items)) then
begin
EM_DepositAllButIDEx([1269,1271,1265,15259,1267,1273,1275]);
wait(300+random(500));
end
else
begin
DepositAll;
end;
end
else if(OpenBank('veb',True,True)) then
begin
Debug('Opening Bank With Color');
if(R_ItemIDExistsEx([1269,1271,1265,15259,1267,1273,1275],Items)) then
begin
EM_DepositAllButIDEx([1269,1271,1265,15259,1267,1273,1275]);
wait(300+random(500));
end
else
begin
DepositAll;
end;
end
else
begin
Debug('Error Finding Bank, Making Sure We are in the bank and trying again.');
wait(1000+random(200));
if(DistanceFrom(Tile(3253,3421))<3) then
begin
Debug('We are in the Bank');
end
else
begin
WalkToTile(Tile(3253,3421),1,0);
Debug('Found we were not in bank and now we are in the bank');
end;
if R_OpenBankBooth('veb') then
begin
if(R_ItemIDExistsEx([1269,1271,1265,15259,1267,1273,1275],Items)) then
begin
EM_DepositAllButIDEx([1269,1271,1265,15259,1267,1273,1275]);
wait(300+random(500));
end
else
begin
DepositAll;
end;
end
else if(OpenBank('veb',True,True)) then
begin
Debug('Opening Bank With Color');
if(R_ItemIDExistsEx([1269,1271,1265,15259,1267,1273,1275],Items)) then
begin
EM_DepositAllButIDEx([1269,1271,1265,15259,1267,1273,1275]);
wait(300+random(500));
end
else
begin
DepositAll;
end;
end
else
begin
Debug('Not At bank, quiting');
Logout;
Players[CurrentPlayer].Active := False;
Exit;
end;
end;
end;

end;

procedure WalkToAubury;
var
Path:TTileArray;
begin
if not LoggedIn then
Exit;
Debug('Walking To Aubury');
Path := [Tile(3259, 3411),Tile(3253, 3400)];
WalkPath(Path);
wait(500+random(500));
end;

procedure FindAubury;
var
Aubury, AllNPCs:TNPCArray;
PT:TPoint;
x,I,y:Integer;
begin
if not LoggedIn then
Exit;
Debug('Finding Aubury');
repeat
AllNPCs := GetAllNPCs(False);
Aubury := SortNPCs(AllNPCs);
for I:=0 to High(Aubury) do
begin
if(ToStr(Aubury[I].Name) = 'Aubury') then
begin
if(TileOnMS(Tile(Aubury[i].Tile.X, Aubury[i].Tile.Y),5)) then
begin
PT := TileToMs(Tile(Aubury[i].Tile.X, Aubury[i].Tile.Y),5);
Mouse(PT.x,PT.y,0,0,false);
if(R_ChooseOption('eleport')) then
begin
Debug('Found Aubury');
x:=1;
break;
end;
end;
end;
end;
until(x=1);
repeat
until(FindColorTolerance(x,y,14604757,MMX1,MMY1,MMX2,MMY2,10));
wait(1000+random(500));
end;

procedure FindClosestEss;
var
Ess:TRSObjectArray;
I:Integer;
begin
if Not LoggedIn then
Exit;
R_FindRandoms;
Debug('Finding Location In Mine');
Ess:=GetObjectsByIDEx([2491],OBJECT_TYPE_INTERACTABLE,50);
for i:=0 to High(Ess) do
begin
if (High(Ess)>40) then
Break;
if TileOnMS(Ess[I].Tile,5) then
Exit;
end;
if(TileonMM(Tile(2925, 4818))) then //southeast
begin
Debug('SouthEast');
WalkToTile(Tile(2925,4818),1,2);
end
else if(TileonMM(Tile(2898, 4818))) then //southwest
begin
Debug('southwest');
WalkToTile(Tile(2898, 4818),1,2);
end
else if(TileOnMM(Tile(2896, 4845))) then //Northwest
begin
Debug('Northwest');
WalkToTile(Tile(2896, 4845),1,2);
end
else if(TileOnMM(Tile(2923, 4846))) then //northeast
begin
Debug('Northeast');
WalkToTile(Tile(2923, 4846),1,2);
end
else if(TileOnMM(Tile(2921, 4844))) then //Northeast from middle
begin
Debug('In Middle, Walking to Northeast');
WalkToTile(Tile(2921, 4844),1,2);
end
else if(TileOnMM(Tile(2899, 4820))) then //Southwest from middle
begin
Debug('In Middle, Walking to SouthWest');
WalkToTile(Tile(2899, 4820),1,2);
end
else
begin
Debug('Error Finding Essence, Quiting');
Logout;
Players[CurrentPlayer].Active := False;
Exit;
end;
wait(1000+random(500));
end;

procedure MineEss;
var
Ess:TRSObjectArray;
TP:TPoint;
I,T,X:Integer;
begin
if not LoggedIn then
Exit;
Debug('Mining Essence');
repeat
Ess:=GetObjectsByIDEx([2491],OBJECT_TYPE_INTERACTABLE,50);
if(High(Ess)>40) then
FindClosestEss;
for I:=5 to High(Ess) do
begin
TP := TileToMS(Ess[I].Tile ,5);
MMouse(TP.X,TP.Y,3,3);
wait(100+random(50));
If(R_IsUpTextMulti(['ine','ssence'])) then
begin
ClickMouse2(true);
x:=1;
Break;
end;
end;
until(x=1);
T:=GetSystemTime;
repeat
Antiban;
wait(1000+random(2000));
until(R_InvFull) or (GetSystemTime-T>240000);

end;

procedure FindPortal;
var
x,y,t:Integer;
Portal:TRSObject;
PT:TPoint;
begin
If Not LoggedIn then
Exit;
Debug('Done Mining Essence, time to find the portal');
if(TileOnMM(Tile(2890,4813))) then //northwest
begin
WalkToTile(Tile(2890,4813),1,1);
end
else if(TileOnMM(Tile(2933,4817))) then //northeast
begin
WalkToTile(Tile(2933,4817),1,1);
end
else if(TileOnMM(Tile(2886, 4849))) then //southwest
begin
WalkToTile(Tile(2886, 4849),1,1);
end
else if(TileOnMM(Tile(2932, 4854))) then //southeast
begin
WalkToTile(Tile(2931, 4853),1,1);
end;
MarkTime(t);
while(Not IsIdle) or (TimeFromMark(t)<2000) do
wait(100);
wait(500+random(300));
repeat
Portal:=GetObjectByID(2492,OBJECT_TYPE_INTERACTABLE,50);
PT:=TileToMS(Portal.Tile,5);
MMouse(PT.X,PT.Y,5,5);
if(R_IsUpText('ortal')) then
begin
wait(100+random(100));
if(R_IsUpText('ortal')) then
begin
Debug('Found Portal');
ClickMouse2(True);
x:=1
end;
end;
wait(500+random(500));
until(x=1);
repeat
until(FindColorTolerance(x,y,4025968,MMX1,MMY1,MMX2,MMY2,10));
end;

procedure WalkToBank;
var
Path:TTileArray;
begin
if not LoggedIn then
Exit;
Debug('Walking To Bank');
Path:= [Tile(3258,3412),Tile(3253,3421)];
WalkPath(Path);
end;

procedure DoChecks;
var
run:Integer;
begin
if not LoggedIn then
Exit;
R_FindRandoms;
if(Options[CurrentPlayer].Loads>=Options[CurrentPlayer].LoadsTotal) and (Options[CurrentPlayer].Loads<>0) then
begin
Debug('Player is done. Going to next Player');
Logout;
Players[CurrentPlayer].Active:=False;
Exit;
end;
if(TimeMark=0) then
begin
MarkTime(TimeMark);
end
else
begin
Options[CurrentPlayer].TimeTotal := Options[CurrentPlayer].TimeTotal+TimeFromMark(TimeMark);
MarkTime(TimeMark);
end;
R_MakeCompass('n');
SetAngle(True);
run:=R_GetMMLevels('run');
if(run>80+random(20)) and (not R_IsRunning) then
begin
SetRun(true)
end;
if(run<15+random(15)) then
begin
R_Rest(80+random(20));
SetRun(True);
end;
end;

procedure SetUpScript;
var
I:Integer;
begin
for I:=0 to (HowManyPlayers-1) do
begin
TimeMark := 0;
Options[I].EssTotal:=0;
Options[I].Exp:=0;
Options[I].Loads:=0;
Options[I].LoadsTotal:=0;
Options[I].TimeTotal:=1;
MarkTime(BreakTime);
if(Options[I].Break<>0) then
Options[I].Break:=Options[I].Break*3600000;
end;
end;

procedure IsBreakTime;
var
T:Integer;
begin
if not LoggedIn then
Exit;
if(Options[CurrentPlayer].Break=0) then
Exit;
if(GetSystemTime-BreakTime>=Options[CurrentPlayer].Break) then
begin
Debug('Time for a break.');
T:=GetSystemTime+RandomRange(1200000,2400000);
case Random(3) of
1:
begin
ExitToLobby;
repeat
Debug('Time Left in Break:'+MsToTime((T-GetSystemTime),Time_Short));
if(T-GetSystemTime>60000) then
begin
wait(RandomRange(180000,300000));
end
else
begin
wait(RandomRange(40000,60000));
end;
until(T<GetSystemTime);
Debug('Break Over');
if (LobbyScreen) then
begin
MouseBox(72, 445, 570, 477, 1);
end
else
begin
LoginPlayer;
end;
end;
2:
begin
repeat
Debug('Time Left in Break:'+MsToTime((T-GetSystemTime),Time_Short));
if(T-GetSystemTime>60000) then
begin
wait(RandomRange(180000,300000));
end
else
begin
wait(RandomRange(40000,60000));
end;
until(T<GetSystemTime);
Debug('Break Over');
if (LobbyScreen) then
begin
MouseBox(72, 445, 570, 477, 1);
end
else
begin
LoginPlayer;
end;
end;
3:
begin
Logout;
repeat
Debug('Time Left in Break:'+MsToTime((T-GetSystemTime),Time_Short));
if(T-GetSystemTime>60000) then
begin
wait(RandomRange(180000,300000));
end
else
begin
wait(RandomRange(40000,60000));
end;
until(T<GetSystemTime);
Debug('Break Over');
LoginPlayer;
end;
end;
end;
repeat
BreakTime:=GetSystemTime;
wait(1000+random(1000));
until(Loggedin);
end;

procedure ProgressReport;
var
I:Integer;
EssPerHour,Exp64:Int64;
begin
if(TimeMark=1) then
begin
MarkTime(TimeMark);
end
else
begin
Options[CurrentPlayer].TimeTotal := Options[CurrentPlayer].TimeTotal+TimeFromMark(TimeMark);
MarkTime(TimeMark);
end;
Options[CurrentPlayer].EssTotal := Options[CurrentPlayer].EssTotal+ R_CountItemIDEx([7936,1436]);
Options[CurrentPlayer].Exp:= Options[CurrentPlayer].Exp+(5*R_CountItemIDEx([7936,1436]));
Inc(Options[CurrentPlayer].LoadsTotal);
Writeln('***********************************************');
Writeln('**********Traveler''s Essence Miner************')
Writeln('***********************************************');
Writeln('*Total Time Runing: '+Padr(MsToTime(GetTimeRunning, Time_Short),26)+'*');
WriteLn('***********************************************');
for I := 0 to HowManyPlayers-1 do
begin
Writeln('*Progress Report For: '+Padr(Players[I].Name,24)+'*');
Writeln('*---------------------------------------------*');
Writeln('*Time Runing: '+Padr(MsToTime(Options[I].TimeTotal,Time_Short),32)+'*');
Writeln('*Essence Made: '+Padr(IntToStr(Options[I].EssTotal),31)+'*');
EssPerHour := Round((Options[I].EssTotal*60)/(Options[I].TimeTotal/60000.0));
//test := Round((Options[I].BarsTotal*3600000)/Options[I].Time);
Writeln('*Essence Per Hour: '+Padr(IntToStr(EssPerHour),27)+'*');
Writeln('*Loads: '+Padr(IntToStr(Options[I].LoadsTotal),38)+'*');
Writeln('*Exp Gained: '+Padr(IntToStr(Round(Options[I].Exp)),33)+'*');
Exp64 := Round((Options[I].Exp*3600000)/Options[I].TimeTotal);
Writeln('*Exp Per Hour: '+Padr(IntToStr(exp64),31)+'*');
Writeln('*---------------------------------------------*');
end;
end;

begin
Smart_Server := 141;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
SetupReflectionEX(true);
DeclarePlayers;
SetUpScript;
BreakTime:=GetSystemTime;
repeat
repeat
if not LoggedIn then
begin
LoginPlayer;
BreakTime:=GetSystemTime;
end;
DoChecks;
Bank;
WalkToAubury;
FindAubury;
FindClosestEss;
MineEss;
FindPortal;
WalkToBank;
ProgressReport;
IsBreakTime;
until(Not LoggedIn);
NextPlayer(Players[CurrentPlayer].Active);
until(AllPlayersInactive);
end.

mika

2011-01-29 21:39:15

i still get error with above posted version
[Error] (37:22): Unknown identifier 'coolbro' at line 36
Compiling failed.
when i dont type username or pass it gets to login but nothing else

**BANNED The Man

2011-01-30 05:33:21

From: mika
i still get error with above posted version
[Error] (37:22): Unknown identifier 'coolbro' at line 36
Compiling failed.
when i dont type username or pass it gets to login but nothing else


Players[0].Name := 'coolbro'; //your username, duh

Compiles for me.

-Boom

mika

2011-01-30 16:38:15

i figured out what i did wrong i didn't put username and password between the '' i just deleted the '' and put my name and pass there. but now i have a new problem it doesnt log me in. it starts SMART but doesnt type in username or anything doesnt start working even if i manually log in nothing no red dot thingy nothing doesnt work. I NOTICED it doesnt seem to work on WIN7 or VISTA. when i used some fishing auto it worked fine on XP
but not on WIN7. wats wrong? (i did run as administrator)

**BANNED The Man

2011-01-30 17:44:21

From: mika
i figured out what i did wrong i didn't put username and password between the '' i just deleted the '' and put my name and pass there. but now i have a new problem it doesnt log me in. it starts SMART but doesnt type in username or anything doesnt start working even if i manually log in nothing no red dot thingy nothing doesnt work. I NOTICED it doesnt seem to work on WIN7 or VISTA. when i used some fishing auto it worked fine on XP
but not on WIN7. wats wrong? (i did run as administrator)


You need to change your windows to Fixed.
Go to runescape, Settings, Fixed not resizeable

-Boom

mika

2011-01-31 17:04:21

got it to work but my character could not find the portal it would stand by it and red dot would search around the portal and not find it

botsrs

2011-02-14 21:39:49

[Hint] C:\Simba\Includes\reflection\./Core/Text.simba(400:3): Variable 'JAVASTRING' never used at line 399
[Hint] C:\Simba\Includes\reflection\./Core/Objects.simba(85:3): Variable 'LX' never used at line 84
[Hint] C:\Simba\Includes\reflection\./Core/Objects.simba(85:3): Variable 'LY' never used at line 84
[Error] (70:31): Invalid number of parameters at line 69
Compiling failed.
Line 69 -       EssPlayers := GetPlayers;
I have everything updated to the latest. I assume its a Reflection error, but better safe than sorry.

pyroryan

2011-02-14 23:31:06

This has been outdated for a while. I don't think traveler will be returning to fix it.

GTFO

2011-02-18 09:01:51

[Error] (70:31): Invalid number of parameters at line 69