SRL Archive - Research & Development Lounge

Porting Al's LRC Fisher to LRC Miner


tristen8878

2012-06-15 15:58:06

Hello all I have been porting Al's LRC Fisher so that it can mine gold ore in the living rock caverns. This was a private project for me only but I have deiced to release it to public once finished. This is a port from al's LRC fisher so I can not guarantee he we let me release this yet.


I can confirm that the script will be released to public very soon :)



Done List

Runs to the mine spot
runs to the bank and back
switchers between the 2 gold deposits
If attacked runs to the bank


DMT for gold ore so when it banks it can find it (feel free to help me on this one so i can release this quicker.
Clean up the script so it makes sense and not look like a fishing script


Still to do

Convert the paint so it works with tracking gold ores and not fish.
Reworking the failsafes


Almost done but wish me luck anyways :spot:

Benny

2012-06-15 16:07:24

Ah weird thing is i just asked Al about it.

Does it work well?

Good work!

putonajonny

2012-06-15 16:10:43

DMT for gold ore so when it banks it can find it (feel free to help me on this one so i can release this quicker.


I recommend doing a colour count for this:
Function GoldOreInSpot(Spot : integer) : Boolean;
Var
B : TBox;
begin

B := InvBox(Spot);
if(CountColorTolerance(GoldOreColour, B.x1, B.y1, B.x2, B.y2, 10) > Count)then
Result := True;

end;

Function GoldOreInInvent : integer;
Var
i : integer;
begin

for i := 1 to 28 do
if(GoldOreInSpot(i))then
inc(Result);

end;

then for depositing do:
Function DepositOres : Boolean;
begin

if(not DepositScreen)then
if(not OpenDeposit)then
exit;

DepositAll;//Not sure if this works for deposit screens Edit: Just checked and it should do...
CloseAllScreens;

Result := GoldOreInInvent = 0;

end;

tristen8878

2012-06-15 16:16:47

From: -Benny
Ah weird thing is i just asked Al about it.

Does it work well?

Good work!


Yes it runs flawless atm switches spots fine but am just working on the banking been banking manual thats how i have got 37k hr so far. It walks to the bank fine from both spots just depositing the ore is the problem

Benny

2012-06-15 16:44:03

ah well i'm really looking forward to this. :) lemme know if i can help

putonajonny

2012-06-15 16:45:29

From: tristen8878
Yes it runs flawless atm switches spots fine but am just working on the banking been banking manual thats how i have got 37k hr so far. It walks to the bank fine from both spots just depositing the ore is the problem


What's the problem with depositing the ore?

tristen8878

2012-06-15 16:57:00

From: putonajonny
What's the problem with depositing the ore?


RFish    := DTMFromString('mrAAAAHic42BgYMhmYmDIBOJCIK4C4iIgzgHiRCCOBeLnQDV3gfgWlH4LxJ+B+AMQvwBij2APIMmEE3MBSXyYkQCGAQD1rAvw');

Procedure Banking;
Begin
If (FindDTM(RFish,x,y,MIX1,MIY1,MIX2,MIY2) Or FindDTM(CFish,x,y,MIX1,MIY1,MIX2,MIY2)) Then
Begin
If (FindPulley(X,Y)) Then
Begin
If FindDTM(RFish,x,y,MIX1,MIY1,MIX2,MIY2) Then FC := CountItems('dtm', RFish, []) Else FC := CountItems('dtm', CFish, []);
XP := (FC*380);
FFC := IntToStr(FC);
Writeln('Trying to bank ' + FFC + ' fish!');
OnScreenUpdate;
ClickMouse2(True);
Wait(RandomRange(2250,2750));
If PinScreen Then InPin(PP);
Wait(RandomRange(1000,1250));
If (FindDTM(RFish, x, y, MSX1, MSY1, MSX2, MSY2) Or FindDTM(CFish, x, y, MSX1, MSY1, MSX2, MSY2)) Then
Begin
Mouse(x,y,3,3,False);
Wait(RandomRange(700,850));
ChooseOption('ll');
ToFishing;
End Else ToFishing;
End Else
Begin
SymbolAccuracy := 0.35
FindSymbol(x,y,'bank');
Mouse(x,y,0,0,true);
Wait(RandomRange(1000,1300));
SymbolAccuracy := 0.80
Banking;
End;
End Else ToFishing;
End;

Here is the deposit for fish from Al's lrc if anyone wants to help port it so it works for gold ores.

Benny

2012-06-16 08:23:34

bump

Ashaman88

2012-06-16 08:28:21

Did you ask permission before posting about this?

Olly

2012-06-16 08:57:07

Sigh, This will bring back alot of leachers if he lets you release it.

putonajonny

2012-06-16 09:42:51

I don't like DTMs, so here is a way of doing it without them, you need to set GoldOreColour yourself to a the gold colour on the ore…
Function GoldOreInSpot(Spot : integer) : Boolean;
Var
B : TBox;
begin

B := InvBox(Spot);
if(CountColorTolerance(GoldOreColour, B.x1, B.y1, B.x2, B.y2, 10) > 10)then
Result := True;

end;

Function GoldOreInInvent : integer;
Var
i : integer;
begin

for i := 1 to 28 do
if(GoldOreInSpot(i))then
inc(Result);

end;

Procedure Banking;
Var
R, FC, XP, x, y : integer;
Points : array of TPoint;
Begin
If (GoldOreInInvent <> 0) Then
Begin
If (FindPulley(X,Y)) Then
Begin
FC := GoldOreInInvent;
XP := FC * 380;
Writeln('Trying to bank ' + IntToStr(FC) + ' ores!');
OnScreenUpdate;
ClickMouse2(True);
Wait(RandomRange(2250,2750));
If PinScreen Then //Its a deposit box so doesn't use pin right?
InPin(Players[CurrentPlayer].Pin);
Wait(RandomRange(1000,1250));
If(FindColorsTolerance(Points, GoldOreColour, MSX1, MSY1, MSX2, MSY2, 10))Then
Begin
R := Random(GetArrayLength(Points));
x := Points[R].x;
y := Points[R].y;
Mouse(x,y,3,3,False);
Wait(RandomRange(700,850));
ChooseOption('ll');
ToFishing;
End
Else
ToFishing;
End
Else
Begin
SymbolAccuracy := 0.35
FindSymbol(x,y,'bank');
Mouse(x,y,0,0,true);
Wait(RandomRange(1000,1300));
SymbolAccuracy := 0.80
Banking;
End;
End
Else
ToFishing;
End;

I don't understand this guys logic, but I haven't touched it…

blinkblink

2012-06-16 10:05:37

From: tristen8878

Here is the deposit for fish from Al's lrc if anyone wants to help port it so it works for gold ores.


Seems kind of obvious, replace the DTM of RFish & CFish with the DTM of Gold or Replace those Words with the Gold word you have for DTM - then it would work. Remember originally it checks for Rocktails(RFish) & Cavefish(CFish). You can do either these 2 and it wouldn't have issues.

Example:
  
RFish := DTMFromString('mrAAAAHic42BgYMhmYmDIBOJCIK4C4iIgzgHiRCCOBeLnQDV3gfgWlH4LxJ+B+AMQvwBij2APIMmEE3MBSXyYkQCGAQD1rAvw');
CFish := DTMFromString('mrAAAAHic42BgYLBlYmCwAmJXIPYHYg8gdgJiCyC2B2IORqAiKGYGYm4gFgJiFiD+BxRevLwASDLhxPwM+AEjAQwDAIoYBTU=');

//This would be for Gold Ore
GMined := DTMFromString('mWAAAAHicY2FgYJjBxMDQB8SzgHgxEAcyMjAEAbEHEHsD8eZ+KYZEPzOGTb2SDJkh1gz8QD3ImBENgwAA4fkIew==');

//This would be for Coal Ore
CMined := DTMFromString('mggAAAHicY2NgYMhjYmAoAuIkIM4C4gogLgHiJ0C52wwQ+g0QPwTiF0Csri4HxuGuBgzRnsYMWSHWDJKSwgz8QDlsmBEHhgAAKPUMHA==');

//Free The DTMs
FreeDTM(GMined);
FreeDTM(CMined);

Made changes of replacing the DTM words, It would look like this:
Procedure Banking;
Begin
If (FindDTM(GMined,x,y,MIX1,MIY1,MIX2,MIY2) Or FindDTM(CMined,x,y,MIX1,MIY1,MIX2,MIY2)) Then
Begin
If (FindPulley(X,Y)) Then
Begin
If FindDTM(GMined,x,y,MIX1,MIY1,MIX2,MIY2) Then FC := CountItems('dtm', GMined, []) Else FC := CountItems('dtm', CMined, []);
XP := (FC*380);
FFC := IntToStr(FC);
Writeln('Trying to bank ' + FFC + ' fish!');
OnScreenUpdate;
ClickMouse2(True);
Wait(RandomRange(2250,2750));
If PinScreen Then InPin(PP);
Wait(RandomRange(1000,1250));
If (FindDTM(GMined, x, y, MSX1, MSY1, MSX2, MSY2) Or FindDTM(CMined, x, y, MSX1, MSY1, MSX2, MSY2)) Then
Begin
Mouse(x,y,3,3,False);
Wait(RandomRange(700,850));
ChooseOption('ll');
ToFishing;
End Else ToFishing;
End Else
Begin
SymbolAccuracy := 0.35
FindSymbol(x,y,'bank');
Mouse(x,y,0,0,true);
Wait(RandomRange(1000,1300));
SymbolAccuracy := 0.80
Banking;
End;
End Else ToFishing;
End;

*Note* I added Coal in there… just for fun

Here is without the Coal Checks, Only Gold:
Procedure Banking;
Begin
If (FindDTM(GMined,x,y,MIX1,MIY1,MIX2,MIY2)) Then
Begin
If (FindPulley(X,Y)) Then
Begin
If FindDTM(GMined,x,y,MIX1,MIY1,MIX2,MIY2) Then FC := CountItems('dtm', GMined, []);
XP := (FC*380); //Change 380 with 65
FFC := IntToStr(FC);
Writeln('Trying to bank ' + FFC + ' fish!');
OnScreenUpdate;
ClickMouse2(True);
Wait(RandomRange(2250,2750));
If PinScreen Then InPin(PP);
Wait(RandomRange(1000,1250));
If (FindDTM(GMined, x, y, MSX1, MSY1, MSX2, MSY2)) Then
Begin
Mouse(x,y,3,3,False);
Wait(RandomRange(700,850));
ChooseOption('ll');
ToFishing;
End Else ToFishing;
End Else
Begin
SymbolAccuracy := 0.35
FindSymbol(x,y,'bank');
Mouse(x,y,0,0,true);
Wait(RandomRange(1000,1300));
SymbolAccuracy := 0.80
Banking;
End;
End Else ToFishing;
End;

blinkblink

2012-06-16 10:13:19

From: Ollybest
Sigh, This will bring back alot of leachers if he lets you release it.


And you think the LRC that Brandon had isn't shared around? LOL He had said if anybody wants it they can ask and anybody who still has them is allowed to share them the scripts *ONLY* if they wanted to.

Also it isn't as if LRC isn't already FULL of bots, heck PB has like 4 Banking LRC Mining Scripts for free.

tristen8878

2012-06-16 11:14:22

From: blinkblink
And you think the LRC that Brandon had isn't shared around? LOL He had said if anybody wants it they can ask and anybody who still has them is allowed to share them the scripts *ONLY* if they wanted to.

Also it isn't as if LRC isn't already FULL of bots, heck PB has like 4 Banking LRC Mining Scripts for free.


I don't like using injection bots on my main account using colour is much safer.

Ezio Auditore da Firenze

2012-06-16 11:17:05

Sweet project you got here :), all the best on future developments! :)

