SRL Archive - RS3 Outdated / Broken Scripts

[COLOR] Tim0's Barb Village Fooker (Fisher/Cooker)


Tim0suprem0

2010-06-22 15:39:45

<<<>>> Tim0's Barb Village Fooker<<<>>>
By:
Tim0Suprem0


Fishes and cooks trout and salmon at Barbarian Village :p

Start script at or near the north fishing spot at Barbarian Village. Have feathers, fly rod and tinderbox in inventory. Hatchet can be equipped or in inventory.

Features
  • Choice to eat or drop fish
  • Optional Autoresponder
  • - Flexible nickname finding - Stops talking to same people - Default settings fake bad English - Customizeable responses
  • Antiban

Credits
  • IceFire908 and Narcle for helping with ChooseOptionMultiEx
  • Bugger0001 for help with switching spots
  • masquerader, Mr. Klean and driger1592 for being from
  • Wisconsin and therefore awesome
  • Yohojo because he's a boss
  • EvilChicken! for script feedback
  • SRL for being full of such chill bros

Known Bugs
-None atm!

Changelog
  • Version 1.02
  • - More reliable cooking - drop speed increased - typo in autoresponder fixed - couple more failsafes added - fixed a logic error in progress reports - fixed a logic error in player switching

Future Changes
  • If fire goes out before all fish are cooked, option to just leave them and cook them next round, instead of chopping and lighting for just a couple left over fish
  • more human-like antiban
  • Reflection based banking

Please post progress reports

No one has tested this script besides me, so please leave feedback as well :)

Najorin

2010-06-22 16:02:23

