Results 1 to 14 of 14

Thread: My First AutoTalker

  1. #1
    Join Date
    Sep 2006
    Location
    My Computer
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My First AutoTalker

    Heres my first ever Scar Script, its not as heard as i thought it would be to learn how code in scar, its a user controled loop, meaning that you have to set the ammount of times it has to be run. It very basic i just learned how to code in scar in about 20 mins

  2. #2
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    Nice first script, here, but it doesn't work (wrong variables), and the standards were completely off, so I edited it a bit:
    SCAR Code:
    Program AutoTalker;
    var
      TimesToRepeat, i : Integer;
      Text : String;
    begin
      TimesToRepeat := 0; //how often you want it to repeat, substitute the 0
      Text :='Enter your text here';
      i := 0 //because after typing it once, it will add one, otherwise it would already be two after typing it once.
      begin
        ActivateClient; //No need to do that over and over again
        repeat
          SendKeys((Text)+chr(13));
          i := i + 1;
          wait((3000)+random(500));
        Until (i = TimesToRepeat);
      end;
    end.

    If you have any question, just write me a personal message.
    There is nothing right in my left brain and there is nothing left in my right brain.

  3. #3
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    For a first script you have done quite well and you did fairly well with standards.

    One thing you should do is put TimesToRepeat in a const section and the same with the text.
    Below is how I'd do it.

    SCAR Code:
    Var
    Times, i:integer
    Test :string

    Const
    TimesToRepeat = '0' //enter times to repeats here instead
    Text :=' text goes here' //same with text
    i :=0//and again with i, tell people not to edit this

    Also i don't quite understand why you had begin in the variables, o well

    Good idea with telling people the different text effects

    Hope this helped

  4. #4
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Give him a break, you gotta start somewhere. You don't expect a 1st grader to be able to solve differential equations, you build your way up to it and learn as you go.

  5. #5
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by pyroryan View Post
    Give him a break, you gotta start somewhere. You don't expect a 1st grader to be able to solve differential equations, you build your way up to it and learn as you go.
    I'm not being harsh. I'm doing something called "constructive critism". I was telling him how to improve his script, not that it was bad.

    I'm sorry eurostyles if I sounded harsh, I didn't mean to, I was trying to help.

    Just out of interest, how od are first graders, I'm from England.

  6. #6
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SendKeys is Detectable?
    Well Typesend sure isn't.
    Anyway, keep up the work.
    Read something in here. ->
    Tutorials.
    Eerik.

  7. #7
    Join Date
    Sep 2007
    Posts
    413
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should use TypeSends it's not very detectable. Also allow the user to add more messages instead of one.

  8. #8
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by heavenzeyez1 View Post
    SendKeys is Detectable?
    Well Typesend sure isn't.
    Anyway, keep up the work.
    Read something in here. ->
    Tutorials.
    Eerik.
    He is right try to use typesend! Its pretty much a simple autotalker, want some direction look at mine the link is in my sig.
    This is for Jagex!

    My Public Scripts
    Simple AutoTalker
    Face Maker

  9. #9
    Join Date
    Feb 2008
    Location
    Pennsylvania
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I also made an Auto Talker. It's my first script and let me know what you guys think.

    SCAR Code:
    {Nikos's Auto Talker version 0.0.1}
    program AutoTalker;

    var
    i: Integer;

    const
    TimesToRepeat=10;//Times to repeat.
    Text='glow1: This is Sparta!';//Enter text

    procedure AutoTalk;
    begin
     writeln('...Auto Talking...');
     sendkeys(text+chr(13));
    end;

    procedure Stay;
    begin
    i:=0;
     repeat
      i:=i + 1;
      AutoTalk;
      wait(10000+Random(8000));
     until(i>=TimesToRepeat);
    end;

    begin
     Stay;
    end.

  10. #10
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by nikos View Post
    I also made an Auto Talker. It's my first script and let me know what you guys think.

    SCAR Code:
    {Nikos's Auto Talker version 0.0.1}
    program AutoTalker;

    var
    i: Integer;

    const
    TimesToRepeat=10;//Times to repeat.
    Text='glow1: This is Sparta!';//Enter text

    procedure AutoTalk;
    begin
     writeln('...Auto Talking...');
     sendkeys(text+chr(13));
    end;

    procedure Stay;
    begin
    i:=0;
     repeat
      i:=i + 1;
      AutoTalk;
      wait(10000+Random(8000));
     until(i>=TimesToRepeat);
    end;

    begin
     Stay;
    end.
    Maybe post in your own thread?
    And again: USE TYPESEND('plapla');
    Eerik.
    Not bad.

  11. #11
    Join Date
    Feb 2008
    Location
    Pennsylvania
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea i thought of posting on separate thread, but thought why bother it will have the same title (or a similar one). It would just waste a thread. Thanks, its only my first script though. Also typesend dosent work for me in scar...

  12. #12
    Join Date
    Feb 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice,

    just some advice
    when i started my first script i did what you did, then added a trader respnder e.c.t merhcanting and kept on going till i had a script that logged in varrok walked to center talked looks for 2 trades and went back did 3 trades there there e.c. my advice is to build yourslef up and keep on going its a great way to learn.

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

    Default

    IT dosen't work for you because either you dont have SRL installed or you didnt include {.include SRL/SRL.scar} at the top like

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}
    Begin
    TypeSend('Hi');
    End.

  14. #14
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by blueberry jam View Post
    nice,

    just some advice
    when i started my first script i did what you did, then added a trader respnder e.c.t merhcanting and kept on going till i had a script that logged in varrok walked to center talked looks for 2 trades and went back did 3 trades there there e.c. my advice is to build yourslef up and keep on going its a great way to learn.
    That's pretty hard, though?
    You sure u made it?
    Eerik.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoTalker
    By snatch in forum First Scripts
    Replies: 3
    Last Post: 09-03-2007, 12:18 PM
  2. First Autotalker
    By 71runemaker in forum First Scripts
    Replies: 3
    Last Post: 07-14-2007, 08:57 AM
  3. autotalker
    By wobbii in forum First Scripts
    Replies: 3
    Last Post: 04-16-2007, 01:48 AM
  4. My AutoTalker
    By RudeBoiAlex in forum RS3 Outdated / Broken Scripts
    Replies: 10
    Last Post: 03-05-2007, 03:34 PM
  5. need autotalker help
    By Dadeer in forum OSR Help
    Replies: 1
    Last Post: 12-01-2006, 12:12 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
  •