Results 1 to 14 of 14

Thread: How to fish?

  1. #1
    Join Date
    Dec 2009
    Location
    Mukilteo, Washington USA
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to fish?

    I was wondering how I mine for fish?

    I'm working on a fish and bank script for Monkfish, I believe I have the inventory and banking part down, but I'm totally clueless on how to effectively make it walk to the water, find a spot, and how to select netting.

    For finding the spot, that I have absolutely positively no clue how to do. There's a FindFishSpot function in SRL I don't know how to set up. I tried to find how from 3Garrett3's Karamja fisher, but deciphering that is out of my league right now.

    And once it finds the spot, how would I have it right click said spot? Something to do with: R_ChooseOption('Net') ?

    tl;dr version
    How to find fishing spot?
    How to right click and net?
    Last edited by scubajesus; 06-19-2010 at 10:03 PM.

  2. #2
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    I have a very easy fishing script in first script section. Maybe that will help?

    PHP Code:
    procedure FindFish;
    var
      
    i:Integer;
      
    AllNPCs:array of TNPC;
      
    ClickingPoint:TPoint;
    begin
      AllNPCs 
    := GetNPCs;
      for 
    := 0 to (length(AllNPCs)-1) do
      
    begin
         
    if(AllNPCs[i].Name 'Fishing spot'then
         begin
           ClickingPoint 
    := TileToMs(AllNPCs[i].Tile,0);
           
    Mouse(ClickingPoint.x,ClickingPoint.y,10,10,True);
           Exit;
         
    end;
      
    end;
    end
    Or this one, this will find the closest one:

    PHP Code:
    procedure FindFish;
    var
      
    i,j,k:Integer;
      
    AllNPCs:array of TNPC;
      
    ClickingPoint:TPoint;
    begin
      AllNPCs 
    := GetNPCs;
      
    := 9999;
      for 
    := 0 to (length(AllNPCs)-1) do
      
    begin
         
    if(AllNPCs[i].Name 'Fishing spot'then
         begin
           
    if(DistanceFrom(AllNPCs[i].tile) < kthen
           begin
              k 
    := DistanceFrom(AllNPCs[i].tile);
              
    := i;
           
    end;
         
    end;
      
    end;
      if( 
    0then
        
    exit;
      
    ClickingPoint := TileToMs(AllNPCs[j].Tile,0);
      
    Mouse(ClickingPoint.x,ClickingPoint.y,10,10,True);
      
    wait(1500+random(1000));
      
    Writeln(' Found fish! ' IntToStr(AllNPCs[j].Tile.x) + ' ' IntToStr(AllNPCs[j].Tile.y));
    end
    Also add a "if(tileOnMS(AllNPCs[j].Tile)) then" failsafe.
    Last edited by masterBB; 06-19-2010 at 11:08 PM.

  3. #3
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Quote Originally Posted by scubajesus View Post
    I was wondering how I mine for fish?

    I'm working on a fish and bank script for Monkfish, I believe I have the inventory and banking part down, but I'm totally clueless on how to effectively make it walk to the water, find a spot, and how to select netting.

    For finding the spot, that I have absolutely positively no clue how to do. There's a FindFishSpot function in SRL I don't know how to set up. I tried to find how from 3Garrett3's Karamja fisher, but deciphering that is out of my league right now.

    And once it finds the spot, how would I have it right click said spot? Something to do with: R_ChooseOption('Net') ?

    tl;dr version
    How to find fishing spot?
    How to right click and net?
    Color only or Ref + color?
    Hi

  4. #4
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I don't think that you can mine for fish.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  5. #5
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Sex View Post
    I don't think that you can mine for fish.
    Well you can always try? Maybe jagex has added some rockfish in there?
    There used to be something meaningful here.

  6. #6
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ah, hadn't thought about that. Perhaps...
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  7. #7
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    To keep things simple, perhaps use FindColor to search for colors and move on from there.

    I'm not sure if you are coming from a macroing community such as RSBot where there are APIs for things like that, but in general, you write the scripts and the include is here to aid you in doing so. Taking the really complicated bits out of it for you. We promote the learning of concepts behind logical programming techniqques and try to have our folks develop real-life applicable thought patterns, and skills.

    If you want more help, feel free to ask more on this forum or perhaps check out the irc channel irc://irc.rizon.net/#srl or the tutorial island
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    I would use an autocolor based ATPA for finding the fishing spots. and from there, using mouse(...false); would bring up a right click option. then use chooseoption(); to choose the net.

  9. #9
    Join Date
    Dec 2009
    Location
    Mukilteo, Washington USA
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How I Mine For Fish was a joke a web comic made about noobs in mmo's, had to throw that out since it popped in my head when I asked how to fish.

    @Nava2
    SRL here is the first community for macroing I've been in. I tried to pick up SCAR back when there was only RSC but I was too young and didn't have the attention span >.>
    I picked up RS after a break, and decided I didn't want to alch tens of thousands of times and work two jobs. I read through a bit of the tutorials, and did searches in there, but couldn't find anything about fishing spots. Mostly 5+ guides on DTM, several beginner basic tutorials. I wasn't sure if FindColor would work since the spots are animated, so I came to ask what way to do it.

    Thanks for your help everyone. Once I fix up this script, add some anti-bans, and make sure it runs smoothly I'll post it.

  10. #10
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Are you going to use reflection or color?

  11. #11
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Just so you know, when SCAR/Simba reads from the client. They actually read from a still image of the client. Thus, when you call FindColor, it will actually look for the colour regardless if its moving!
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  12. #12
    Join Date
    Dec 2009
    Location
    Mukilteo, Washington USA
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Nava, didn't know that.
    Reflection script.
    I used masterBB's post on find closest NPC, and move to bank and water using tiles near them. I tried modifying the bankNPC function to work for Arnold there, changing name and colors to him, but then the colors would change slightly and I haven't read into how to make it catch and fix that (if it can.) So it finds him through closest NPC too. Deposits through InvMouse(2, 2) and Deposit-All.

    Couple anti-bans, and anti-random thrown in. Works pretty good, only flaws I'm having are I don't know how to make it use bank pin, and sometimes it misses it's right click on Arnold (can't blame it for that, jerk won't stand still and even I miss him sometimes.)

  13. #13
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sex View Post
    I don't think that you can mine for fish.
    I hear, however, that mining yews is quite popular, or was, anyway.

    Back in the days of level 3 nub defaults.

    ~The Otter

  14. #14
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Please people, let's stop the spam.

    Scuba:
    // * function InPin(Pin: string): Boolean;
    combined with Players[CurrentPlayer].Pin is the answer you need for inserting the pin It's within the SRL include already.

    http://villavu.com/repositories/srl-...core/Bank.scar
    Is where you can find it, and to find examples on how to use it, you can read through the banking functions that are in there as well

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

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
  •