Results 1 to 5 of 5

Thread: Auto Responding: How to in 5s

  1. #1
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default Auto Responding: How to in 5s

    How to Auto Respond in 5 Seconds!


    well, i have never made a long tutorial and this will not be the first time. My tutorials so far are always about things i think might go unnoticed.

    So you have this script which works fairly fine but it doesn't have an autoresponder. What do you do?

    You really have two choices. you either make a really cool autoresponder by yourself and use it or you use someone else's. but you don't want to go through the pain of meddleing in the other person's script. And this is where i can help you

    I don't know how many of you have the habbit of just simply exploring your SRL folders. I do.
    SCAR Code:
    function FindNormalRandoms: Boolean;
    var
      i: Integer;
    begin
      for i := 1 to 9 do
      begin
        case I of
          1: Result := SolveNonTalkingRandoms;
          2: Respond;
          3: Result := FindTalk;
          4: Result := FindDead;
          5: Result := FindLamp(LampSkill);
          6: if FindBox then
              Result := SolveBox;
          7: Result :=  RC;
          8: Result := FindMod;
          9: if (SRL_Procs[srl_OnRandomCall] <> nil) then
               SRL_Procs[srl_OnRandomCall]();
        end;
        if Result then
        begin
          if (SRL_Procs[srl_OnFindRandom] <> nil) then
            SRL_Procs[srl_OnFindRandom]();
          Break;
        end;
        //Wait(1);
      end;
    end;

    this is in AntiRandoms.scar in /core/antirandoms.

    we've all seen it before, nothing new... but notice this:
    " 2: Respond; "

    Now, have you ever seen srl responding just simply by itself? Think about it.... If you are not a dev then the correct answer is no

    SCAR Code:
    function Respond:Boolean;
    Begin
    Result := False;
    end;

    This is how Respond looks. pretty useless to us really. But the potential in it is that everytime you call FindNormalRandoms it will also call the Responder. And that responder will be in any script that uses srl

    so how to get your responder into any script? Easy

    Change the inside part of Respond to your responder

    Respond is in srl/core/CAutoRespond.scar

    Tip: Read through srl. There are actually lots of useful stuff in there

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    I really should start looking through the SRL files, they have some pretty interesting and useful things in them, just need to get them downloaded properly in this machine.

    Great tut!

    Rep++

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  5. #5
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    do you think nava's could be added to srl which will mean everyone will have a autoresponder?

    ~shut
    There is not an AutoResponder in srl because it was chosen not to release an auto responder. probably to avoid everyone answering the same things.

    If any auto-responder gets added to srl it will probably be from the person who wins the Auto Responder scripting competition.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 11-23-2007, 08:45 PM
  2. Responding...I need help badly!!!
    By Doofy in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 03-01-2007, 11:33 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
  •