Results 1 to 7 of 7

Thread: Help with first script pl0x!

  1. #1
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Help with first script pl0x!

    I am making my first script an auto alcher its pretty basic and now that ive put the cords for where it to click i want to add some anti ban. ive already made it hover the mouse over the mage skill and rotate randomly so now i wnat to have it log out every so often but i have no clue how to do it could some1 plz help
    ty to any1 who helps

  2. #2
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    procedure LogOutEvery(hours, forxmins: Integer);
    By: Stupid3ooo
    Description: Logs you out every hours for forxmins
    *******************************************************************************}


    procedure LogOutEvery(hours, forxmins: Integer);
    var
      Mark: Integer;
    begin
      if ((TimeFromMark(LogOutMark) / 1000) / 3600 >= hours) then
      begin
        MarkTime(LogOutMark);
        MMouse(Random(500), -10, 0, 0)
          LogOut;
        Writeln('Logging out and coming back in about ' + IntToStr(forxmins) + ' min(s)');
        MarkTime(Mark);
        repeat
          MMouse(0, 0, 100, 100)
            Wait(90000 + Random(1000));
          Wait(15 + Random(15) + Random(15))
        until (TimeFromMark(Mark) >= forxmins);
        Wait(Random(30000) + Random(30000));
        LoginPlayer;
        Wait(Random(15000) + Random(15000));
      end;
    end;

  3. #3
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    do i just add it into script anywhere rember this is my first script so i got no clue and i need it to log bak in and im not sure how to sue player forms

  4. #4
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol I am a new scripteralso but I think I can help you with this.. See u include the anti random at the beginning of the script. Then you only put the name of the procedure in...

  5. #5
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can put that anywhere during the flow of execution that you want the script to log out, which I would think would be right after you've banked. If you're not banking, then any time after clicking alch would be fine. Just anywhere in your main loop, really.


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

  6. #6
    Join Date
    Aug 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok when i put it in i got this error how do i fix?
    Failed when compiling
    Line 15: [Error] (14870:19): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\ALcher by me!.scar
    Line 15: [Error] (14870:19): Duplicate identifier '' in script C:\Program Files\SCAR 2.03\Scripts\ALcher by me!.scar

  7. #7
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Identifier expected means you're at a point where you should be giving it a command, but you've instead given it a variable or something like that.
    Duplicate identifier means you've named something twice.
    But here's the weird thing, your identifier has a null string for a name. Which isn't possible.
    Meaning you actually have a syntax error at that line where you probably did something like call on a data type then forget to give a name, and then try to go on with your code.
    I recommend posting the actual code so I have some idea what's going on. Cause in case you didn't realize, these are random stabs in complete darkness.


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need a li bit help pl0x
    By Scaper in forum OSR Help
    Replies: 5
    Last Post: 06-11-2008, 07:23 PM
  2. a lil help pl0x??why am i getting t
    By Scaper in forum OSR Help
    Replies: 2
    Last Post: 05-27-2008, 11:55 PM
  3. frusterated with script... (help pl0x?)
    By ctown in forum News and General
    Replies: 14
    Last Post: 09-19-2007, 10:51 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
  •