Results 1 to 3 of 3

Thread: AutoResponder... Yet another attempt.

  1. #1
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default AutoResponder... Yet another attempt.

    Yes. Another attempt at my AutoResponder...

    I want it to Exit; the procedure if it finds my nick InChat.

    It doesn't seem to be working, though.

    Please help,

    Mike.

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

       procedure DeclarePlayers;
        begin

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

         Players[0].Name :='Nubypkerdude';
         Players[0].Pass :='password';
         Players[0].Nick :='ubypkerdude';
         Players[0].Active:=True;

         NickNameBMP:=CreateBitMapmaskfromtext(Players[CurrentPlayer].Nick,UpChars)
        end;

       procedure AutoResponder;
        begin
       
          Wait(2000 + Random(2000));
       
         if(InChat(Players[CurrentPlayer].nick))then
          Exit;
         
         if(InChat('hi')) or (InChat('hey')) or (InChat('hello'))then
          begin
           Wait(1000 + Random(2000));
            case Random(3) of
            0: TypeSend('hey');
            1: TypeSend('sup');
            2: TypeSend('what''s up?');
            end;
          end;
        end;
       
    begin
    SetupSRL;
    DeclarePlayers;
    LoginPlayer;
     repeat
      AutoResponder;
     until(false)
    end.

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Left ya'h pass in there...
    Check your PMs for what I changed it to.

    you shouldn't need 'NickNameBMP:=CreateBitMapmaskfromtext(Players[CurrentPlayer].Nick,UpChars)' in DeclarePlayers - SRL should do that for you. You only need to make the nickname bitmap yourself if you're not going to use DeclarePlayers.
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol, guess I should probably change that

    Thanks, man =)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My First Ever Attempt!
    By Belt in forum First Scripts
    Replies: 4
    Last Post: 10-08-2007, 10:36 PM
  2. AutoResponder...
    By yanix in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 09-15-2007, 08:12 AM
  3. My attempt lol
    By rotflmfwao in forum OSR Help
    Replies: 8
    Last Post: 07-16-2007, 05:01 AM
  4. Autoresponder
    By TViYH in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 05-22-2007, 11:25 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
  •