Results 1 to 10 of 10

Thread: Noob Question

  1. #1
    Join Date
    Oct 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Noob Question

    Hi I'm an extremly nooby scripter-wannabe.

    After reader a few tutorials on this site I attempted a script that would simply find a tree and click on it:

    Code:
    program AutoCut;
    {.include SRL/SRL.scar}
    
    var
    x, y: Integer;
    
    procedure colorfindprocedure;
    begin
    if(FindColor(x,y,1581609,252,151,317,186)) then
    MMouse(x,y,0,0);
    wait(76+random(39));
    Mouse(x,y,0,0,true);
    end;
    
    begin
    SetupSRL;
    colorfindprocedure;
    end.
    I managed to get it working, but when I click run SCAR comes up with a form saying:

    "Script is trying to access the following file:
    C:\SCAR 3.12\ChatLog.txt
    Do you want to permit or deny this operation?
    Deny
    Permit Once
    Always Permit
    Always permit for this folder"

    Which ever option I click, the script continues on to run fine (clicking that tree!), but when I run it again, I get the same message. Is this normal? It's getting a little annoying having to click it all the time...

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

    Default

    Hit always permit for this folder... and here it is standarised....

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

    var
     x, y: Integer;

    procedure colorfindprocedure;
    begin
      if ( FindColor(x, y, 1581609, 252, 151, 317, 186) ) then Mouse(x, y, 5, 5, true);
    end;

    begin
      SetupSRL;
      colorfindprocedure;
    end.

  3. #3
    Join Date
    Oct 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for your help, but I have tried that, and still when I run it a second (or third) time I get the same message:

    "Script is trying to access the following file:
    C:\SCAR 3.12\ChatLog.txt
    Do you want to permit or deny this operation?
    Deny
    Permit Once
    Always Permit
    Always permit for this folder"

    Even when I have already clicked "Always permit"

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

    Default

    Quote Originally Posted by Corax View Post
    Thanks for your help, but I have tried that, and still when I run it a second (or third) time I get the same message:

    "Script is trying to access the following file:
    C:\SCAR 3.12\ChatLog.txt
    Do you want to permit or deny this operation?
    Deny
    Permit Once
    Always Permit
    Always permit for this folder"

    Even when I have already clicked "Always permit"
    Ok, Umm Open Scar Then

    Tools-->Options-->FireWall Settings-->Allow All--> the other FireWall Settings-->Allow All-->Ok-->Close Scar-->Re-open scar-->and...

    You should never be bugged again!

  5. #5
    Join Date
    Oct 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahh, that worked.

    Thanks!

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

    Default

    Good To hear, add me on MSN for further help! XD

    timer150@gmail.com

  7. #7
    Join Date
    Oct 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bluerobin_xp View Post
    i get the same problem with some of my scripts.. and like you, im confussed as why its doing this/ or how to stop it.
    You should try the method that Timer150 sayed.

  8. #8
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Timer150 View Post
    Ok, Umm Open Scar Then

    Tools-->Options-->FireWall Settings-->Allow All--> the other FireWall Settings-->Allow All-->Ok-->Close Scar-->Re-open scar-->and...

    You should never be bugged again!
    If you do this, be aware that scripts may steal your pass because it will not ask if you want to connect to this website..its not very common for scripts to have pass stealers though

  9. #9
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Btw, instead of using FindColor, Use FindColorSpiralTolerance...
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  10. #10
    Join Date
    Nov 2007
    Posts
    184
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    btw can someone explain to me what the chatlog is actually for?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. noob question
    By dudeperson in forum OSR Help
    Replies: 3
    Last Post: 04-28-2007, 11:46 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
  •