Page 8 of 11 FirstFirst ... 678910 ... LastLast
Results 176 to 200 of 271

Thread: [RS3] [SRL-6] iFlyFisher [Barbarian fly fishing at its finest!]

  1. #176
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Miningboy11 View Post
    begin
    writeWarn('*** Terminating script ***');
    writeDebug('Logging out');
    if isLoggedIn() then
    players[currentPlayer].logout();
    writeDebug('Freeing BMPs');

    111-116

  2. #177
    Join Date
    Jun 2014
    Posts
    369
    Mentioned
    14 Post(s)
    Quoted
    217 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    do you have a skype?

  3. #178
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    dying atm
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  4. #179
    Join Date
    Jan 2015
    Location
    Left Of Sanity
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default

    Well, I feel like such an idiot. It seems a simple restart fixed the issue with ATPA distance being stuck at 0

    Small proggy for you


  5. #180
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by TotalMassacre View Post
    Well, I feel like such an idiot. It seems a simple restart fixed the issue with ATPA distance being stuck at 0

    Small proggy for you

    Yeah that generally fixes it but I'm working on a rewrite of the entire script which absolve that problem entirely

    Here's the current changelog:

    Code:
    (* 2.0 changes:
    
    I've rewritten this script more or less from scratch. The rewrite is being dome using my new framework (it'll look
    familliar if you've ever used iOak) and I've revamped almost every routine in the script to be far more efficient,
    and faster. Random issues and quirks with this script are now a thing of the past - before, it was simply "passable"
    as a flawless iScript. Now, it truly earns that title. You can check the thread for a (huge) list of changes, but
    meanwhile here's a list of what 2.0 has in store for you as the end-user:
    
    -fixed level checking inaccuracies
    -fixed ATPA length errors
    -feather detection is now DTM based
    -automatic downloading of required files
    -walking/banking
    -better antiban
    
    
    Done:
    -try..except for freeing bmps/dtms from memory
    -fixed Lape standards and styling across the board
    -removed getInfo()
    -reworked scriptTerminate() -> stop()
    -updated initScript()
    -updated colorInfo type & relocated type declaration to below user setup
    -updated writeDebug/Warn/Error()
    -reworked setupStuff() -> multiple init*() procs
    -added getPrice(), getFile(), .centerPoint(), .debugTpa2(), mouseRandom(), all of which are utilized
    -automatic downloading of required files (proggy image, sps map) into a home folder (../Simba/Scripts/iFlyFisher)
    -removed isSpotGone()
    -added full SPS suite, the whole shebang: locate(), walk(), and initPaths() + proper loading of map
    -added .waitFlagExists(), .randomAngle() + additional compass direction constants
    -reworked both the literal mainloop and mainLoop()
    -reworked paintProggy() -> redraw()
    -renamed TTimeMarkers to 't' instead of the weird names I had previously o_O
    -changed all intToStr() -> toStr()
    -reworked antiPattern()
    -total rework of variables concerning organization and scope
    -reworked dropFish() -> drop()
    -reworked getFeathers() -> hasFeathers()
    -set proper coords for locate()'s position checks
    -new setup constant that turns banking on or off
    
    
    In progress:
    -reworked & merged findFishingSpot() + doEverything() -> fish()
    -added bank()
    
    
    Todo:
    -proper loading of proggy image, to be used in progress reporting
    -added a check to randomAngle() so we don't turn to a direction we're already at
    -gp lost/hr, gp gained/hr, and xp/hr stats to proggy
     *)
    Take that for what you will, it's still not finished

    Thanks for the proggy
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  6. #181
    Join Date
    Dec 2014
    Posts
    188
    Mentioned
    3 Post(s)
    Quoted
    100 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Yeah that generally fixes it but I'm working on a rewrite of the entire script which absolve that problem entirely

    Here's the current changelog:

    Code:
    (* 2.0 changes:
    
    I've rewritten this script more or less from scratch. The rewrite is being dome using my new framework (it'll look
    familliar if you've ever used iOak) and I've revamped almost every routine in the script to be far more efficient,
    and faster. Random issues and quirks with this script are now a thing of the past - before, it was simply "passable"
    as a flawless iScript. Now, it truly earns that title. You can check the thread for a (huge) list of changes, but
    meanwhile here's a list of what 2.0 has in store for you as the end-user:
    
    -fixed level checking inaccuracies
    -fixed ATPA length errors
    -feather detection is now DTM based
    -automatic downloading of required files
    -walking/banking
    -better antiban
    
    
    Done:
    -try..except for freeing bmps/dtms from memory
    -fixed Lape standards and styling across the board
    -removed getInfo()
    -reworked scriptTerminate() -> stop()
    -updated initScript()
    -updated colorInfo type & relocated type declaration to below user setup
    -updated writeDebug/Warn/Error()
    -reworked setupStuff() -> multiple init*() procs
    -added getPrice(), getFile(), .centerPoint(), .debugTpa2(), mouseRandom(), all of which are utilized
    -automatic downloading of required files (proggy image, sps map) into a home folder (../Simba/Scripts/iFlyFisher)
    -removed isSpotGone()
    -added full SPS suite, the whole shebang: locate(), walk(), and initPaths() + proper loading of map
    -added .waitFlagExists(), .randomAngle() + additional compass direction constants
    -reworked both the literal mainloop and mainLoop()
    -reworked paintProggy() -> redraw()
    -renamed TTimeMarkers to 't' instead of the weird names I had previously o_O
    -changed all intToStr() -> toStr()
    -reworked antiPattern()
    -total rework of variables concerning organization and scope
    -reworked dropFish() -> drop()
    -reworked getFeathers() -> hasFeathers()
    -set proper coords for locate()'s position checks
    -new setup constant that turns banking on or off
    
    
    In progress:
    -reworked & merged findFishingSpot() + doEverything() -> fish()
    -added bank()
    
    
    Todo:
    -proper loading of proggy image, to be used in progress reporting
    -added a check to randomAngle() so we don't turn to a direction we're already at
    -gp lost/hr, gp gained/hr, and xp/hr stats to proggy
     *)
    Take that for what you will, it's still not finished

    Thanks for the proggy
    When is it going to be released?

  7. #182
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by srpronto View Post
    When is it going to be released?
    Soon™

    In the meantime, here's a more current changelog.

    Code:
    (* 2.0 changes:
    
    I've rewritten this script more or less from scratch. The rewrite is being done using my new framework (it'll look
    familliar if you've ever used iOak) and I've revamped almost every routine in the script to be far more efficient,
    and faster. Random issues and quirks with this script are now a thing of the past - before, it was simply "passable"
    as a flawless iScript. Now, it truly earns that title. You can check the thread for a (huge) list of changes, but
    meanwhile here's a list of what 2.0 has in store for you as the end-user:
    
    -fixed level checking inaccuracies
    -fixed ATPA length errors
    -3,000+ lines shorter
    -feather detection is now DTM based
    -automatic downloading of required files
    -walking/banking
    -better antiban
    -better camera management
    
    
    Done:
    
    Note that while scripting, one things leads to another and I often go on long tangents of fixing/adding a ton of stuff.
    As a result, some things never get documented.
    I strive to provide complete changelogs, but with an update this large ... it's just not completely possible.
    
    -try..except for freeing bmps/dtms from memory
    -fixed Lape standards and styling across the board
    -removed getInfo()
    -reworked scriptTerminate() -> stop()
    -updated initScript()
    -updated colorInfo type & relocated type declaration to below user setup
    -updated writeDebug/Warn/Error()
    -reworked setupStuff() -> multiple init*() procs
    -added getPrice(), getFile(), .centerPoint(), .debugTpa2(), mouseRandom(), all of which are utilized
    -automatic downloading of required files (proggy image, sps map) into a home folder (../Simba/Scripts/iFlyFisher)
    -removed isSpotGone()
    -added full SPS suite, the whole shebang: locate(), walk(), and initPaths() + proper loading of map
    -added .waitFlagExists(), .randomAngle() + additional compass direction constants
    -reworked both the literal mainloop and mainLoop()
    -reworked paintProggy() -> redraw()
    -renamed TTimeMarkers to 't' instead of the weird names I had previously o_O
    -changed all intToStr() -> toStr()
    -reworked antiPattern()
    -total rework of variables concerning organization and scope
    -reworked dropFish() -> drop()
    -reworked getFeathers() -> hasFeathers(), automatic feather detection now (no need to set a slot!)
    -set proper coords for locate()'s position checks
    -new setup constant that turns banking on or off
    -added switch() for switching between fishing spots
    -added .isAngle() for better angle setting, MUCH smoother camera movement
    -reworked & merged findFishingSpot() + doEverything() -> fish()
    
    
    In progress:
    -added bank()
    -let the user set which display mode they want and load specific colors for each one (this is done because colors are wayyyy different across the two modes, so ACA'ing them both isn't an option)
    
    
    Todo:
    -proper loading of proggy image, to be used in progress reporting
    -added a check to randomAngle() so we don't turn to a direction we're already at
    -gp lost/hr, gp gained/hr, and xp/hr stats to proggy
    -find out why sps isn't working at an angle other than north
    
    Known issues:
    -The north spot and south spot are referred to by the script as the west spot and east spot, respectively. I don't know what I was smoking when I wrote that bit.
     *)
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  8. #183
    Join Date
    Aug 2013
    Posts
    159
    Mentioned
    4 Post(s)
    Quoted
    90 Post(s)

    Default

    I see you plan to update but I'd like to mention a few small changes.
    Simba Code:
    if (tabBackpack.count <> startCount) then
      begin
      result := true;
      end
      else
      result := false;
    change this to:
    Simba Code:
    if (tabBackpack.count <> startCount) then
        result := true
      else
        result := false;
    and in findFishingSpot
    Simba Code:
    end else
         begin
          result := false;
         end;
    ////to
        end else
          result := false;
    You could also fix some of the spacing, two spaces at the start of each line.(I'm sure you know that and prob don't care enough to)
    Example:
    Simba Code:
    function moveMouseCircle(mainscreen:TBox):boolean;
    begin
    case random(4) of
    1: mouseBox(mainscreen);
    2: mouseOval(randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(10, 50), randomRange(50, 60));
    3: mouseCircle(randomRange(50, 100), randomRange(50, 100), randomRange(25, 50));
    end;
    end;
    ////to
    function moveMouseCircle(mainscreen:TBox):boolean;
    begin
      case random(4) of
        1: mouseBox(mainscreen);
        2: mouseOval(randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(10, 50),  randomRange(50,    60));
        3: mouseCircle(randomRange(50, 100), randomRange(50, 100), randomRange(25, 50));
      end;
    end;
    I just love seeing the ends stack up diagonally.

  9. #184
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    I see you plan to update but I'd like to mention a few small changes.
    Simba Code:
    if (tabBackpack.count <> startCount) then
      begin
      result := true;
      end
      else
      result := false;
    change this to:
    Simba Code:
    if (tabBackpack.count <> startCount) then
        result := true
      else
        result := false;
    and in findFishingSpot
    Simba Code:
    end else
         begin
          result := false;
         end;
    ////to
        end else
          result := false;
    You could also fix some of the spacing, two spaces at the start of each line.(I'm sure you know that and prob don't care enough to)
    Example:
    Simba Code:
    function moveMouseCircle(mainscreen:TBox):boolean;
    begin
    case random(4) of
    1: mouseBox(mainscreen);
    2: mouseOval(randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(10, 50), randomRange(50, 60));
    3: mouseCircle(randomRange(50, 100), randomRange(50, 100), randomRange(25, 50));
    end;
    end;
    ////to
    function moveMouseCircle(mainscreen:TBox):boolean;
    begin
      case random(4) of
        1: mouseBox(mainscreen);
        2: mouseOval(randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(randomRange(100, 200), randomRange(100, 150)), randomRange(10, 50),  randomRange(50,    60));
        3: mouseCircle(randomRange(50, 100), randomRange(50, 100), randomRange(25, 50));
      end;
    end;
    I just love seeing the ends stack up diagonally.
    Thanks for the suggestions for the first one, I've actually already changed it to
    Simba Code:
    result := (tabBackpack.count() <> startCount);
    - Not sure what I was thinking with all those ends/elses

    I've also removed moveMouseCircle() altogether, using sleepAndMoveMouse() in its stead

    Thanks!
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  10. #185
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

  11. #186
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by giavanni6 View Post
    Thanks. Note to self: update OP with this later.

    My PC died on me so the rewrite for both this and iAlch will be delayed.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  12. #187
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Thanks. Note to self: update OP with this later.

    My PC died on me so the rewrite for both this and iAlch will be delayed.
    I haven't tried Ialch, but this script runs excellently. Sorry to hear about your computer, was it physically destroyed? What happened?

  13. #188
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by giavanni6 View Post
    I haven't tried Ialch, but this script runs excellently. Sorry to hear about your computer, was it physically destroyed? What happened?
    Don't, it's really bad right now. I'm going to fix it.

    I don't know what happened, I think the PSU died on me. An easy fix, I just don't know when I'll get around to replacing it.

    I've been having non-dumping crashes (i.e. not BSOD/kernel panic) about every fifteen minutes after boot. The screen distorts into diagonal horizontal lines, the colors of which are relevant to what was just on the screen. All input and output devices stop responding, the only way to kill the system is a hard reset.

    The graphics card is less than a year old, $200 AMD Radeon 200 series, but the PSU is a 600W piece of crap that I dug out of my garage to support the graphics card. Every device drawing power from the PC itself (via USB) such as external HDDs and the LEDs on various peripherals will also die when the crash occurs - these factors lead me to suspect the PSU.

    Figures the only machine I kept Windows on dies ... heh
    Last edited by KeepBotting; 02-10-2015 at 11:15 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  14. #189
    Join Date
    Mar 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Don't, it's really bad right now. I'm going to fix it.

    I don't know what happened, I think the PSU died on me. An easy fix, I just don't know when I'll get around to replacing it.

    I've been having non-dumping crashes (i.e. not BSOD/kernel panic) about every fifteen minutes after boot. The screen distorts into diagonal horizontal lines, the colors of which are relevant to what was just on the screen. All input and output devices stop responding, the only way to kill the system is a hard reset.


    The graphics card is less than a year old, $200 AMD Radeon 200 series, but the PSU is a 600W piece of crap that I dug out of my garage to support the graphics card. Every device drawing power from the PC itself (via USB) such as external HDDs and the LEDs on various peripherals will also die when the crash occurs - these factors lead me to suspect the PSU.

    Figures the only machine I kept Windows on dies ... heh

    It does indeed sound like it is the PSU. Hopefully nothing's wrong with the motherboard and nothing has been shorted out.

    If you don't mind a non-modular PSU, this 600b is perfect for it's price: http://www.newegg.com/Product/Produc...-014-_-Product

    I used to be really into hardware and was one of the top contributors in the HW section on HackForums before I went on hiatus, PM me if you need help or anything.

  15. #190
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    So I was looking at debug the script keeps force logging out. Debug referencing Fatal error: No feathers (there are feathers in slot 1, and I have it set to slot 1) There are several others I will have to check those when I get off work and am able to give more information. @KeepBotting

  16. #191
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    @KeepBotting
    [DEBUG] : Setting gametab.
    ---- TRSGameTab.__initTabs(): Setup gametab properties
    -- TRSGameTabs.openTab(2)
    ---- Opening tab via gametab navigation bar
    -- TRSGameTabs.openTab(2): result = False
    [DEBUG] : Grabbed feather amount (7607) in: 0 ms.
    [DEBUG] : Grabbed XP in: 47 ms.
    [DEBUG] : Starting with XP: 50696.
    -- TRSGameTabs.openTab(1)
    ---- Opening tab via gametab navigation bar
    -- TRSGameTabs.openTab(1): result = False
    [DEBUG] : Current fishing level is: -1.

    [ERROR] : *** FATAL ERROR: Your fishing level is not sufficient to catch trout (lv. 20) and/or salmon (lv. 30)!


    [WARNING] : *** Terminating script ***

    [DEBUG] : Logging out

    As in my last post (unsure why it's not showing up I believe due to needing to be verified first) it is also showing fatal error no feathers found. There are indeed feathers (it's over 9,000) in slot 1 which is also set as my slot within the script. Restarting the script and it gives different fatal errors each time usually these 2. Sometimes it happens immediately, sometimes it takes 10-180 minutes.
    Last edited by Clutch; 03-06-2015 at 12:12 AM.

  17. #192
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    @OzoneClutch; I got a notitification that you posted here but eithet it was deleted or I'm going insane ... either way if you have a question feel free to ask PM it to me if it's something that can't/won't be discussed on a public thread
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  18. #193
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    @OzoneClutch; I got a notitification that you posted here but eithet it was deleted or I'm going insane ... either way if you have a question feel free to ask PM it to me if it's something that can't/won't be discussed on a public thread
    @KeepBotting
    Apparently it keeps getting deleted. I've typed it out 4 different times now each one getting consecutively longer. Ultimately I resolved the issue. Also, I can't PM until I have 10 posts, but apparently I can't even post (logic 101). Nothing against the rules was said, just a simple matter of getting some debug information.

  19. #194
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    @OzoneClutch; I got a notitification that you posted here but eithet it was deleted or I'm going insane ... either way if you have a question feel free to ask PM it to me if it's something that can't/won't be discussed on a public thread
    @KeepBotting
    Yes I did, thanks for responding to my thread earlier (which got removed as well somehow) You may get another mention admins are expirementing with me so you may or may not see this. Ultimately I was getting an error about having a negative fishing level and being out of feathers. User error, I got rid of all the excess windows ex. clan chat and only have backpack and skills open and it resolved the issue. EXP counter still isn't working I did your suggestion of putting it in the chat but that DNR. Not a big issue though so don't feel worried about resolving that (on my end at least) unless you know of an immediate solution or what I'm doing wrong.

    Edit: Off topic but my script that I am working on I am trying to find out how to insert an e-mail. I've decided at this point I was just gonna work on calling in like a global variable so that you can just insert a pre-made e-mail at the top of the script. That aside, are there includes for the character creation screen (I looked and couldn't find anything) if not, suggestions on how to get a randomized string and add it to a set string (@domain.com)? Feel free to ignore this last part as it is off topic, just at work right now and don't have the script to be able to recreate my thread. :P
    Last edited by Clutch; 03-07-2015 at 09:16 PM.

  20. #195
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by OzoneClutch View Post
    @KeepBotting
    Yes I did, thanks for responding to my thread earlier (which got removed as well somehow) You may get another mention admins are expirementing with me so you may or may not see this. Ultimately I was getting an error about having a negative fishing level and being out of feathers. User error, I got rid of all the excess windows ex. clan chat and only have backpack and skills open and it resolved the issue. EXP counter still isn't working I did your suggestion of putting it in the chat but that DNR. Not a big issue though so don't feel worried about resolving that (on my end at least) unless you know of an immediate solution or what I'm doing wrong.

    Edit: Off topic but my script that I am working on I am trying to find out how to insert an e-mail. I've decided at this point I was just gonna work on calling in like a global variable so that you can just insert a pre-made e-mail at the top of the script. That aside, are there includes for the character creation screen (I looked and couldn't find anything) if not, suggestions on how to get a randomized string and add it to a set string (@domain.com)? Feel free to ignore this last part as it is off topic, just at work right now and don't have the script to be able to recreate my thread. :P
    Yeah, I figured as much. Some people get caught by the spam filter occasionally and the staff have to wake up to sort it out.

    Glad you got it working, unless Jagex changed something about the XP tracker, the progress report should increment correctly provided you've got it in the right place - a screenshot would help diagnose the issue.

    As far as your question, you could set a constant at the top of your script (similar to how non-SRL Player Form RuneScape scripts are set up)
    Simba Code:
    const
      email = 'someEmail@domain.com';

    To append a randomized string before the @, you could do something along these lines:
    Simba Code:
    function genRndStr():string; //short for generateRandomString
    const
      chars = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
    var
      tmpStr:string;
      i:integer;
    begin
      tmpStr := '';

      randomize;

      for i := 0 to 9 do //generate 10 chars, adjust the values if you want less/more
       tmpStr := tmpStr + chars[random(60) + 1];

      result := tmpStr;
    end;
    Last edited by KeepBotting; 03-07-2015 at 10:51 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  21. #196
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    @KeepBotting
    Thanks, is there some place I could go to look at the syntax and different way of handling things opposed to having to ask 20 questions and expect you/someone else to explain everything to me? I've been looking at the guides which are very helpful but as your generate random string code I'm clueless as to what some of it is referencing or where it is even coming from, I'd like to start writing scripts to the point where I understand what everything's purpose is opposed to having a general idea and piecing parts together.

  22. #197
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by OzoneClutch View Post
    @KeepBotting
    Thanks, is there some place I could go to look at the syntax and different way of handling things opposed to having to ask 20 questions and expect you/someone else to explain everything to me? I've been looking at the guides which are very helpful but as your generate random string code I'm clueless as to what some of it is referencing or where it is even coming from, I'd like to start writing scripts to the point where I understand what everything's purpose is opposed to having a general idea and piecing parts together.
    Yeah, there are several resources available for learning the syntax and basic ins and outs of the language.

    In order, I suggest you check out:

    "THE Beginner's Simba Guide" by Coh3n - https://villavu.com/forum/showthread.php?t=58935 (Learn about Simba and the scripting language it uses, MOST important if you have no prior programming knowledge)
    "SRL/Simba Standards" by Shuttleu - https://villavu.com/forum/showthread.php?t=60288 (Learn how to make your code pretty, might seem trivial but is strongly encouraged)
    "Using SRL-6" by Coh3n - https://villavu.com/forum/showthread.php?t=106780 (Learn how to utilize the API/include provided by the community)
    "A lot about Lape" by Brandon - https://villavu.com/forum/showthread.php?t=105024 (Learn the ins and outs of Lape, the most widely-used interpreter - NOT required reading, but nice if you want to dive into advanced features of Lape)

    and finally...

    "The Mayor's AIO Tutorial" by The Mayor - https://villavu.com/forum/showthread.php?t=107757 (A truly all-in-one guide, bring it all together and learn how to script for RS)

    These are the threads that I used to make my life easier (I still refer to some of them) when scripting. If any of them mystify you beyond comprehension, you may have better luck sourcing material from Incurable's "Big Daddy of Tutorials for Epic Noobs" - https://villavu.com/forum/showthread.php?t=110991 which is not a guide in and of itself, but rather a very well-organized directory of helpful threads.


    ***


    That being said, the 20 questions option is a possibility too! SRL is a community about learning, and any active, knowledgeable member will have no problem answering a bunch of questions in a row, even if they're simple ones. Feel free to start a PM with me or anyone else you think can be of help, and your questions will be answered as soon as we can get to them.
    Last edited by KeepBotting; 03-08-2015 at 12:59 AM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  23. #198
    Join Date
    Mar 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks I got lv 99 fishing from this script! Woot now time to make some money on cocktails XD

  24. #199
    Join Date
    Mar 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    can you fly fish even if youre not a member?

  25. #200
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by RayAldeza View Post
    can you fly fish even if youre not a member?
    Fly fishing is an f2p activity
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

Page 8 of 11 FirstFirst ... 678910 ... LastLast

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
  •