Results 1 to 15 of 15

Thread: Autoresponder..

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Autoresponder..

    I was wandering if anyone can tell me the function(s) for the autoresponder.. or can anyone provide me a link with a tut for how to make an autoresponder..

    P.S. I said autoresponder not autotalker

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

    Default

    Here use mine;

    SCAR Code:
    {-------------------------------}
    {   BETA Auto Responder         }
    {-------------------------------}

    procedure NAutoRespond;
    begin
      if InChat('lol') then
      begin
        case Random(36) of
          2: TypeSend('...s');
          5: TypeSend('Lilol');
          8: TypeSend('contento');
          13: TypeSend('Hehe');
          15: TypeSend('funyy');
          17: TypeSend(':)');
          19: TypeSend('wave:zzzzzz');
        end;
        Exit;
      end;
      if InChat(Players[CurrentPlayer].Name) then
      begin
        case Random(11) of
          2: TypeSend('!!!.');
          5: TypeSend('No me gusta ingles'); // <-- SPanish :p
          7: TypeSend('Estoy Trieste'); // some more spanish :D
          9: Typesend('chicos verqueros')
        end;
      end;
    end;

    Just have a look trough.

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

    Default

    Here is my function InChatMulti...
    SCAR Code:
    function InChatMulti(text: TStringArray): boolean;
    var
      i : integer;
      s: string;
    begin
      for i:=0 to high(text) do
      begin
        if (not (GetLastChatText(s))) then
          LastChatter(s);
          Result := (Pos(Text[i], s) > 0);
      end;
    end;

    How to use it:

    SCAR Code:
    If InChatMulti(['Wc lvl', 'Woodcutting lvl']) then

    and then you just respond...


  4. #4
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Here use mine;

    SCAR Code:
    {-------------------------------}
    {   BETA Auto Responder         }
    {-------------------------------}

    procedure NAutoRespond;
    begin
      if InChat('lol') then
      begin
        case Random(36) of
          2: TypeSend('...s');
          5: TypeSend('Lilol');
          8: TypeSend('contento');
          13: TypeSend('Hehe');
          15: TypeSend('funyy');
          17: TypeSend(':)');
          19: TypeSend('wave:zzzzzz');
        end;
        Exit;
      end;
      if InChat(Players[CurrentPlayer].Name) then
      begin
        case Random(11) of
          2: TypeSend('!!!.');
          5: TypeSend('No me gusta ingles'); // <-- SPanish :p
          7: TypeSend('Estoy Trieste'); // some more spanish :D
          9: Typesend('chicos verqueros')
        end;
      end;
    end;

    Just have a look trough.
    thanks a lot, I'll use this as a guide

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

    Default

    No problem

  6. #6
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    Here is my function InChatMulti...
    SCAR Code:
    function InChatMulti(text: TStringArray): boolean;
    var
      i : integer;
      s: string;
    begin
      for i:=0 to high(text) do
      begin
        if (not (GetLastChatText(s))) then
          LastChatter(s);
          Result := (Pos(Text[i], s) > 0);
      end;
    end;

    How to use it:

    SCAR Code:
    If InChatMulti(['Wc lvl', 'Woodcutting lvl']) then

    and then you just respond...
    Ok thanks but now how do i make the script find the wcing level and wriite it in the ruenscape chat box?

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

    Default

    Quote Originally Posted by faster789 View Post
    Ok thanks but now how do i make the script find the wcing level and wriite it in the ruenscape chat box?
    SCAR Code:
    Procedure Respond;
    var
      lvl : Integer;
    begin
      if InChatMulti([blablalba]) then
      begin
        lvl  := GetSkillInfo('Woodcutting', False);
        case random(5) of
          0 : TypeSend(Inttostr(lvl));
    blabla


  8. #8
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    SCAR Code:
    Procedure Respond;
    var
      lvl : Integer;
    begin
      if InChatMulti([blablalba]) then
      begin
        lvl  := GetSkillInfo('Woodcutting', False);
        case random(5) of
          0 : TypeSend(Inttostr(lvl));
    blabla

    thanks a lot..rep++

  9. #9
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hmmm i have a somewat autoresponder but i keep getting an error..

    this is the autoresponder part:
    SCAR Code:
    procedure Autoreply;
    var lvl : integer;
    begin
      if InChatMulti(['Mining lvl', 'Minin lvl', 'Mine lvl', 'Mining level', 'Minin level', 'Mine level']) then
      begin
      lvl  := GetSkillInfo('Mining', False);
      case random (6) of
        0: TypeSend inttostr(lvl))+' you';
        1: TypeSend inttostr(lvl));
        2: TypeSend 'almost '+inttostr(lvl+1));
        3: TypeSend'im almost'+inttostr(lvl+1));
        4: TypeSend 'kinda high..lvl '+inttostr(lvl));
        5: TypeSend 'im lvl '+inttostr(lvl));
      end;

    and this is the error:
    SCAR Code:
    Line 190: [Error] (12918:13): Invalid number of parameters in script
    anyone know wats the problem?

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

    Default

    Quote Originally Posted by faster789 View Post
    hmmm i have a somewat autoresponder but i keep getting an error..

    this is the autoresponder part:
    SCAR Code:
    procedure Autoreply;
    var lvl : integer;
    begin
      if InChatMulti(['Mining lvl', 'Minin lvl', 'Mine lvl', 'Mining level', 'Minin level', 'Mine level']) then
      begin
      lvl  := GetSkillInfo('Mining', False);
      case random (6) of
        0: TypeSend inttostr(lvl))+' you';
        1: TypeSend inttostr(lvl));
        2: TypeSend 'almost '+inttostr(lvl+1));
        3: TypeSend'im almost'+inttostr(lvl+1));
        4: TypeSend 'kinda high..lvl '+inttostr(lvl));
        5: TypeSend 'im lvl '+inttostr(lvl));
      end;

    and this is the error:
    SCAR Code:
    Line 190: [Error] (12918:13): Invalid number of parameters in script
    anyone know wats the problem?
    You forgot to open a ( after 'TypeSend ...'.


  11. #11
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Heres the fixed one
    SCAR Code:
    procedure Autoreply;
    var lvl : integer;
    begin
      if InChatMulti(['Mining lvl', 'Minin lvl', 'Mine lvl', 'Mining level', 'Minin level', 'Mine level']) then
      begin
      lvl  := GetSkillInfo('Mining', False);
      case random (6) of
        0: TypeSend( inttostr(lvl))+' you';
        1: TypeSend( inttostr(lvl));
        2: TypeSend('almost '+inttostr(lvl+1));
        3: TypeSend('im almost'+inttostr(lvl+1));
        4: TypeSend ('kinda high..lvl '+inttostr(lvl));
        5: TypeSend( 'im lvl '+inttostr(lvl));
      end;

    You also need to include srl using {.include srl/srl.scar}
    And secondly, i think inchatmulti is gone, so you just need to use InChat, then loop through those.

    By the way, just a simple 'ining' Would suffice for Mining, mining level, and all that. Same goes for Mine. I probably woudl just do a

    SCAR Code:
    Inchat('evel')
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

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

    Default

    No offence leelokin, but thats wrongs... on the first typesend the ) is before the last text

    Otherwise you'll still get an error.

  13. #13
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    yep guys I figuredd...and also this is my autoresponder/talker in my script and it is put in my mining procedure like this but what it does is it keeps looking for the mining level and not clicking the rocks!

    This is the autoresponder/talker...

    SCAR Code:
    function InChatMulti(text: TStringArray): boolean;
    var
      i : integer;
      s: string;
    begin
      for i:=0 to high(text) do
      begin
        if (not (GetLastChatText(s))) then
          LastChatter(s);
          Result := (Pos(Text[i], s) > 0);
      end;
    end;

    procedure AutoReply;
    var lvl, lvll : integer;
    begin
      if InChatMulti(['Mining lvl', 'Minin lvl', 'Mine lvl', 'Mining level', 'Minin level', 'Mine level']) then
      begin
        lvl  := GetSkillInfo('Mining', False);
        case random (6) of
          0: TypeSend (inttostr(lvl)+' you');
          1: TypeSend (inttostr(lvl));
          2: TypeSend ('almost '+inttostr(lvl+1));
          3: TypeSend ('im almost'+inttostr(lvl+1));
          4: TypeSend ('kinda high..lvl '+inttostr(lvl));
          5: TypeSend ('im lvl '+inttostr(lvl));
        end;
      end;
      begin
        if InChatMulti(['cya', 'bye', 'bye guys', 'later', 'im out', 'see ya', 'peace out']) then
        case random (6) of
          0: TypeSend ('c ya');
          1: TypeSend ('peace');
          2: TypeSend ('see ya');
          3: TypeSend ('peace out');
          4: TypeSend ('laterr');
          5: TypeSend ('byee');
        end;
      end;
      begin
        if InChatMulti(['hey', 'hi', 'helo', 'sup', 'hello', 'hey', 'wasup']) then
        case random (6) of
          0: TypeSend ('heyy');
          1: TypeSend ('sup');
          2: TypeSend ('hi');
          3: TypeSend ('heloo');
          4: TypeSend ('sup, this geting so boring..');
          5: TypeSend ('hey, im soo bored');
        end;
      end;
      begin
        if InChatMulti([Players[CurrentPlayer].Name]) then
        case random (9) of
          0: TypeSend ('yaa?? srry im busy..');
          1: TypeSend ('wat..cant talk too busy :)');
          2: TypeSend ('wat? so bord here..dont feel like tlking');
          3: TypeSend ('ye? too bord to talk sory');
          4: TypeSend ('sup? this geting so boring..');
          5: TypeSend ('ye? wat u want? sory so bordd..');
          6: TypeSend ('wat up..');
          7: TypeSend ('yep??');
          8: TypeSend ('.....what?');
        end;
      end;
      begin
        lvll := GetSkillInfo('Smithing', False);
        if InChatMulti(['Smithing lvl?', 'Smith lvl?', 'Smith level', 'Smithing level?', 'Smithing levels?']) then
        case random (6) of
          0: TypeSend (inttostr(lvll)+' you');
          1: TypeSend (inttostr(lvll));
          2: TypeSend ('almost '+inttostr(lvll+1));
          3: TypeSend ('im almost'+inttostr(lvll+1));
          4: TypeSend ('kinda  low..lvl '+inttostr(lvll));
          5: TypeSend ('im lvl '+inttostr(lvll));
        end;
      end;
    end;

    procedure AutoTalker;
    var lvl : integer;
    begin
      lvl  := GetSkillInfo('Mining', False);
      case random (90) of
          0: TypeSend ('wow, this is sooo boring..');
          1: TypeSend ('mining lvls? minez '+inttostr(lvl));
          2: TypeSend ('almost '+inttostr(lvl+1)+ ' mining lvl :)');
          3: TypeSend ('im almost'+inttostr(lvl+1)+ ' mining yay me ..lol');
          4: TypeSend ('zzzzzz');
          5: TypeSend ('*snorezz*');
      end;
    end;

    This is how I put it in the MindaRock procedure..but wat this does is it keeps looking for the level and keeps doing autoresponder..plz help?

    SCAR Code:
    procedure MinedaRock;
    var x, y : integer;
    begin
      MakeCompass('N');
      SetAngle(True);
     
      repeat
        if Not(LoggedIn) then exit;
       AutoTalker;
       AutoReply;
       if FindObjCustom(x, y, ['ock', 'Mine'], [2832993], 3) then
        Makesurepick;
        FindGas;
        Leveled;
        Myrandom;
        Mouse(x, y, 1, 1, True);
        Myrandom;
        Wait(WaitPerRock +random(500));
      until InvFull;
      if InvFull then
      begin
        writeln( 'Inventory Full walking to bank.' );
        ReportVars[0] := ReportVars[0] + 1;
      end;
    end;

  14. #14
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all, these go WAY to slow, if you want a decent one, PM me!

    No Offence.. To The Others

  15. #15
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Stop Quoting Big Things!!! Gaah There Should Be A Rule Against It
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autoresponder
    By nielsie95 in forum OSR Help
    Replies: 10
    Last Post: 09-15-2007, 08:27 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
  •