Edit: hit 300 post count woot!

Olly

2012-06-16 11:21:20

From: blinkblink
And you think the LRC that Brandon had isn't shared around? LOL He had said if anybody wants it they can ask and anybody who still has them is allowed to share them the scripts *ONLY* if they wanted to.

Also it isn't as if LRC isn't already FULL of bots, heck PB has like 4 Banking LRC Mining Scripts for free.


Woah man you getting a tad aggressive there was just putting my point out..

blinkblink

2012-06-16 11:21:53

From: tristen8878
I don't like using injection bots on my main account using colour is much safer.


Do you know how to read? ;)
I am stating the fact that there are other clients with Free LRC banking mining scripts…
as in saying this script released to the public bringing leechers will not make any difference.

Also if you want the color banking mining LRC script Brandon provided, just ask for it and anybody who wants to share it will PM it to you.

@ Ollybest
My post to you was not aggressive I am just saying the facts, now what I just replied in this post is aggressive :P

tristen8878

2012-06-16 11:31:28

From: blinkblink
Do you know how to read? ;)
I am stating the fact that there are other clients with Free LRC banking mining scripts…
as in saying this script released to the public bringing leechers will not make any difference.

Also if you want the color banking mining LRC script Brandon provided, just ask for it and anybody who wants to share it will PM it to you.

