Page 2 of 2 FirstFirst 12
Results 26 to 36 of 36

Thread: Taking function requests!

  1. #26
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Repair ArrowCount, it doesnt work. I had 1336 arrows and it returned 336

  2. #27
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    Repair ArrowCount, it doesnt work. I had 1336 arrows and it returned 336
    Are you talking about the ArrowAmount function in Ranging.scar?

  3. #28
    Join Date
    Jun 2007
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    setInterval

    Make a procedure be called every X seconds.

  4. #29
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by 006786 View Post
    setInterval

    Make a procedure be called every X seconds.
    That already exists

    SCAR Code:
    procedure HelloWorld(Seconds: integer);
    begin
      Writeln('Hello World');
      SetTimeout(Seconds, 'HelloWorld');
    end;

    begin
      HelloWorld(3);
      repeat
        wait(1);
      until false;
    end.

  5. #30
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by lordsaturn View Post
    Are you talking about the ArrowAmount function in Ranging.scar?
    indeed

  6. #31
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    indeed
    All you need to do is change the x pixel a tiny bit.
    SCAR Code:
    function ArrowAmount: Integer;
    begin
      GameTab(5);
      Result := GetAmount(666, 249);
    end;

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

    Default

    WOW someones a genius...no request i came to clarify/ask:

    so functions are like scar commands such as movemouse (perse) but its like a lot of stuff inside?...so its like a procedure thingy (but its called a function) and it goes in a procedure as a single commnad?

    also came to look how you did them cuz i need to know for personal use..

  8. #33
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by chitin View Post
    WOW someones a genius...no request i came to clarify/ask:

    so functions are like scar commands such as movemouse (perse) but its like a lot of stuff inside?...so its like a procedure thingy (but its called a function) and it goes in a procedure as a single commnad?

    also came to look how you did them cuz i need to know for personal use..
    Functions and procedures are used to execute a series of commands. The only difference between the two is that functions will return a value, and procedures will not.

  9. #34
    Join Date
    Oct 2007
    Posts
    678
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by lordsaturn View Post
    Functions and procedures are used to execute a series of commands. The only difference between the two is that functions will return a value, and procedures will not.
    ..riiiiight.....example?

  10. #35
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by chitin View Post
    ..riiiiight.....example?
    This is a procedure. It just moves the mouse around. nothing else.
    SCAR Code:
    procedure Movemouserandomly;
    begin
     repeat
      MMouse(0, 0, MSX2, MSY2);
     until(false);
    end;

    This is a function. It returns a value, boolean (true or false) in this case. It could be integer or extended or string or...
    SCAR Code:
    function IamGenius : boolean;
    begin
     if (IQ > 120) then
     begin
      result := true;
     end;
    end;


    //functions can be used like this

    procedure TellTheWorld;
    begin
     if IamGenius then
     begin
      writeln('I AM A GENIUS!!!');
     end;
    end;

  11. #36
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Still doing this, if anyone has any.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Taking Function Requests
    By skilld u in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 02-18-2008, 09:13 PM
  2. TAKING REQUESTS! I need a new idea for a script! TAKING REQUESTS!
    By TravisV10 in forum RS3 Outdated / Broken Scripts
    Replies: 38
    Last Post: 10-31-2007, 02:46 AM
  3. Taking Function Requests
    By Derek- in forum RS3 Outdated / Broken Scripts
    Replies: 11
    Last Post: 09-13-2007, 02:37 AM
  4. Taking function requests.
    By Bobarkinator in forum RS3 Outdated / Broken Scripts
    Replies: 28
    Last Post: 09-08-2007, 03:45 AM

Posting Permissions

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