Results 1 to 13 of 13

Thread: New Script

  1. #1
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default New Script

    I have this "New Script" and its about ready to release.

    When it goes to the Banking procedure it comes back with ** Warning in GameTab: 0 is no valid GameTab**.

    I've never had a Gametab Error so Im not sure what is wrong.

    is it because im using OpenBankFast?

    Either way, I would like for someone to Look through the script for me so I can get a second opinion on things and, to hopefully fix that error.

    Please post here or PM me if you are interested.

  2. #2
    Join Date
    Jan 2009
    Location
    Somewhere
    Posts
    240
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    // * GameTab 1  = Fightmode
    // * GameTab 2  = Statistic
    // * GameTab 3  = Quest
    // * GameTab 4  = Inventory (see Inventory.scar)
    // * GameTab 5  = Wield
    // * GameTab 6  = Prayer
    // * GameTab 7  = Mage
    // * GameTab 8  = Add Friend
    // * GameTab 9  = Del Friend
    // * GameTab 10 = ClanChat
    // * GameTab 11 = Run/Tools
    // * GameTab 12 = Emotes
    // * GameTab 13 = Music
    // * GameTab 14 = LogOut
    // * GameTab 15 = Summoning
    I guess you got it. Search next time in the gametab.scar?:>

  3. #3
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I fixed it anyways, its a real wierd error.

    I only get it sometimes? but it never stops the script or interferes so, whatever.

    Thanks tho!

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    If you still need a look through, I could do it. What was the error?

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Camo¤Kyle View Post
    If you still need a look through, I could do it. What was the error?

    ~Camo
    I still dont know what caused it lol

    Blumblebee looked through it already once but I would love for you to look through it again

    Ill PasteBin and send to you on IRC if your on...?

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

    Default

    It's because there's no such gametab as zero, and your trying to tell it to go to gametab zero.

    ~Sandstorm

  7. #7
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    It's because there's no such gametab as zero, and your trying to tell it to go to gametab zero.

    ~Sandstorm
    I never call any GameTab at any point in the script.

    It happened when I tried calling OpenBankFast();

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

    Default

    Then somethings wrong with OpenBankFast I guess. No clue :/. If it's not a fatal error, nothing lost, nothing gained I guess?

    ~Sandstorm

  9. #9
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    function OpenBankFast(Location: String): Boolean;
    By: Wizzup? and Nielsie95
    Description: Opens the bank.
    Valid arguments are:
        'akb', 'al kharid', 'lb', 'lumbridge', 'veb', 'varrock east', 'vwb',
        'varrock west', 'feb', 'falador east', 'fwb', 'falador west', 'db', 'draynor',
        'eb', 'edgeville bank'
    *******************************************************************************}


    function OpenBankFast(Location: String): Boolean;
    var
      x, y, i, l, c, z: Integer;
      Info: TIntegerArray;
      Booths, t: TPointArray;
    begin
      Wait(400);
      case LowerCase(Location) of
        'akb', 'al kharid': Info := [MSCX, MSCY, 7969203, 25, 1];
        'lb', 'lumbridge': Info := [MSCX, MSCY, 4807788, 10, 1];
        'veb', 'varrock east': Info := [MSCX, MSCY, 2971236, 10, 1];
        'vwb', 'varrock west': Info := [270, 270, 5689318, 25, 1];
        'feb', 'falador east': Info := [MSCX, MSCY + 50, 4612728, 14, 1];
        'fwb', 'falador west': Info := [MSCY, MSCY, 4612728, 14, 1];
        'db', 'draynor': Info := [MSCX, MSCY, 605006, 4, 1];
        'eb', 'edgeville bank': Info := [MSCX + 50, MSCY, 3230295, 9, 2];
        else
        begin
          srl_Warn('OpenBankFast', 'Unknown bank: '+Location, warn_AllVersions);
          Exit;
        end;
      end;

      MakeCompass('n');
      z := GetColorToleranceSpeed;
      ColorToleranceSpeed(Info[4]);
      FindColorsSpiralTolerance(Info[0], Info[1], Booths, Info[2], MSX1, MSY1, MSX2, MSY2, Info[3]);
      ColorToleranceSpeed(z);
      SetArrayLength(t, 0);
      t := Booths;
      SetArrayLength(Booths, 0);
      Booths := ReArrangeAndShortenArray(t, 14);
      l := GetArrayLength(Booths) -1;
      for i := 0 to l do
      begin
        if (not LoggedIn) or BankScreen or PinScreen then
          Break;
        if (LowerCase(Location) = 'vwb') or (LowerCase(Location) = 'varrock west') then
        begin
          Booths[i].X := Booths[i].X + 5;
          Booths[i].Y := Booths[i].Y - 20;
        end;
        MMouse(Booths[i].X, Booths[i].Y, 3, 3);
        Wait(75 + Random(75));
        if IsUpText('ooth') Then
        begin
          GetMousePos(x, y);
          Mouse(x, y, 0, 0, False);
          Wait(70 + Random(75));
          if ChooseOption('uickly') then
          begin
            FFLag(0);
            MarkTime(c);
            repeat
              Wait(100);
            until (BankScreen) or (PinScreen) or (TimeFromMark(c) > 3000);
            if (Length(Players) > 0) then
              if (Players[CurrentPlayer].Pin <> '') then
                InPin(Players[CurrentPlayer].Pin);
          end;
        end;
      end;
      Result := (BankScreen) or (PinScreen);
    end;

    No reference to GameTab whatsoever.

  10. #10
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Its probably because it has no game tabs when doing open bank fast? If your banking proc gets down very fast then that may be it. OR i may be 1000 Percent wrong :P

  11. #11
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by cnr sport View Post
    Its probably because it has no game tabs when doing open bank fast? If your banking proc gets down very fast then that may be it. OR i may be 1000 Percent wrong :P
    Can you explain?

    Mainly the "If your banking proc gets down very fast then that may be it" part.

    Thanks

  12. #12
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try not using OpenBankFast, maybe OpenBank, OpenBankQuietly..
    If there's still an error then you might have a problem with something else..
    If it works then i believe OpenBankFast might be messed upGL.

    NCDS try a different OpenBank procedure...

    I can look through it for you if you like.

  13. #13
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I think it just says that when it has trouble finding the bank booth, tho I have no idea what the cause is.

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
  •