Results 1 to 4 of 4

Thread: creating a helping script thing. help please

  1. #1
    Join Date
    May 2008
    Location
    Oregon, USA
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default creating a helping script thing. help please

    ok, so i found a pking helper script... but i trying to make other scripts with the same concept as it...

    ok i can't figure this out from the script...

    i want to know how to make a script so when you run it nothing happens... but you can set it to when its running and you press like f1 it will say quickly do special or when you press f2 it will eat and f3 will make it click barrage... stuff like that. and you could set the different tasks to different buttons... anyone know how to do this? please help!

  2. #2
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,
    Good to see you are starting to script
    Here is an example of what you could use for running:
    SCAR Code:
    <other script things here>
    procedure SetRunning;
    begin
      if (IsFKeyDown(1)) then
      begin
        setrun(true);
        wait(200+random(400));
        writeln('We are now running!');
      end;
    end;
    This checks if f1 is down.
    If f1 is down, it will set run true and will wait a bit and write "We are now running!" in the debug.
    Of course you will have to call this in your mainloop

    If you need any other help, I am often online at pvh@live.nl (msn) and I'll be glad to help

    PvH

  3. #3
    Join Date
    May 2008
    Location
    Oregon, USA
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by pvh View Post
    Hey,
    Good to see you are starting to script
    Here is an example of what you could use for running:
    SCAR Code:
    <other script things here>
    procedure SetRunning;
    begin
      if (IsFKeyDown(1)) then
      begin
        setrun(true);
        wait(200+random(400));
        writeln('We are now running!');
      end;
    end;
    This checks if f1 is down.
    If f1 is down, it will set run true and will wait a bit and write "We are now running!" in the debug.
    Of course you will have to call this in your mainloop

    If you need any other help, I am often online at pvh@live.nl (msn) and I'll be glad to help

    PvH
    Would this than me that the key is F1 so this script could also say
    procedure SetRunning;
    begin
    if (IsFKeyDown(2)) then //this would be the key F2?
    begin
    setrun(true);
    wait(200+random(400));
    writeln('We are now running!');
    end;

  4. #4
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, you are right.
    If you want to learn more, I recommend reading tutorials in the beginners section of the tutorial island
    I also got a simple tutorial for beginners.
    Good luck on scripting

    PvH

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Help] Creating my first Scar Script.
    By sex° in forum OSR Help
    Replies: 2
    Last Post: 07-05-2008, 11:24 AM
  2. Creating your first Scar Script
    By TravisV10 in forum Outdated Tutorials
    Replies: 8
    Last Post: 09-04-2007, 11:11 PM
  3. Such thing as a PC Script??
    By x p h p x in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 03-09-2007, 04:40 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
  •