Results 1 to 15 of 15

Thread: Change angle not in loop

  1. #1
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Change angle not in loop

    Ok, i am so close to finishing this Castle Wars script its not funny. I only have one little issue and that is trying to turn the camera angle twice in the game, depending on which team you are on in Castle wars. I need the camera to turn exactly north at one certain point and south at another and i need it to go somewhere in this Procedure.

    Code:
    Procedure Waiting;        // if sara, get closer to leave
    
    var
      x, y:Integer;
    begin
      if  FindColorSpiralTolerance(x, y, 5847086 ,230 , 137 , 298 , 190 , 25) then
    
      begin
        MoveMouse(101, 284);
        Wait(10000);
        CLickMouse(101, 284, 1);
      end;
    end;
    Useful help will get your name mentioned.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    MakeCompass('N'); and MakeCompass('S'); should do the trick.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (12:3): Unknown identifier 'MakeCompass' at line 11

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Hold on...Looking it up.

    Are you using SRL5? This works for me:

    Simba Code:
    program new;
    {$i srl/srl.simba}

    begin
    MakeCompass('N');
    end.

    Also, I noticed you used MoveMouse(); and ClickMouse();. Don't use those, use MMouse(); and Mouse();
    Last edited by Kyle Undefined; 02-01-2012 at 11:34 PM.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (12:3): Unknown identifier 'MakeCompas' at line 11 >.>

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  7. #7
    Join Date
    Jan 2012
    Location
    Minneapolis, Mn
    Posts
    185
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It would be nice to know what line 11 looks like. Also, did you include {$i SRL\SRL.simba} at the top of your script?

  8. #8
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this doesn't compile for me for some reason.

    {$i SRL/SRL/Misc/stats.simba}

    I have managed to make this whole thing so far without needing to use it, sucks for direction i do.

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You don't need that line, it's included in {$i srl/srl.simba} now.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    program CastleWars;
    {$define SMART}
    {$i srl/srl.Simba}
    
    
    procedure Start;  // click guthix
    
    var
      x, y:Integer;
    begin
      if FindColorSpiralTolerance(x, y, 8562785 , 48 , 4 , 159 , 334 , 20) then
    
    begin
      MakeCompas('S');
      Writeln('Found Guthix!');
      MoveMouse(x, y);
      Wait(4000);
      CLickMouse(x, y, 1);
      Wait(2000)
      end;
    end;
    [Error] (15:3): Unknown identifier 'MakeCompas' at line 14
    Compiling failed.

  11. #11
    Join Date
    Jan 2012
    Location
    Minneapolis, Mn
    Posts
    185
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Your error is exactly what it says, MakeCompas doesn't exist. Change it to MakeCompass.

  12. #12
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    It's MakeCompass, sorry, I updated my post Long day at the office :/
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  13. #13
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, it compiles, but now it does nothing... Maybe the compass is at the wrong place?

  14. #14
    Join Date
    Jan 2012
    Location
    Minneapolis, Mn
    Posts
    185
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Move MakeCompass('S') outside of the if statement.

  15. #15
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Props guys, i found it needs to click on the screen first before it shifts, thanks alot.

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
  •