Results 1 to 11 of 11

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

  1. #1
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

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

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

    Fishes and cooks trout and salmon at Barbarian Village

    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
    Last edited by Tim0suprem0; 06-24-2010 at 06:50 AM.

  2. #2
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  3. #3
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

    SCAR Code:
    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;
    Last edited by bbri06; 06-22-2010 at 09:13 PM.

  4. #4
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by c0rrupt f1r3 View Post
    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.

    Quote Originally Posted by bbri06 View Post
    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

    SCAR Code:
    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!

  5. #5
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Tim0suprem0 View Post
    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...

  6. #6
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by c0rrupt f1r3 View Post
    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.

  7. #7
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  8. #8
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by c0rrupt f1r3 View Post
    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
    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.

  9. #9
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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!

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

  10. #10
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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!

  11. #11
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    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

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •