Results 1 to 5 of 5

Thread: Arrays

  1. #1
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default Arrays

    So, I'm trying to create my own array of colors that I can use for finding something. Haven't really used Arrays before, and I keep getting Mismatch error.

    Can someone point me into the direction of a guide/tutorial or explain what the different arrays are? I can't seem to find any. Here is the code that I'm working with.

    Simba Code:
    procedure WalkToBank;
    var
      i,x,y:Integer;
      DepositColors:TIntegerArray;
    begin
      if not LoggedIn then Exit;
      Antiban;
      for i := 4 to 6 do
      begin
        FFlag(0);
        Wait(500+random(200));
        Writeln('On way back to bank, number' + IntToStr(i - 3));
        WalkingSpec(i);
      end;
      if(FindSymbol(x,y,'bank')) then
      begin
        Mouse(x,y,3,3,True);
      end;
      repeat
      DepositColors := [4747939,6777452,4808814,3491408]
      if(FindColorSpiralTolerance(x,y,DepositColors,MSX1,MSY1,MSX2,MSY2,4)) then

    I get the error at the last line in that.

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

    Default

    That function only accepts one color, you'll have to loop thorough them
    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.


  3. #3
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    So there is no way to have an array of colors like what I was doing?

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

    Default

    Sorry, had to edit my response. Read the code wrong
    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
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    No problem bout it. xD
    Found your TPointArray guide, I'm going to use it, so I'm repping you for that one because I'm too lazy to switch tabs. And repping for these posts, obv.

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
  •