Results 1 to 7 of 7

Thread: Question about my first script!

  1. #1
    Join Date
    Jan 2013
    Location
    Ohio
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default Question about my first script!

    So I am trying to make a script to take advantage of part of a broken RSPS mechanic. You can uncharge your blowpipe, use the chisel on it, get xp, uncharge and repeat!

    (EDIT: I had it set to Pascal interpreter ofc) This is my first time trying to put some code together so please take it easy! I am unable to even get it running. I keep getting 'Exception in Script: Unknown compiler directives at 12:3'

    Code:
    program BlowpipeSmasher;
    {$I SRL-6/SRL.simba}
    
    procedure bpSmash
    begin
      clearDebug();
      writeLn('Uncharging Blowpipe');
      mouse(616, 229, 5, 5, MOUSE_MOVE);
      wait(randomRange(55, 100));
      fastClick(MOUSE_RIGHT);
      wait(randomRange(200, 350));
      mouse(621, 314, 5, 5, MOUSE_MOVE);
      fastClick(MOUSE_LEFT);
      wait(randomRange(200, 400));
      mouse(262, 402, 5, 5, MOUSE_MOVE);
      fastClick(MOUSE_LEFT);
      writeLn('Charging Blowpipe');
      wait(randomRange(200, 400));
      mouse(580, 229, 5, 5, MOUSE_MOVE);
      wait(randomRange(100, 300));
      fastClick(MOUSE_LEFT);
      wait(randomRange(200, 300));
      mouse(620, 228, 5, 5, MOUSE_MOVE);
      wait(randomRange(100, 300));
      fastclick(MOUSE_LEFT);
    end;
    
    begin
      setupSRL();
      bpSmash();
    end
    Does this code come even close to being able to function? I added all the randomness because even though its an RSPS I am still paranoid as ever!

    EDIT: Ok I complied it successfully but its refusing to do anything besides compile!

    New window: 329020
    Compiled successfully in 2453 ms.
    SRL: Logfile = C:\Simba\Includes\SRL-6/logs/SRL log (18-08-16 at 03.32.37 PM).txt
    -- setupSRL()
    ---- Setting up SRL...
    ---- HINT: You are not using SMART, be sure to use Simba's crosshairs to select the RS client.
    ---- Waiting up to 5 minutes for RS to load...
    Successfully executed.

  2. #2
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Script --> Interpreter --> Lape

    E: You should go to this thread https://villavu.com/forum/showthread.php?t=58935 and read through these parts http://i.imgur.com/xxXXWOi.png
    Last edited by acow; 08-18-2016 at 07:41 PM.

  3. #3
    Join Date
    Jan 2013
    Location
    Ohio
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default

    Quote Originally Posted by acow View Post
    Script --> Interpreter --> Lape

    E: You should go to this thread https://villavu.com/forum/showthread.php?t=58935 and read through these parts http://i.imgur.com/xxXXWOi.png


    I've looked through that several times. I am not seeing anything that is helping me figure out how to get this running? What section should I be looking in...?

  4. #4
    Join Date
    Mar 2014
    Posts
    195
    Mentioned
    4 Post(s)
    Quoted
    92 Post(s)

    Default

    Quote Originally Posted by count to potato View Post
    New window: 329020
    Compiled successfully in 2453 ms.
    SRL: Logfile = C:\Simba\Includes\SRL-6/logs/SRL log (18-08-16 at 03.32.37 PM).txt
    -- setupSRL()
    ---- Setting up SRL...
    ---- HINT: You are not using SMART, be sure to use Simba's crosshairs to select the RS client.
    ---- Waiting up to 5 minutes for RS to load...
    Successfully executed.
    if you are using srl-6

    Post this at the top of you script. Should fix that problem.
    Simba Code:
    function waitClientReady(): boolean;override;
    begin
     result:= true;
    end;

  5. #5
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by count to potato View Post
    I've looked through that several times. I am not seeing anything that is helping me figure out how to get this running? What section should I be looking in...?
    The edit wasn't aimed at helping you fix a specific issue, I saw multiple issues with your code so I linked the beginner guide.
    @what section, the sections screenshotted. But again, this isn't aimed at a specific issue (and the original post of the thread was different when I was responding to it)
    Last edited by acow; 08-18-2016 at 08:34 PM.

  6. #6
    Join Date
    Jan 2013
    Location
    Ohio
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default

    Quote Originally Posted by goodgamescript View Post
    if you are using srl-6

    Post this at the top of you script. Should fix that problem.
    Simba Code:
    function waitClientReady(): boolean;override;
    begin
     result:= true;
    end;
    Awesome! What exactly does this snippet of code do? It looks like it's just checking to see if the client is ready?

    And I will be checking out your channel here in a minute, thank you so much for your time and help!

  7. #7
    Join Date
    Mar 2014
    Posts
    195
    Mentioned
    4 Post(s)
    Quoted
    92 Post(s)

    Default

    Quote Originally Posted by count to potato View Post
    Awesome! What exactly does this snippet of code do? It looks like it's just checking to see if the client is ready?

    And I will be checking out your channel here in a minute, thank you so much for your time and help!
    it does, it checks to see if the official client is ready, but if your using it for a rsps then it doesnt work so well lol. so it overrides it so its basically always ready.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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