Results 1 to 11 of 11

Thread: Autoresponder

  1. #1
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default Autoresponder

    Hi,

    I'm very new to scripting and i'm learning (for now) by looking into scripts and copy and paste moste of the parts into new ones. It's going slow, but i do learn from it

    Now i would like to add an AutoResponder...
    I looked in the SRL includes: The only usefull thing i found there was 'InChat' and 'IsChatMessage'. Wool has used those in his Responder and i do understand how to use them, but they dont work?

    So i searched in scripts with an autoresponder in it. However im not a very good scripter yet and i cant understand most of the responders that are used (Juniors Aircrafter, Charms WillowRaper). One of the more simple I do understand, is the one from Wools Powerminer..

    It would be very helpfull if someone could explaine me how the Responders are made/used..

    Thank You
    Hup Holland Hup!

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Basically auto responders use an arrays of words.. If they get an in chat message of Hi, for example, then it will randomly choose one of the words from an array and then type it out.. Thats the basics of it. I would recommend looking at Charm's Willow Rapper for a good example of an auto responder.
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    R U KIDDING ME?

    i got one but i think it's a lil to advanced for a begining scripter, so i'll post the whole thing

    IsTextInAreaEx({x1}, {y1}, {x2}, {y2}, textx{add to var}, texty{add to var}, {look for this text}, 12, smallchars, False, True, 0, 1, {TextColor})))



    <----------------------------------------------------------->



    it's looking in the last 2 line's for text to respond to. if you use it don't forget to credit me ^^

    SCAR Code:
    Function AutoRespondByRick (FindText, SayRandomText1, SayRandomText2, SayRandomText3 : string):Boolean;
    var
      textx, texty: Integer;
      TextSayd  : String;
      TextFound : String;
    begin
      if (not (IsTextInAreaEx(8, 428, 291, 461, textx, texty, FindText, 12, smallchars, False, True, 0, 1, 16711680))) then
      begin
        exit;
      end else
      begin
        Result := True;
        Case Random (3) of
          0: begin
               Typesend(SayRandomText1);
               TextSayd := SayRandomText1
             end;
          1: begin
               Typesend(SayRandomText2);
               TextSayd := SayRandomText2
             end;
          2: begin
               Typesend(SayRandomText3);
               TextSayd := SayRandomText3
             end;
        end;
        TextFound := FindText
        WriteLn('- - - Auto Respond By MasterKill - - -');
        WriteLn('- MrX: ' + TextFound);
        WriteLn('- ' + Players[CurrentPlayer].Name + ': '+ TextSayd);
        WriteLn('');
      end;
    end;




    use like this:

    SCAR Code:
    Procedure AutoRespond;
    begin
      AutoRespondByRick('Hi','yoo','yo','ewa');
      AutoRespondByRick('Noob','stfu','look at yourself','u r');
      AutoRespondByRick('Haha','lol','rofl','not funny');
      AutoRespondByRick('Total','look it up','look in hi-scores','not telling');
    end;



    AutoRespondByRick('look for text', 'random say 1', 'random say 2', 'random say 3');

    EDIT:

    REMEMBER: if the ('LookForText' = the same as 'random say x') then it will respond to him self!

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    omg nice bump! man this was nielsjie when he begon lol
    and he should get nub points not he is one but other wise we lie to the system
    ~Hermen

  5. #5
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by MasterKill View Post
    R U KIDDING ME?

    i got one but i think it's a lil to advanced for a begining scripter, so i'll post the whole thing

    IsTextInAreaEx({x1}, {y1}, {x2}, {y2}, textx{add to var}, texty{add to var}, {look for this text}, 12, smallchars, False, True, 0, 1, {TextColor})))



    <----------------------------------------------------------->



    it's looking in the last 2 line's for text to respond to. if you use it don't forget to credit me ^^

    SCAR Code:
    Function AutoRespondByRick (FindText, SayRandomText1, SayRandomText2, SayRandomText3 : string):Boolean;
    var
      textx, texty: Integer;
      TextSayd  : String;
      TextFound : String;
    begin
      if (not (IsTextInAreaEx(8, 428, 291, 461, textx, texty, FindText, 12, smallchars, False, True, 0, 1, 16711680))) then
      begin
        exit;
      end else
      begin
        Result := True;
        Case Random (3) of
          0: begin
               Typesend(SayRandomText1);
               TextSayd := SayRandomText1
             end;
          1: begin
               Typesend(SayRandomText2);
               TextSayd := SayRandomText2
             end;
          2: begin
               Typesend(SayRandomText3);
               TextSayd := SayRandomText3
             end;
        end;
        TextFound := FindText
        WriteLn('- - - Auto Respond By MasterKill - - -');
        WriteLn('- MrX: ' + TextFound);
        WriteLn('- ' + Players[CurrentPlayer].Name + ': '+ TextSayd);
        WriteLn('');
      end;
    end;




    use like this:

    SCAR Code:
    Procedure AutoRespond;
    begin
      AutoRespondByRick('Hi','yoo','yo','ewa');
      AutoRespondByRick('Noob','stfu','look at yourself','u r');
      AutoRespondByRick('Haha','lol','rofl','not funny');
      AutoRespondByRick('Total','look it up','look in hi-scores','not telling');
    end;



    AutoRespondByRick('look for text', 'random say 1', 'random say 2', 'random say 3');

    EDIT:

    REMEMBER: if the ('LookForText' = the same as 'random say x') then it will respond to him self!
    ONE NICE BUMP!
    02-10-2007 <--- Z0mG!

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  6. #6
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    *confused*

    lol it was standing at 'similair treads' so i thought that was a lil 'up to date' sorry :P

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    gratz *gives a cup* you won the best bumper of the month price a app for masterkill*app*
    ~Hermen

  8. #8
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    W00T next time i'll check the date first

  9. #9
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Hehe, thanks.. But I already made my own responder (right, The Claw? )
    Hup Holland Hup!

  10. #10
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    hell yes i'm sure of that

    i saw your responder to (2000 lines?). but i thought you where jk'ing to show noob's how to ask some stuff but 'simulair treads' is not 'up to date'

    SORRY

  11. #11
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    Hehe, thanks.. But I already made my own responder (right, The Claw? )
    its pretty good too

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoResponder...
    By yanix in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 09-15-2007, 08:12 AM
  2. Autoresponder
    By TViYH in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 05-22-2007, 11:25 PM
  3. AutoResponder...
    By Jason2gs in forum OSR Help
    Replies: 18
    Last Post: 03-02-2007, 03:28 PM
  4. AutoResponder
    By Hey321 in forum News and General
    Replies: 20
    Last Post: 02-11-2007, 09:28 PM

Posting Permissions

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