Results 1 to 24 of 24

Thread: MoveCompass help

  1. #1
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is my sweet, yet simple compass moving script, that doesn't work!

    SCAR Code:
    program MoveCompass;
    {.include SRL\SRL.Scar}


    procedure MoveIt;

    begin
    MoveCompass('n');
    end;


    begin
    SetupSRL;
    MoveIt;
    end.

    "Failed when compiling.
    Line 8: [Error] (12651:1): Unknown identifier 'MoveCompass' in script C:\Documents and Settings\Morgan\Desktop\scar\SCRIPTS\MoveCompass.s car"

    Whats the problem?

    Also, I am changing all of the MoveMouse and ClickMouse actions on my "AutoFletcher" to Mouse/MMouse. When I change them to Mouse/MMouse, they never seem to work. I will post an example.

    I have this.
    MoveMouseSmooth(268,215);
    Wait(500+random(100));
    ClickMouse(268+random(3),215+random(3),false);

    And Mouse/MMouse says to do this. This will move the mouse and click in one action.
    Mouse(x, y, xrandom, yrandom, button);
    x would be 268, y would be 215.
    but what I dont get is, whats the xrandom and yrandom for?
    I just put 268 in the xrandom and 215 in the yrandom.
    After that I put false because I wanted it to right click.
    It looked like this
    Mouse(268, 215, 268, 215, false);

    SCAR Code:
    program MoveAndClick;
    {.include SRL\SRL.Scar}


    procedure MoveClick;

    begin
    Mouse(268, 215, 268, 215, false);
    end;


    begin
    SetupSRL;
    MoveClick;
    end.

    Then this little window always pops up after I start it and it says something along the lines of, never permit, always permit, permit once, or permit this file. I pick one, then I press OK, then it pops back up! Forever and ever, it never goes away, no matter how many times I click Ok, or Cancel! This only happens when I try to use a Mouse/MMouse action?

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Its called MakeCompass,

    So it would be:

    SCAR Code:
    MakeCompass('n');

    Hope I Helped

  3. #3
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    The RandomX and RandomY are so you don't always click the same spot.

    x := 100
    RandomX := 6
    you'll click between 94 and 106

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  5. #5
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ah, i figured it was something like that!
    Kind of like
    SCAR Code:
    ClickMouse(123+random(5),123+random(5));

    MakeCompass('n'); still does not center up the compass. Any clues as to why it is not doing its job?

  6. #6
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It won't center it perfectly. Also with your little Popup 'issue', its just asking for permission. Its not because of Mouse and MMouse, but scar needs permission to access srl. Just click always allow.

    Also this:
    SCAR Code:
    ClickMouse(123+random(5),123+random(5));

    would be like this in Mouse form:
    SCAR Code:
    Mouse(123, 123, 5, 5, false);

    Where instead of doing +random(5), you would put 5, 5.

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    No you need to add a wait before you actually do it Try This:

    SCAR Code:
    Begin
      ActivateClient;
      SETUPsrl;
      Wait(800);
      MakeCompass('n');
    end.

    Hope I Helped

  8. #8
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    actually the problem might be the client. you have to target the client with the crosshair (its in scar, it looks like the thing you use to aim with guns) and then at the beginning of the script call
    ActivateClient;

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  9. #9
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  10. #10
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Click 'always allow' It should be the last option or something like that =]

  11. #11
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  12. #12
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh well guess you'll just have to deal with it. Not tooo much of a hassle =]

  13. #13
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Tools -> Options -> Firewall Settings -> Allow All.

    USE WITH CAUTION - disable allow all id you use a non-trusted script.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  14. #14
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OO I didnt know that. Lol nooby me :/
    What type of scripts would be dangerous?

  15. #15
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oops! My auto fletcher that I made the other day got me banned for 10 days. I need some anti-ban, and anti-random stuff in that script. Any clue on what i should say to appeal my rule 7 (macroing) offence? >.<

  16. #16
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Say that you got this program a Mate sent you, and he said it would make you rich, so you ran it, and it closed down your computer

  17. #17
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  18. #18
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Problem is, your procedures that you first ran were is detectable i isnt even funny lol. Yah anti-ban does make a big difference.

  19. #19
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  20. #20
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  21. #21
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    haven't we helped you until now ? we encourage people to script here and if you go on our IRC channel there is usually always someone willing to help immediately

    but do try to figure things out for yourself first, then if your sure yo can't you can ask

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  22. #22
    Join Date
    Mar 2007
    Location
    Phoenix, AZ.
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  23. #23
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by redknight153 View Post
    What is IRC?! I heard about it a lot and people have it in their signatures...?
    http://www.villavu.com/forum/showthr...=28996?t=31532

    It's fun, you should go there often. People in there are cool. And helpful. So if you need help, concider asking people there before eventually making a thread about your problem(s). But remember - if you're nice and polite towards the people there, they will treat you likewise.

  24. #24
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Red; you should remove that siggy. Jagex does know we exist; and its just sketchy to have that haha.

    Nava2
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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
  •