@ Ollybest
My post to you was not aggressive I am just saying the facts, now what I just replied in this post is aggressive :P


sweet do you recommend I try and keep it private or pm people who i can trust not to leak it.

tristen8878

2012-06-16 11:39:48

cheers blinkblink the banking works fine :)

blinkblink

2012-06-16 11:53:21

From: tristen8878
cheers blinkblink the banking works fine :)


You can share it with me if you want

Benny

2012-06-16 12:38:51

From: tristen8878
sweet do you recommend I try and keep it private or pm people who i can trust not to leak it.


I'll run some proggies for you :)

putonajonny

2012-06-16 12:41:37

From: tristen8878
sweet do you recommend I try and keep it private or pm people who i can trust not to leak it.


I think it is up to the guy who wrote the script originally, at the very least add an antileech

blinkblink

2012-06-16 13:15:52

From: putonajonny
I think it is up to the guy who wrote the script originally, at the very least add an antileech

I believe if an original script is open no antileech, if he is given permission it must remain as well *open no antileech.

Of course that is his decision, what I explained earlier won't change & its true it won't make a difference - w84 is lag fest 24/7 - Price has been crashing for months and that won't change until Nuke.

Sin

2012-06-16 13:18:45

From: blinkblink
I believe if an original script is open no antileech, if he is given permission it must remain as well *open no antileech.

