Results 1 to 4 of 4

Thread: FindObjMulti......... PROBLEM

  1. #1
    Join Date
    Aug 2007
    Location
    Finland
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindObjMulti......... PROBLEM

    It doesn't work, not in my own script, or neGs dummycurser. I have Scar 3.12c and srl4 rev6.

    This is the procedure where I use it:
    SCAR Code:
    //------------------CAST THE CURSE----------------------\\
    procedure CastCurse;
    begin
      Status('Cursing')
      MonsterFound := 0;
      Cast('Curse')
        repeat
          if FindObjMulti(Monstername, MonsterColor1, MonsterColor2, MonsterColor3, 15); then
            begin
              GetMousePos(xx, xy);
              Mouse(xx, xy, 1, 1, True);
              MonsterFound := 1
              wait(1000+random(1234))
              //FindFastRandoms;
              CursesDone := CursesDone + 1
              CursesDoneTotal := CursesDoneTotal + 1
                if  CursesDone >= DoReport then
                  begin
                    CursesDone := 0;
                    Proggie;
                    //FindFastRandoms;
                  end;
            end else
              begin
                Tries := Tries + 1
                //FindFastRandoms;
                if Tries > TimesToTry then
                  begin
                    writeln('Can`t find a monster, did you pick the right colors? Setting Player to False');
                    Wait(1000);
                    //FindFastRandoms;
                    Wait(3456+random(500));
                    LogOut;
                    Players[CurrentPlayer].Active := False;
                    Nextplayer;
                  end;
              end;
        Until(MonsterFound = 1);
    end;



    Line 175: [Error] (15925:4): Unknown identifier 'FindObjMulti' in script C:\Documents and Settings\Administrator\Desktop\CursedYOU!.scar
    Failed when compiling

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try
    {************************************************* ******************************
    function FindObjEx(var x, y: Integer; ObjText: String; x1, y1, x2, y2, Color, Tol, MinXDist, MinYDist, WaitPerCheck: Integer; Spiral: Boolean): Boolean;
    By: RSN
    Description: Tries to Find object with specified params.
    ************************************************** *****************************}
    #

    or..

    {************************************************* ******************************
    function FindObjCustom(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray;
    Tolerance: Integer): Boolean;
    By: Stupid3ooo and Starblaster100
    Description: Finds Object with custom amount of colors and custom amount of Uptext
    Use: FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5)
    ************************************************** *****************************}

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    make sure you look in the SRL manual...



    Quote Originally Posted by SRL Manual
    Changes in Object.scar

    Added FindObjCustom. Removed FindObjMulti, FindObj3.
    findobjmulti has been removed from SRL

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  4. #4
    Join Date
    Aug 2007
    Location
    Finland
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default



    Oh... Thanks anyway

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FindObjMulti + Little bit of Bitmaps
    By Tails111 in forum Outdated Tutorials
    Replies: 20
    Last Post: 04-06-2008, 07:10 AM
  2. findobjmulti
    By Stevee in forum OSR Help
    Replies: 1
    Last Post: 07-27-2007, 03:38 AM
  3. findobjmulti help
    By the flea in forum OSR Help
    Replies: 5
    Last Post: 05-09-2007, 08:44 PM
  4. findobjmulti question
    By Junior in forum OSR Help
    Replies: 6
    Last Post: 10-15-2006, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •