Results 1 to 4 of 4

Thread: Function not returning anything

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Function not returning anything

    Not a function sorry for the wrong title!

    Simba Code:
    procedure CheckStuff;
    var
      CTS: Integer;
      Coords, Color, Tol: TIntegerArray;
      Hue, Sat: TExtendedArray;
    begin
      if (not (LoggedIn)) then
        Exit;
      Color := [1281187, 3546718, 1580574];
      Coords := [683, 371, 713, 386, 630, 264, 654, 287, 573, 341, 597, 364];
      Tol := [17, 12, 6] Hue := [0.01, 3.83, 0.93];
      Sat := [0.22, 2.07, 1.49];
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      GameTab(tab_EQUIP);
      begin
        SetColorspeed2Modifiers(Hue[0], Sat[0]);
        if ColorWait(3000, Color[0], Coords[0], Coords[1], Coords[2], Coords[3], Tol[0]) then
          else FailSafe('Could not find ring');
        SetColorspeed2Modifiers(Hue[1], Sat[1]);
        if ColorWait(3000, Color[1], Coords[4], Coords[5], Coords[6], Coords[7], Tol[1]) then
          else FailSafe('Could not find hat');
        SetColorspeed2Modifiers(Hue[2], Sat[2]);
        if ColorWait(3000, Color[2], Coords[8], Coords[9], Coords[10], Coords[11], Tol[2]) then
          else FailSafe('Could not find staff');
        Writeln('Seem to have every thing we need!');
      end;
      begin
        GameTab(tab_Inv);
        if FindDTM(Cosmic, x, y, MSx1, MSy1, MSx2, MSy2) then
          else FailSafe('Could not find DTM of runes');
        Exit;
      end;
    end;

    Doesn't do anything....change colors and everything using ACA. Removed the ring/hat/staff still doesn't even say not found.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Are you calling 'CheckStuff' in your loop?

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Well for testing purposes I called just CheckStuff;

    My title is also wrong this isn't a function. Opps
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

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
  •