Results 1 to 3 of 3

Thread: Auto Responder Help.

  1. #1
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Auto Responder Help.(STILL NEED HELP HERE!)

    Still Need Help

    I have a feeling i did something dumb, because it was working at the first test, but stopped. When I use it the script goes back and forth between skills tab and inventory tab. (Inventory is because of until(invfull). Thank you anyone who points out the stupid mistake i made to cause this to not work.
    SCAR Code:
    procedure Talk(Find,Say1,Say2,Say3,Say4:String);
    begin
      if(InChat(Find)) then
      begin
        case random(4) of
          1: TypeSend(Say1);
          2: TypeSend(Say2);
          3: TypeSend(Say3);
          4: TypeSend(Say4);
        end;
      end;
    end;

    procedure AR;
    begin
      if(LoggedIn) then
      begin
        Talk('wc lvl','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('wc lvl?','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('wc lvls?','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('wc lvls','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('woodcutting lvls','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('woodcutting lvls?','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('woodcutting lvl','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk('woodcutting lvl?','look it up','secret',IntToStr(GetSkillLevel('WoodCutting')),'0');
        Talk(Players[CurrentPlayer].Nick ,'Leave me alone.','Go away','....... What?','yeah?');
        Talk('Lol','heh','not funny', 'bleh','rofl');
        Talk('lmao','heh','not funny', 'bleh','rofl');
        Talk('macro','Who','we know you are', 'Whatever...','');
        Talk('skillcape','I wub agi emote','i need a wc one', '','');
        Talk('yawn','go to bed','sleep and spare the trees','yawwwwn','moo')
        Talk('autoer','Who','we know you are', 'Whatever...','');
        Talk('nerd','Yes i am','Yes you are', 'Whatever...','if you play rs your a nerd.');
        Talk('noob','Proud of it','Sure am.', 'We know you are','Shut it');
        Talk('bye','later','more logs for me!', 'kbai','cya');
        Talk('cya','later','more logs for me!', 'kbai','cya');
        Talk('hi','wassup','y halo ther', 'yo','');
        Talk('hello','wassup','y halo ther', 'yo','');
        Talk('sup','wassup','y halo ther', 'yo','');
        Talk('solja','ewwwww','record breaking bad music!', '','');
      end;
    end;
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The random in the case will return a number from 0 to the number entered minus 1.

    Ex. if you have 'Case Random(5) of' then it will return a number from 0 to 4

    so your case should look like:
    SCAR Code:
    case random(4) of
          0: TypeSend(Say1);
          1: TypeSend(Say2);
          2: TypeSend(Say3);
          3: TypeSend(Say4);
        end;


    but I'm still confused on what it does/doesn't do for ya? =]

  3. #3
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It did nearly nothing. I'll change that and get back with the result.

    Edit. Changed the way you said to, and it still does nothing. I typed in something it should respond to, and it didn't. I had a friend type it, still nothing.
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto Responder!
    By Naike in forum Research & Development Lounge
    Replies: 16
    Last Post: 04-02-2009, 11:30 AM
  2. How Do I Add A Auto Responder?
    By gamer 5 in forum OSR Help
    Replies: 6
    Last Post: 12-01-2007, 06:21 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
  •