Results 1 to 11 of 11

Thread: Unknown identifiers

  1. #1
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Unknown identifiers

    Yes i know what they are so before you start flaming please hear me out.

    I've been scripting for 3 days so pelase exuse me if this isnt the place to post it but i can't implement anti-randoms due to scar not being able to identify the functions. it keeps saying these:


    Line 34: [Error] (12301:1): Unknown identifier 'RunAwayDirection' in script C:\Program Files\SCAR 3.14\Scripts\Runescape\LobsterFisher.scar
    Failed when compiling

    Line 36: [Error] (12303:1): Unknown identifier 'RunBack' in script C:\Program Files\SCAR 3.14\Scripts\Runescape\LobsterFisher.scar


    it doesnt find FindTalk, either so im prolly missing a file? i jus redownloaded srl & includes. so if anyone can telll me where to get the file or where to put it that would be great..

    thanks in advance,
    prince

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use RunTo instead of RunAwayDirection and RunBack


  3. #3
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It would be a lot easier to help if we could see the script(unless its private) or maybe the function.

    You are including SRL right?

  4. #4
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does No One Help These Days?
    SCAR Code:
    RunAway('N', True, 1, (5000 + Random(1000));
    change the N to what u want
    'N'
    'S'
    'E'
    'W'

  5. #5
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The Runaway worked, but how about Runback?

    heres the script:

    SCAR Code:
    program LobsterFisher;
    {.include SRL/SRL.scar}

    Procedure DeclarePlayers;
    begin
        HowManyPlayers := 1;
        NumberOfPlayers(HowManyPlayers);
        CurrentPlayer := 0;

        Players[0].Name := 'username';
        Players[0].Pass := 'password';
        Players[0].Nick := 'sern';
        Players[0].Active :=True;
    end;

    procedure FakeTyper;
    begin
    case Random(21) of
                 0: SendKeysWait('hi...', 150, 75);
                 1: SendKeysWait('yo...', 150, 75);
                 2: SendKeysWait('sup...', 150, 75);
                 3: SendKeysWait('plant..', 150, 75);
                 4: SendKeysWait('whats ', 150, 75);
                 5: SendKeysWait('bore..', 150, 75);
                 6: SendKeysWait('pal...', 150, 75);
                 7: SendKeysWait('man i', 150, 75);
                 8: SendKeysWait('lol...', 150, 75);
                 9: SendKeysWait('soo...', 150, 75);
                 10: SendKeysWait('weathr', 150, 75);
                 11: SendKeysWait('well..', 150, 75);
                 12: SendKeysWait('ths is', 150, 75);
                 13: SendKeysWait('ugh..', 150, 75);
                 14: SendKeysWait('i cbf', 150, 75);
                 15: SendKeysWait('fish l...', 150, 75);
                 16: SendKeysWait('smaie...', 150, 75);
                 17: SendKeysWait('harum...', 150, 75);
                 18: SendKeysWait('werd...', 150, 75);
                 19: SendKeysWait('choco...', 150, 75);
                 20: SendKeysWait('lobbi...', 150, 75);
               end;
               Wait(Random(250));
               SendKeysWait(#8 + #8 + #8 + #8 + #8 + #8, 150, 75);
    end;

    procedure AntiBan;
    begin
      case random(50) of
        0: RandomRClick;
        1: BoredHuman;
        2: HoverSkill('Fishing', False);
        3: AlmostLogout;
        4: FakeTyper;
      end;
    Wait(5000+random(2000));
    end;


    procedure SolveRandoms;
    begin
      FindTalk;
      FindNormalRandoms;
      if (FindFight = true) then RunAway ('N', True, 1, 5000+random(1000));
    end;

    Procedure FishLobs;
    var
      X, Y : integer;
    begin
      repeat
        if (FindObjCustom(X, Y, ['Cage','Ca','ge','Cag','ge'], [14663316,9794918,9203296], 10)) then
          begin
            Mmouse(X, Y, 0, 0);
            Wait(500+random(300));
            Mouse(X, Y, 0, 0, True);
            Wait(1000+random(200));
            SolveRandoms;
            AntiBan;
          end;
      until (InvFull);
    end;

    procedure Drop;
    begin
      if (InvFull) then
      WriteLn('Inventory full! Dropping') ;
      DropTo (2,28);
      WriteLn('Dropped sucessfully');
    end;


    begin
    SetupSRL;
    ClearDebug;
    Mouse(650,185,random(15),random(15),True);
    //NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
      repeat
      SolveRandoms;
      FishLobs;
      if (InvFull) then
        begin
          Wait(500+random(500));
          Drop;
          SolveRandoms
        end;
      until (IsFKeyDown(12));
    end.


    i wouldnt recomend using it as im still working hard at it but if u can find any easily fixable errors it would be greatly appreciated.

    thanks in advance,
    prince

  6. #6
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I think runaway has a built in runback (as a boolean), otherwise just put a second runaway with the opposite direction.

  7. #7
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yer since srl updated runback; dosent work but if you put

    SCAR Code:
    runto(N);
    wait(7000+random(3000));
    runto(S);

    you dont go exactly were you were infact sometimes you go a long way out were you were is there another function now that replaces

    runback;
    ???????????????????
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  8. #8
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Just checked and RunTo automatically runs back to your orginial place (more or less) after 6.5 to 8.5 seconds. It uses 'N','E','S' and 'W' then runfar is if it should run to the edge of the minimap (which is far) or about halfway between the middle and the edge (short/medium). E.g:
    SCAR Code:
    //  RunTo(dir: string; runfar: Boolean);
      RunTo('N',True);

  9. #9
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok that part works fine, but now its giving me an error with the login.scar
    it says outtarange in line 216. i know it has to do with my declare players procedure. anyone care to enlighten me on how i can fix it?

    thanks,
    prince

  10. #10
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Need to put 'DeclarePlayer;' at the beginning of the main loop.

  11. #11
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahhhhh LOL im such a dummy. i never called the procedure. thank you sir

    yours,
    prince

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. unknown?
    By Keiraan in forum OSR Help
    Replies: 5
    Last Post: 08-29-2007, 12:44 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
  •