Of course that is his decision, what I explained earlier won't change & its true it won't make a difference - w84 is lag fest 24/7 - Price has been crashing for months and that won't change until Nuke.


No…?
Since when did that rule come into account?

iBlank

2012-06-16 13:27:05

From: tristen8878
Hello all I have been porting Al's LRC Fisher so that it can mine gold ore in the living rock caverns. This was a private project for me only but I have deiced to release it to public once finished. This is a port from al's LRC fisher so I can not guarantee he we let me release this yet.


I don't mind, but in the future you might want to ask in advance before you make a thread like this. I will say if you make it public then I don't believe there should be an anti-leech. That being said, you have permission to use my code and what you do from that point on is up to you!

blinkblink

2012-06-16 13:42:11

From: Shay
No…?
Since when did that rule come into account?


Did I say it was a Rule? I said I believe, as in my own beliefs :P

Either way alevere4 just responded
"I will say if you make it public then I don't believe there should be an anti-leech. That being said, you have permission to use my code and what you do from that point on is up to you!"

tristen8878

2012-06-16 17:08:48

From: alevere4
I don't mind, but in the future you might want to ask in advance before you make a thread like this. I will say if you make it public then I don't believe there should be an anti-leech. That being said, you have permission to use my code and what you do from that point on is up to you!


thanks

Benny

2012-06-16 17:10:32

From: tristen8878
thanks


how's script coming along?

tristen8878

2012-06-16 17:18:36

From: -Benny
how's script coming along?


Changing paint so it's for mining and testing the run paths when you are attacked.

Benny

2012-06-16 17:20:10

From: tristen8878
Changing paint so it's for mining and testing the run paths when you are attacked.


sweet looking forward to seeing some mean proggies

iBlank

2012-06-16 17:23:33

Just my opinion, but I don't like the new poll. I think you should either make it public or keep it to yourself. The whole "limited amount of trusted people" is not very fair in my opinion and devalues the community. If you become a SRL member and release it in the member's section then that is fine but the "limited amount of trusted people" is too arbitrary and there is no fair way to decide who receives the script.

tristen8878

2012-06-16 17:24:32

From: -Benny
sweet looking forward to seeing some mean proggies


It's almost done but I do think it still needs a lot of work if am going to release it soon. Ill pm you the script once i think it's done so you can do some testing aswell.

Benny

2012-06-16 17:25:08

From: tristen8878
It's almost done but I do think it still needs a lot of work if am going to release it soon. Ill pm you the script once i think it's done so you can do some testing aswell.


Have you implemented any fail safes and sounds good with me man

tristen8878

2012-06-16 17:25:32

From: alevere4
Just my opinion, but I don't like the new poll. I think you should either make it public or keep it to yourself. The whole "limited amount of trusted people" is not very fair in my opinion and devalues the community. If you become a SRL member and release it in the member's section then that is fine but the "limited amount of trusted people" is too arbitrary and there is no fair way to decide who receives the script.


good point

imnewhere

2012-06-16 17:32:05

can some1 help me with this error compiling there is an error : Running MSI…
[Error] C:\Simba\Includes\srl/srl/misc/paintsmart.simba(560:12): Unknown identifier 'TPAFromEllipse' at line 559
Compiling failed.
[Error] (41:3): Unknown identifier 'SmartSetDebug' at line 40
Compiling failed.
[Error] (41:3): Unknown identifier 'SmartSetDebug' at line 40
Compiling failed.
Running MSI…
[Error] C:\Simba\Includes\srl/srl/misc/paintsmart.simba(560:12): Unknown identifier 'TPAFromEllipse' at line 559
Compiling failed.

thanks

Benny

2012-06-16 17:33:01

From: imnewhere
can some1 help me with this error compiling there is an error : Running MSI…
[Error] C:\Simba\Includes\srl/srl/misc/paintsmart.simba(560:12): Unknown identifier 'TPAFromEllipse' at line 559
Compiling failed.
[Error] (41:3): Unknown identifier 'SmartSetDebug' at line 40
Compiling failed.
[Error] (41:3): Unknown identifier 'SmartSetDebug' at line 40
Compiling failed.
Running MSI…
[Error] C:\Simba\Includes\srl/srl/misc/paintsmart.simba(560:12): Unknown identifier 'TPAFromEllipse' at line 559
Compiling failed.

thanks

wrong place to post… try the MIS section thanks

ABC!

2012-06-16 17:36:39

I have looked at the poll, and when you say give it to a limited number of people, do you mean just SRL members? or are you going to add anti-leech and release it to the public?

tristen8878

2012-06-16 17:38:41

From: ABC!
I have looked at the poll, and when you say give it to a limited number of people, do you mean just SRL members? or are you going to add anti-leech and release it to the public?


Am probs going to make it public still deciding atm

ABC!

2012-06-17 06:22:16

From: tristen8878
Am probs going to make it public still deciding atm


Ohh, okay, are you going to add anti-leech?

tristen8878

2012-06-17 15:11:14

From: ABC!
Ohh, okay, are you going to add anti-leech?


Not sure yet?

Google

2012-06-17 15:27:09

From: Shay
No…?
Since when did that rule come into account?


LOL? Was thinking the same thing, that had leech written all over it.

Bom

2012-06-17 15:46:26

Yes!!
I say release it because I need to get my mining up (I'm not a leecher btw) :)

cadet54

2012-06-18 02:16:11

Nice thread, the code on the first page of posts is very helpful, I have been working on the same but with harrys LRC miner, still struggling with banking a little bit, but will get there soon enough :P. switches gold nodes fine not tried coal.

Probably best not to release it to public, just trusted people, but up to you really, thanks for the useful stuff in the thread though :)

Benny

2012-06-18 02:19:41

From: cadet54
Nice thread, the code on the first page of posts is very helpful, I have been working on the same but with harrys LRC miner, still struggling with banking a little bit, but will get there soon enough :P. switches gold nodes fine not tried coal.

Probably best not to release it to public, just trusted people, but up to you really, thanks for the useful stuff in the thread though :)


your best bet for checking out banking in your script would be to hit up Al's LRC and look at his banking procedure. It's quite helpful

Silentcore

2012-06-18 12:27:52

Please keep it private..

blinkblink

2012-06-18 13:28:05

From: GOOGLE
LOL? Was thinking the same thing, that had leech written all over it.

hmm sorry but apparently you didn't read the response post or even original script makers post pretty much going with my idea. Also I am not a leecher I provide feedback(progress reports on every single script I use, and report bugs or ideas) and even on this thread Clearly told him how to get part of the script working *banking -You are probably one of those fags who thinks the way of not being a leecher is contributing making scripts, well I have not yet released a script since I am not yet ready to make any complete ones or even full knowledge yet(I did make a Chinning Range script, its horrible but you can find it on the request scripts pages)-. And apparently you did not realize I have AshamanggzzLRC so its not like I am needing this urgency of a free banking lrc mining script… when clearly even Brandon said if anybody asks for the scripts anybody can share it with them if they wanted.

As for OP lets try to work on a Death walk, we do have a few scripts that support it which means we could try hard experimenting to probably implement it… of course that is if you haven't already implemented it

[D]ude

2012-06-18 14:39:35

Awesome! I lost my version of brandon's lrc. Can't wait for this one though. :D

E: 4 posts till Junior!

Mew

2012-06-23 01:52:56

Good job! I want this to be another money making method after I have fished my 32K Rocktails! :P
Good luck! :D
I cant wait for this! If you need any beta testers just tell me!

Im New Sry

2012-07-01 14:01:15

Good luck mate, though you're almost there. And you should put some good anti-leech to avoid leechers using your script and motivate people to learn to script. :)

Eustass

2012-07-01 17:06:00

From: -Benny
your best bet for checking out banking in your script would be to hit up Al's LRC and look at his banking procedure. It's quite helpful


Exactly thats what i was doing till now lol its not easy though kept failing :duh:

TehNeonFishy

2012-07-05 23:30:26

From: Ollybest
Sigh, This will bring back alot of leachers if he lets you release it.


You could always put anti-leech to make you get you're own colour or something I suppose.

Im New Sry

2012-08-16 09:46:28

How is this project going so far?

tristen8878

2012-09-19 05:37:28

sorry guys just haven't really been online due to college and exams but I will release this soon because I had almost finished it

Benny

2012-09-19 06:26:39

Good luck