Results 1 to 4 of 4

Thread: file access error :(

  1. #1
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default file access error :(

    OK I am a very new scripter, and I keep getting file access error in my script, halfway through, it just clicks on inventory, then stops. It sais file access error in my debug box. Heres script if it helps/

    program edgevilleyewcutter;
    {.include srl/srl.scar}
    {.include SRL/SRL/Skill/WoodCutting.scar}

    var x, y, LoadsNum, LoadsNum2: integer;



    Procedure ClickOnExistingUserButton;
    Begin
    Mouse(426, 277,1,1,true);
    Wait(1000+Random(2000));
    WriteLn('Clicked Existing User Button');
    end;

    Procedure TypeInUserandPass;
    Begin
    TypeSend('griff721'); // username here!
    wait(1000+Random(200));
    TypeSend('password); // password here!
    end;

    Procedure CompleteLogin;
    Begin
    Mouse(303, 315,1,1,true);
    WriteLn('Clicked login button');
    WriteLn('Waiting For the Confirmation Screen!');
    Wait(5000+Random(2000));
    Mouse(388, 322,5,5,true);
    wait(2000+Random(3000));
    end;

    procedure totrees;
    begin
    Mouse(674, 483,1,1,true);
    Mouse(642, 431,1,1,true);
    RadialWalk(361732,180,270,72,8,8);
    end;

    procedure FindTreeAndChopTree;
    var CuttingTime: integer;
    Tries: integer;
    begin
    MarkTime(CuttingTime);
    MakeCompass('N');
    repeat
    if FindObjCustom(x, y, ['Yew'], [2060900, 1793357, 3305062], 7) then
    begin
    Mouse(x,y,0,0,false);
    if(IsUpText('Chop'))then
    Wait(5000 + (random(150)));
    ChooseOption('Chop')
    if (not (FindObjCustom(x, y, ['Yew'], [2060900, 1793357, 3305062], 7))) then
    Wait(100+random(100));
    Tries := Tries + 1;
    if(Tries = 50)then
    begin
    Writeln ('Yew trees not found. Switching Players..');
    Logout;
    NextPlayer(False);
    Exit;
    end;
    end;
    until(InvFull) or (TimeFromMark(CuttingTime) > 800000+random(60000));
    end;



    begin
    SetupSRL;
    ActivateClient;
    ClickOnExistingUserButton;
    TypeInUserandPass;
    CompleteLogin;
    totrees
    ChopTree
    end.

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It cant complete NextPlayer because you do not have a DeclarePlayers procedure...

    It is the basics of all scripts using logins.

    Also, you should familiarise yourself with the function LoginPlayer

    Check out my tutorial
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    765
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    just a quick note. you seem to have coordinate clicking without much randomness, and thats not really good (might get banned) . im talking about this procedure
    procedure totrees;
    begin
    Mouse(674, 483,1,1,true); <----
    Mouse(642, 431,1,1,true); <----
    RadialWalk(361732,180,270,72,8,8);
    end;


    ^LOL^

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    HaHa you used my tutorial , But really that tutorial was just a demo use Login Player via DeclarePlayers, soo much easier

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. File Access Error The Nothing?
    By belgin fish in forum OSR Help
    Replies: 6
    Last Post: 03-19-2008, 07:30 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
  •