Page 34 of 40 FirstFirst ... 243233343536 ... LastLast
Results 826 to 850 of 997

Thread: [SRL-6] AshamanHerblore

  1. #826
    Join Date
    Dec 2011
    Posts
    266
    Mentioned
    16 Post(s)
    Quoted
    185 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    snip
    Simba Code:
    Error: "Pots" is not a valid boolean. at line 98
    Execution failed.

    Getting this error after the most recent SRL update. Apparently I need to turn auto update off, include updates seem to do more harm than good lately.

    Any ideas?

  2. #827
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Gunner View Post
    Simba Code:
    Error: "Pots" is not a valid boolean. at line 98
    Execution failed.

    Getting this error after the most recent SRL update. Apparently I need to turn auto update off, include updates seem to do more harm than good lately.

    Any ideas?
    ashaman posted he will be leaving for a few days (until new year probabbly), so dont get your hopes up heh

  3. #828
    Join Date
    Dec 2011
    Posts
    266
    Mentioned
    16 Post(s)
    Quoted
    185 Post(s)

    Default

    Quote Originally Posted by undorak7 View Post
    ashaman posted he will be leaving for a few days (until new year probabbly), so dont get your hopes up heh
    Well this isn't necessarily a script issue, the include update broke it. So hopefully one of the seniors can give me some advice.

    EDIT: Fixed. If you're having trouble with this script/playerform after the newest SRL update, go here: https://raw.githubusercontent.com/SR...ayerform.simba and replace your srlplayerform.simba with that. It allows the script to run as it previously did. Hopefully in the meantime a more "official" fix can be made.

  4. #829
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    Quote Originally Posted by Gunner View Post
    Well this isn't necessarily a script issue, the include update broke it. So hopefully one of the seniors can give me some advice.

    EDIT: Fixed. If you're having trouble with this script/playerform after the newest SRL update, go here: https://raw.githubusercontent.com/SR...ayerform.simba and replace your srlplayerform.simba with that. It allows the script to run as it previously did. Hopefully in the meantime a more "official" fix can be made.
    Always will try to respond to the Gunner! Yeah when I get back I'll review all the commits coming through - most made by non-devs but they are just trying to help out/pick up my slack! I would also try deleting your settings file for this script and see if that fixes the issue. Lame sauce when include breaks my script. IDK when I will respond, but might be a good idea to shout out to @Olly; about it

  5. #830
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Just delete your settings.xml I'm sorry for the inconvenience but id rather keep it how the update made it.

  6. #831
    Join Date
    Feb 2012
    Location
    Atlanta
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Gunner View Post
    Simba Code:
    Error: "Pots" is not a valid boolean. at line 98
    Execution failed.

    Getting this error after the most recent SRL update. Apparently I need to turn auto update off, include updates seem to do more harm than good lately.

    Any ideas?
    Yeah the new update seems to have jumbled up some of the settings, here's what my line 98-105 looks like to make it work, until it gets a pro patch by ashaman:
    EDIT:kevin did a much better job downstairs.
    Last edited by seniorjulio; 12-17-2014 at 12:20 AM.
    Salute Me or Shoot Me!

  7. #832
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Gunner View Post
    ...
    Quote Originally Posted by Ashaman88 View Post
    ...
    Quote Originally Posted by seniorjulio View Post
    ...
    I believe this should be the fix For current issue:

    Current DeclarePlayers method:
    Simba Code:
    procedure declareplayers();
    var
      i,j: integer;
    begin
      players.setup(playerForm.playerNames, playerForm.playerFile); // load the SPF players from the SRL Player Manager
      currentPlayer := 0;                                           // player to use first

      // set player attributes based on the settings from the form
      for i := 0 to high(players) do
        with players[i] do
        begin
          // convert the integers
          integers[0] := strToInt(playerForm.players[i].settings[1]);  //minutes until break
          integers[1] := strToInt(playerForm.players[i].settings[2]);  //minutes to break

          for j := 0 to high(playerForm.comboBoxItems[1]) do
            if (playerForm.players[i].settings[11] = playerForm.comboBoxItems[1][j]) then
              integers[2] := j;                                                  //bankinglocation

          Stacks := strToInt(playerForm.players[i].settings[4]);  //number of stacks
          World :=  strToInt(playerForm.players[i].settings[3]);                    //world
          ismember:=true;

          if (playerForm.players[i].settings[12] = 'Normal') then
            normalBank := true;

          if not normalBank then
            for j := 0 to high(playerForm.comboBoxItems[2]) do                            //quickload
              if (playerForm.players[i].settings[12] = playerForm.comboBoxItems[2][j]) then
                integers[4] := j+2;

          // booleans
          booleans[0] := strToBool(playerForm.players[i].settings[6]);   //takebreaks
          booleans[1] := strToBool(playerForm.players[i].settings[7]);   //switchworlds
          FindMod := strToBool(playerForm.players[i].settings[8]);      //mods
          debug := strToBool(playerForm.players[i].settings[9]);     //debug

          // any other data types you've decided to use
          strings[0] := playerForm.players[i].settings[0]; //quickkey
          strings[1] := playerForm.players[i].settings[10]; //cleanorpots

          if (not normalbank) and (strings[1] = 'Pots') then
            slots := 14 else
            slots := 28;

          if (playerForm.players[i].settings[5] = '') then
          begin
            writeln('No UserAgent detected. Opening up webpage to get userAgent');
            openWebPage('http://whatsmyuseragent.com/');
            writeln('Copy your useragent text and paste it into the form');
            writeln('Restart script');
            terminateScript;
          end else
            smartUserAgent := playerForm.players[i].settings[5]; //useragent

          print('slots: ' + toStr(slots));
        end;
    end;
    To use instead:
    Simba Code:
    procedure declareplayers();
    var
      i,j: integer;
    begin
      players.setup(playerForm.playerNames, playerForm.playerFile); // load the SPF players from the SRL Player Manager
      currentPlayer := 0;                                           // player to use first

      // set player attributes based on the settings from the form
      for i := 0 to high(players) do
        with players[i] do
        begin
          // convert the integers
          integers[0] := strToInt(playerForm.players[i].settings[1]);  //minutes until break
          integers[1] := strToInt(playerForm.players[i].settings[2]);  //minutes to break

          for j := 0 to high(playerForm.comboBoxItems[1]) do
            if (playerForm.players[i].settings[7] = playerForm.comboBoxItems[1][j]) then
              integers[2] := j;                                                  //bankinglocation

          Stacks := strToInt(playerForm.players[i].settings[4]);  //number of stacks
          World :=  strToInt(playerForm.players[i].settings[3]);                    //world
          ismember:=true;

          if (playerForm.players[i].settings[8] = 'Normal') then
            normalBank := true;

          if not normalBank then
            for j := 0 to high(playerForm.comboBoxItems[2]) do                            //quickload
              if (playerForm.players[i].settings[8] = playerForm.comboBoxItems[2][j]) then
                integers[4] := j+2;

          // booleans
          booleans[0] := strToBool(playerForm.players[i].settings[9]);   //takebreaks
          booleans[1] := strToBool(playerForm.players[i].settings[10]);   //switchworlds
          FindMod := strToBool(playerForm.players[i].settings[11]);      //mods
          debug := strToBool(playerForm.players[i].settings[12]);     //debug

          // any other data types you've decided to use
          strings[0] := playerForm.players[i].settings[0]; //quickkey
          strings[1] := playerForm.players[i].settings[6]; //cleanorpots

          if (not normalbank) and (strings[1] = 'Pots') then
            slots := 14 else
            slots := 28;

          if (playerForm.players[i].settings[5] = '') then
          begin
            writeln('No UserAgent detected. Opening up webpage to get userAgent');
            openWebPage('http://whatsmyuseragent.com/');
            writeln('Copy your useragent text and paste it into the form');
            writeln('Restart script');
            terminateScript;
          end else
            smartUserAgent := playerForm.players[i].settings[5]; //useragent

          print('slots: ' + toStr(slots));
        end;
    end;

    To clarify, line 82:
    Simba Code:
    if (playerForm.players[i].settings[7] = playerForm.comboBoxItems[1][j]) then
    89:
    Simba Code:
    if (playerForm.players[i].settings[8] = 'Normal') then
    97-101:
    Simba Code:
    // booleans
          booleans[0] := strToBool(playerForm.players[i].settings[9]);   //takebreaks
          booleans[1] := strToBool(playerForm.players[i].settings[10]);   //switchworlds
          FindMod := strToBool(playerForm.players[i].settings[11]);      //mods
          debug := strToBool(playerForm.players[i].settings[12]);     //debug
    105:
    Simba Code:
    strings[1] := playerForm.players[i].settings[6]; //cleanorpots

  8. #833
    Join Date
    Feb 2012
    Location
    Atlanta
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Is anybody else having problems with TRSBankScreen now? The script worked just fine after the fix until late last night. Now I'm getting an error at line 2530:
    Simba Code:
    if not self.isSearchOpen then
    Simba Code:
    Error: Operator "NOT" not compatible with "record [0]Pointer; [4]Pointer; end" at line 2530
    Compiling failed.
    Salute Me or Shoot Me!

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

    Default

    Quote Originally Posted by seniorjulio View Post
    Is anybody else having problems with TRSBankScreen now? The script worked just fine after the fix until late last night. Now I'm getting an error at line 2530:
    Simba Code:
    if not self.isSearchOpen then
    Simba Code:
    Error: Operator "NOT" not compatible with "record [0]Pointer; [4]Pointer; end" at line 2530
    Compiling failed.
    Replace the line with
    Simba Code:
    if (not self.isSearchOpen()) then
    There used to be something meaningful here.

  10. #835
    Join Date
    Dec 2011
    Posts
    266
    Mentioned
    16 Post(s)
    Quoted
    185 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    snip
    Quote Originally Posted by Olly View Post
    snip
    Quote Originally Posted by seniorjulio View Post
    snip
    Quote Originally Posted by Kevin View Post
    snip
    Thanks err'body for the responses. For the time being I'll keep it the way I have it, only because I know for sure that it's working right now. After Ash gets back and has the opportunity to really pour over everything I may turn my updates back on. Thanks again all.

  11. #836
    Join Date
    Jan 2014
    Location
    South Korea
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Umm I did the changes Kevin said and now it just goes to search for an item and the bot fails...
    will update if I figure out why it's started this.


    I copied the entirety of Kevin's declareplayers and it works now,
    don't just change part of it like it did....
    Last edited by fallacysnow; 12-17-2014 at 06:07 PM.

  12. #837
    Join Date
    Feb 2012
    Location
    Atlanta
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Replace the line with
    Simba Code:
    if (not self.isSearchOpen()) then
    I tried that, tried it again, made sure the indents matched. Did the new plugin do this(are other people having this same problem), or did my cat run all over the keyboard last night? BTW this is happening for me on all scripts that use banking feature so should I move this post to SRL discusions?
    Salute Me or Shoot Me!

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

    Default

    Quote Originally Posted by seniorjulio View Post
    I tried that, tried it again, made sure the indents matched. Did the new plugin do this(are other people having this same problem), or did my cat run all over the keyboard last night? BTW this is happening for me on all scripts that use banking feature so should I move this post to SRL discusions?
    A recent pull request was approved to SRL-6. There was a small syntax error and it broke the include. It was fixed a day ago in this commit.

    Do the following:

    SRL > Settings > enable Override Update

    SRL > Check for update

    Let the files download, then restart Simba.
    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. #839
    Join Date
    Feb 2012
    Location
    Atlanta
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    A recent pull request was approved to SRL-6. There was a small syntax error and it broke the include. It was fixed a day ago in this commit.

    Do the following:

    SRL > Settings > enable Override Update

    SRL > Check for update

    Let the files download, then restart Simba.
    sweet, I actually just finished doing a clean install, works like a charm now, thanks though!
    Salute Me or Shoot Me!

  15. #840
    Join Date
    Jan 2014
    Location
    South Korea
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    it's amazing how well a completely new install fixes some things...
    copy your simba folder from your c: drive or wherever and just delete the original and replace with the copy if it messes up again. Faster than a clean install.

  16. #841
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Nvm didn't read what was above

  17. #842
    Join Date
    Dec 2011
    Posts
    150
    Mentioned
    4 Post(s)
    Quoted
    46 Post(s)

    Default

    Code:
    |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
    |                  AshamanHerblore v2.6                     |
    |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
    | Running For: 4 Hours, 26 Minutes and 11 Seconds           |
    | Super attack (3)'s Made: 9,072     Made/H: 2,045          |
    | Exp Earned: 988,116                Exp/Hour: 222,726      |
    | Profit: -1                         Profit/Hour: -2,045    |
    |___________________________________________________________|
    working smooth
    1B total exp progress
    875m / 1B
    120s
    113/120 Fish
    112/120 Dung

  18. #843
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Mine doesn't bank, can anyone help?

    Thanks.

  19. #844
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    EDIT:

    Got it working! Running perfectly

    Edit again: Worked for around 50 minutes then I got this
    Error: Invalid floating point operation at line 235

    I'm assuming it's to do with the antiban line 235 says:

    line 235 case i of
    line 236 1: boredHuman(false);

    EDIT AGAIN: Thanks a lot man you got me around 300k xp in herblore with this and 12m gp!
    Last edited by Antonio; 01-18-2015 at 11:36 PM.

  20. #845
    Join Date
    Jul 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm having trouble. I don't know what to do with useragent string.

  21. #846
    Join Date
    Jul 2007
    Posts
    83
    Mentioned
    1 Post(s)
    Quoted
    39 Post(s)

    Default

    Error: Too many parameters found at line 335
    Compiling failed.

    "If (ChooseOption.OptionsExist(['Exam','mine','Examine','Canc','ncel','Cancel'],400)) Then"

  22. #847
    Join Date
    Sep 2014
    Location
    Netherlands
    Posts
    264
    Mentioned
    11 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by scar_operater View Post
    Error: Too many parameters found at line 335
    Compiling failed.

    "If (ChooseOption.OptionsExist(['Exam','mine','Examine','Canc','ncel','Cancel'],400)) Then"
    Change it to:

    Simba Code:
    If (ChooseOption.OptionsExist(['Exam','mine','Examine','Canc','ncel','Cancel'])) Then

  23. #848
    Join Date
    Jan 2015
    Posts
    35
    Mentioned
    2 Post(s)
    Quoted
    17 Post(s)

    Default

    Sorry for correcting you Suikerwafel.

    Change line 335 to:

    If (ChooseOption.OptionsExist(['Examine','Cancel'])) Then

    and change line 419 to:

    If (ChooseOption.OptionsExist(['Examine','Cancel'])) Then


    You will then get the updated version of the script in the "Downloads" folder.

  24. #849
    Join Date
    May 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Twas awesome using this using this when dxp was announced, made a pretty penny over a couple of nights. Currently at 97 herblore, but I'm not stoppin at 99! Cleaning herbs btw, I'll post the next proggy.

  25. #850
    Join Date
    Dec 2011
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    very flawless scripe got me some good xp

Page 34 of 40 FirstFirst ... 243233343536 ... 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
  •