I'll get a proggy up soon! I hope it compares to Bbri's, and I have a feeling it will if it cooks… But the thing it lacks is banking :/ I can get around 15 loads/hour on his which includes banking, but no cooking, and an average of 1500 fishing exp per load. I'm just tryin to say it's not too too long to bank (:

EDIT: Simba compatible?

bbri06

2010-06-22 16:54:47

Flawless banking can be incredibly difficult with color though, c0rrupt f1r3. It is definitely possible though. Also, if you change CTS 3 to 2, then it should work for Simba.

Tim0 : For your bug with hovering over the fishing spot, you could try something like


function BubblesAC: integer;
begin
// Autocolor for the bubbles in the water
// ACA made one that worked fine for me
end;

function CheckBug: boolean;
var
Colors : TPointArray;
begin
if(IsUpText('Lure'))then
begin
GetMousePos(x, y);
FindColorsTolerance(Colors, BubblesAC, x - 15, y - 15, x + 15, y + 15, 5);
if(Length(Colors) > 5)then
begin
MMouse(x + Random(100), y + Random(100), 3, 3);
Result := True;
end;
end;
end;

Tim0suprem0

2010-06-22 21:33:44

From: c0rrupt f1r3
I'll get a proggy up soon! I hope it compares to Bbri's, and I have a feeling it will if it cooks… But the thing it lacks is banking :/ I can get around 15 loads/hour on his which includes banking, but no cooking, and an average of 1500 fishing exp per load. I'm just tryin to say it's not too too long to bank (:

EDIT: Simba compatible?


I wanted to make it all color as a personal challenge, but I think with reflection adding banking shouldn't be a problem. I don't know how to use reflection at all (I was inactive when reflection came out) and I've never used java bots before, but maybe I'll try and learn so I can add banking.

I have no idea if it's Simba compatible, I'll give it a look.

From: bbri06
Flawless banking can be incredibly difficult with color though, c0rrupt f1r3. It is definitely possible though. Also, if you change CTS 3 to 2, then it should work for Simba.

Tim0 : For your bug with hovering over the fishing spot, you could try something like


function BubblesAC: integer;
begin
// Autocolor for the bubbles in the water
// ACA made one that worked fine for me
end;

function CheckBug: boolean;
var
Colors : TPointArray;
begin
if(IsUpText('Lure'))then
begin
GetMousePos(x, y);
FindColorsTolerance(Colors, BubblesAC, x - 15, y - 15, x + 15, y + 15, 5);
if(Length(Colors) > 5)then
begin
MMouse(x + Random(100), y + Random(100), 3, 3);
Result := True;
end;
end;
end;


Thanks I'll add a check for it in the next version, so far it's only happened to me once in testing.

Also, I can't run this on SMART because after it finds the fishing spot, it right clicks, but then doesn't click on the text 'Lure'. So it tries again, and the second time, I get an access violation in Text.scar (in ChooseOptionMultiEx, which IceFire just fixed). Am I implementing SMART wrong? Do I need SetTargetDC(SmartGetDC) or ActivateClient or something? Help with this would be appreciated.

Thanks for the feedback guys!

Najorin

2010-06-22 21:45:51

From: Tim0suprem0
I wanted to make it all color as a personal challenge, but I think with reflection adding banking shouldn't be a problem. I don't know how to use reflection at all (I was inactive when reflection came out) and I've never used java bots before, but maybe I'll try and learn so I can add banking.

I have no idea if it's Simba compatible, I'll give it a look.


Yeah, first try through, had everything set up (and in simba, so it could just be that, but it appeared to work awesome at first) and about halfway through the first load, it switched fishing spots when both lure spots were at the more northern fishing spot. So, after it couldn't ID the lure spot, it logged…

Tim0suprem0

2010-06-23 13:35:48

From: c0rrupt f1r3
Yeah, first try through, had everything set up (and in simba, so it could just be that, but it appeared to work awesome at first) and about halfway through the first load, it switched fishing spots when both lure spots were at the more northern fishing spot. So, after it couldn't ID the lure spot, it logged…


This just started happening to me too. The problem is fishing spot detection (fishing.scar), not the script. I've increased the number of tries to find the spots in the next version of the script. Since it now fails to find the spot very often.

Also, don't use Simba, there's some difference in the way Simba does DTM's so it really doesn't work very well (aka at all). I'm going to try and make it Simba compatible when I have time.

Najorin

2010-06-23 16:41:54

Yeah, definitely sounds good. But really consider adding banking, as fishing can then just be an exponential skill. Ex. you start off 1k feathers, fish all of that, cook them, and if they're then banked, you can sell them, and buy 2k feathers, let's say. Without banking you kind of end the endless fishing loop that people do. And it's not a big deal if it loses 2-3 invens/hour cause it's not like your playing :p

Tim0suprem0

2010-06-23 20:38:51

From: c0rrupt f1r3
Yeah, definitely sounds good. But really consider adding banking, as fishing can then just be an exponential skill. Ex. you start off 1k feathers, fish all of that, cook them, and if they're then banked, you can sell them, and buy 2k feathers, let's say. Without banking you kind of end the endless fishing loop that people do. And it's not a big deal if it loses 2-3 invens/hour cause it's not like your playing :p


I mean kind of… 2k feathers costs you 30k and is enough to get you to level 50, where you can fish swords for like an hour to make enough money to buy that many feathers all over again :)

Anyways, I'll be putting an updated version up soon.

Tim0suprem0

2010-06-24 01:56:48

Version 1.02 is out! Make sure you have the latest SRL dev revision otherwise ChooseOption won't work for you and the script will fail! :p

Thanks Narcle, Nava and IceFire for dealing with me today!

YoHoJo

2010-06-24 02:08:07

Aww thanks, I'm boss.
Banking would be semi-hard to make reliable you should have option that if banking screws up to just drop/eat them as a failsafe and then continue fishing.

Another good idea would be to cook at the fires inside the barbarian house thingy. Lots of shades of brown colors and I think a door in the way, but there are permanent fires inside there I believe.

Also, add script stats because they are neat!

Tim0suprem0

2010-06-24 02:17:32

From: YoHoJo
Aww thanks, I'm boss.
Banking would be semi-hard to make reliable you should have option that if banking screws up to just drop/eat them as a failsafe and then continue fishing.

Another good idea would be to cook at the fires inside the barbarian house thingy. Lots of shades of brown colors and I think a door in the way, but there are permanent fires inside there I believe.

Also, add script stats because they are neat!


Right now banking will only occur if I learn how to do Reflection, which isn't super high on my list of stuff to do :p

I chose not to cook inside the house just because it involves a lot more walking, and walking is usually where color based scripts screw up. The trees are right by the fishing spots, so if it messes up, it's a lot easier to recalibrate and keep going.

And what do you mean by stats? I have it registered for SRL stats if that's what you're talking about :)