Results 1 to 15 of 15

Thread: my first script

  1. #1
    Join Date
    Mar 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default my first script

    never done scripting before... but I do know a little C++

    messed around for a bit and this is what I came up with

    (you must be logged in to use it)

    please, PLEASE, tell me how to make it better.

    newbie guides are one thing, but dynamic user feedback is how I learn best.

  2. #2
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    first of all

    MoveMouseSmoothEX = bannable

    sendkeys=HUGE BAN!

    use typesend
    and with the logout
    DO
    logout;

    lol

  3. #3
    Join Date
    Mar 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what should I use instead of MoveMouseSmoothEx?

  4. #4
    Join Date
    Feb 2008
    Location
    In the woods of Finland
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use MMouse
    Cut & Drop or Stock Powerchonker


    Teh 3vil Oar H1t5 Chuck Norris Stone c0ld

  5. #5
    Join Date
    Mar 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok ty

  6. #6
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    SCAR Code:
    program autotalker;

    {.include SRL/SRL.scar}

    const
    Talk1= 'Hey everybody whats up';
    Talk2= 'Man fishing is boring!!!';
    Talk3= 'Anyone wanna go to bount hunter?';
    Talk4= 'mmmkay';
    Talk5= 'Later';

    procedure Talking;
    begin
      TypeSend(Talk1+chr(13));
      Wait(20000+random(4000));
      TypeSend(Talk2+chr(13));
      Wait(10000+random(3000));
      TypeSend(Talk3+chr(13));
      Wait(80000+random(2000));
      TypeSend(Talk4+chr(13));
      Wait(10000+random(20000));
      TypeSend(Talk5+chr(13));
      Wait(50000+random(20000));
    end;

    begin
      Talking;
      Logout;
    end.

    1) Standards.

    2) TypeSend is what is generally used to send things now

    3) You dont have to put "const" after every constant, at the beginning is just fine

    4) You dont need the MMouse or ClickMouse procedures, Runescape types automatically, no clicking in the box needed :]
    Jus' Lurkin'

  7. #7
    Join Date
    Mar 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    tyvm

    I revised it a bit, give this a go

    (I made room to put a username and pass in for when I eventually make a login part to it)

  8. #8
    Join Date
    Mar 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Little better, but could use more work.

  9. #9
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use this it logs in and stuff. You don't even have to be logged in

    SCAR Code:
    //My first script, so please be kind =D

    program autotalker;

    {.include SRL/SRL.scar}

    const

    Talk1= 'Hey everybody whats up';
    Talk2= 'Man fishing is boring!!!';
    Talk3= 'Anyone wanna go to bount hunter?';
    Talk4= 'mmmkay';
    Talk5= 'Later';

    Procedure DeclarePlayers;
    Begin

    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name := '';
    Players[0].Pass := '';
    Players[0].Active := True;

    End;

    Procedure Talk;
    begin

      TypeSend(Talk1);
     
      Wait(20000+random(4000));
     
      TypeSend(Talk2);
     
      Wait(10000+random(3000));
     
      TypeSend(Talk3);
     
      Wait(60000+random(2000));
     
      TypeSend(Talk4);
     
      Wait(10000+random(20000));
     
      TypeSend(Talk5);
     
      Wait(50000+random(20000));

    end;

    Begin
    SetupSRL;
    ClearDebug;
    DeclarePlayers;
    If Not LoggedIn then LoginPlayer;
    Wait(200 + Random(150));
    Talk;
    End.

    Edit: I also removed the chr(13) as that will be detectable because typesend already does that...

  10. #10
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by p1nky View Post
    MoveMouseSmoothEX = bannable
    Not it's not. Only if you're coordinate clicking. If you make random in the coordinates then it isn't detectable.

    Also, TypeSend types like a human.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  11. #11
    Join Date
    Mar 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks so much Da 0wner, that's awesome =D

  12. #12
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    rep++ me? That blue checkmark below my post count

  13. #13
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    rep++ me? That blue checkmark below my post count
    Learn standars


  14. #14
    Join Date
    Mar 2008
    Location
    Bradford, England
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    why dont u use srl player forms for the login

    {.include srl\srl\misc\users.scar}

    procedure declareplayers;
    begin
    SRLPlayerForm(true,[],[],[],[])
    end;

    its an easier way than writing out:

    procedure declareplayers;
    begin
    numberofplayers;
    currentplayer;

    ect.

  15. #15
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Rofl, because it's a very simple script and you can't just do that you have to do LoadUs and all that other stuff....It's only 1 player also.

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
  •