Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: Function to help Babysit bots! (Even when your AFK!)

  1. #1
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default Function to help Babysit bots! (Even when your AFK!)

    Hey all. I'm making this small autoing tutorial to help you babysit a bot. If your anything like me (working on a max cape), you don't like to leave bots alone too much. When I first joined I wanted this function, and luckily the SRL member Brandon helped me by writing it!

    This tutorial will show you how to put a function into any existing script you may be using. The purpose of the function is to play a loud sound (of your choosing) from your computer speakers when it detects another person talking. That way you can watch movies, cook, play other games, etc. and not have to actually watch your script. It can also be used (for hardcore botters ) overnight. Simply wake up, respond to the person, world hop, and start your bot back up!

    This function won't be for everyone nor for all scripts. It is geared towards scripts where you rarely have communication with anyone besides the occasional bot hunter or legit noob. Including Armoured zombies, waterfiends, wood cutting, crafting/alching at empty banks, etc!

    Let's get started !

    First, your going to need the function! Thanks to Brandon for letting me use this awesome function he wrote!!

    Simba Code:
    Procedure SomeoneTalked;
    var
      I: Integer;
    begin
      FixChat;
      OldLine := TheLine;

      if(LastChatter(TheName))then
      begin
        GetLastChatText(TheLine);
        if OldLine <> TheLine then
        try
          For I:= 0 To 5 do
          begin
            PlaySound('C:\Users\Luke\Downloads\Alarm.wav');
            wait(150);
          end;
          writeln(TheLine);
        except end;
      end else
      begin
        GetLastChatText(TheLine);
        if OldLine <> TheLine then
        try
          For I:= 0 To 5 do
          begin
            PlaySound('C:\Users\Luke\Downloads\Alarm.wav');
            wait(150);
          end;
          writeln(TheLine);
        except end;
      end;
    end;

    Secondly, your going to need your .wav file. You can easily google for a .wav file you want. I choose one that makes a loud obnoxious alarm noise :P. This site has many .wav alarm files , and it's safe! I chose the first one (as seen in the pic below):
    >>>>>>>>>>.http://soundjax.com/alarm-1.html<<<<<<<<<<<<<<<<


    Once you pick your sound (making sure it's a .wav) save it somewhere on your computer, just make sure you know where it is!

    Now is where a bit of scripting comes in. Don't worry if you have NO experience at all! Neither did I, and I was helped through this. (but feel free to poke around your script some, you might learn something ).

    The first thing we're going to do is place the function in your script by copy and pasting. Make sure you post the procedure in the script decently high up. Also, don't put it in the middle of any procedures lol, just make sure you put it in between some procedures of the script towards the top (see the last example for more reference.)

    Next your going to modify the function with your own file destination information. For example, you see it says "C:\Users\Luke\Downloads\Alarm.wav" in blue? All you have to do is change that to where YOUR .wav file is located on YOUR computer. It's not too hard to find .
    tip: make sure you replace it in BOTH spots in the function I gave you - there are two!

    Now you will need to post this function in your script,
    Simba Code:
    procedure FindMyRandoms;
    begin
      FindNormalRandoms;
      SomeoneTalked;
    end;

    just make sure it's BELOW the larger function we just put in!


    And Finally, after we have the function corrected to work for you personally, now we need to make the script so that it calls the procedure correctly.

    Your script should have (if it doesn't.. Idk if it's safe to use!) a function called "FindNormalRandoms". All you have to do is use Ctrl + R, then type in "FindNormalRandoms", and replace it with "FindMyRandoms". What this is doing is changing every place in the script it checks for randoms, to make it run your new procedure that checks for randoms AND checks for talking!

    Here is an example of how the final product should kind of look like.
    note: this is for the script I was using, so it shouldn't look EXACTLY like this. But as for the placement of the procedures, etc. - this is what you should aim for.
    Simba Code:
    Procedure InitializeVariables;
        begin
          if (Length(Food) = 0) then
          begin
            SetLength(Food, 1);
            Food[0]:= 'none';
          end;

          if (Potion = '') then
            Potion:= 'none';

          if (Closed = False) then
            TerminateScript;
        end;
                     Procedure SomeoneTalked;
      var
        I: Integer;
      begin
        FixChat;
        OldLine := TheLine;

        if(LastChatter(TheName))then
        begin
          GetLastChatText(TheLine);
          if OldLine <> TheLine then
          try
            For I:= 0 To 5 do
            begin
              PlaySound('C:\Users\luke\Music\ALARM.wav');
              wait(150);
            end;
            writeln(TheLine);
          except end;
        end else
        begin
          GetLastChatText(TheLine);
          if OldLine <> TheLine then
          try
            For I:= 0 To 5 do
            begin
              PlaySound('C:\Users\luke\Music\ALARM.wav');
              wait(150);
            end;
            writeln(TheLine);
          except end;
        end;
      end;
                              procedure FindMyRandoms;
    begin
      FindNormalRandoms;
      SomeoneTalked;
    end;


    And there you have it! Now every time your script checks to see if you are in a random, it will also use the "SomeoneTalked" function to see if anyone has spoken in the chat (most of the time, it's to you), and if so it will then play the loud file you choose to alert you! This is also particularly helpful because a good majority of randoms cause your character to autorespond like "uh-oh!". It will also detect this, so you can manually solve the random if you wish.

    Congrats , now you can go do other things - just make sure your speakers are turned up nice and loud ^.^!

    Note: I am not a very good scripter, just guide writer. I am learning scripting , and this guide was made possible by the help of the SRL member Brandon, and scripting tips from Sir R. M8gic1an. There may be problems when it comes to replacing the "FindNormalRandoms" if your script doesn't have it.. I will be reworking the guide to try to fix that too. Thanks for your consideration!
    Last edited by Luke L; 07-18-2012 at 04:14 PM.

  2. #2
    Join Date
    Nov 2010
    Location
    West Philadelphia, born and raised
    Posts
    522
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    Looks pretty neat

    I myself play with chat set to friends only (plausible denyability without looking too suspicious), but for those who play with chat on this looks like a great little function. Now you just need to include a link to a WAV of the alert sound from MGS.
    Long ago, the '90s Nicktoons lived together in harmony. Then, everything changed when the century turned. Only Avatar, the best of the 2000's Nicktoons, could save them. But when the channel needed it most, the show finished. Four years passed and Mike and Bryan created the new Avatar: Legend of Korra. And although the show itself is great, it has a long way to go before it can live up to The Last Airbender. But I believe Korra can save Nickelodeon.

  3. #3
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Tlachtli View Post
    Looks pretty neat

    I myself play with chat set to friends only (plausible denyability without looking too suspicious), but for those who play with chat on this looks like a great little function. Now you just need to include a link to a WAV of the alert sound from MGS.
    Glad you liked it ^.^ - I intend to evolve this guide to include the Google text thing that can send you texts messages...but that'll be quite a project.

    And yeah, I understand the chat set to friends thing, but it's just that ban's are probably 95% from reports, so I figure if I can avoid every report, I'm basically ban proof ^.^!

    and what do you mean the link to a WAV of the alert sound form MGS?

    (not sure what MGS is , but that link I gave has a choice of several .WAV files to give you guys some choices )

  4. #4
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Until you get trolled because two people are having a conversation.

  5. #5
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Nice guide ;P

  6. #6
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Joe View Post
    Until you get trolled because two people are having a conversation.
    That has only happened ONCE in 3 months of botting for me at AZK. I was like "wtf..? Damn legits ..."

    but that's part of using the function only in places that are either empty, or where other people are most likely botting (ivy's, zombies, etc.).

    also edit: That one time was a small price to pay, for the probably once every two days it saved my ass from someone being like "hey.. whats your str level?". =)

    Quote Originally Posted by Shay View Post
    Nice guide ;P
    <3 sin
    Last edited by Luke L; 07-18-2012 at 04:00 PM.

  7. #7
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's a great idea... I hate babysitting wc to make sure people are no like "wc lvls all?" and "say qqqttfff if your not a bot =Þ"

  8. #8
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Joe View Post
    It's a great idea... I hate babysitting wc to make sure people are no like "wc lvls all?" and "say qqqttfff if your not a bot =Þ"
    Exactly! Ivy's are great because the majority of the people are either a bot themselves, or just afking watching tv / clan chatting.

    So it's nice because you can like lay in bed and watch a movie, or play COD/BF and after a few hours if a bot hunter come, you can just reply to them and they usually leave, or if they are particularly annoying you can world hop - all while avoiding the report !

  9. #9
    Join Date
    Nov 2010
    Location
    West Philadelphia, born and raised
    Posts
    522
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Luke L View Post
    (not sure what MGS is , but that link I gave has a choice of several .WAV files to give you guys some choices )
    It's just a videogame series, Metal Gear Solid. The alert sound when the player is caught is very noticable :P
    Long ago, the '90s Nicktoons lived together in harmony. Then, everything changed when the century turned. Only Avatar, the best of the 2000's Nicktoons, could save them. But when the channel needed it most, the show finished. Four years passed and Mike and Bryan created the new Avatar: Legend of Korra. And although the show itself is great, it has a long way to go before it can live up to The Last Airbender. But I believe Korra can save Nickelodeon.

  10. #10
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Tlachtli View Post
    It's just a videogame series, Metal Gear Solid. The alert sound when the player is caught is very noticable :P
    Oh, hahahaha =).

    I'm sure that wouldn't be hard to find if you really wanted it ^.^

  11. #11
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Lookin Good!
    I am Ggzz..
    Hackintosher

  12. #12
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Lookin Good!
    Thanks buddy, it's all due to your help =)!

    Hope I get some feedback soon from someone who utilizes it so that I can make anything clear that may be confusing :x

    edit: and I see you leachers - you noobs better register and start contributing!

  13. #13
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    1,199
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    Nice little add here Luke, might have to start adding this do scripts that I use!

    +1'd you!

  14. #14
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Hazzah View Post
    Nice little add here Luke, might have to start adding this do scripts that I use!

    +1'd you!
    Thanks buddy , and yeah it's quite useful. Just make sure you don't put it on anything that might go wacko if your around a lot of people .

  15. #15
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    1,199
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    Quote Originally Posted by Luke L View Post
    Thanks buddy , and yeah it's quite useful. Just make sure you don't put it on anything that might go wacko if your around a lot of people .
    Haha, probably going to use it for farming + hunter since not many people do those legit.

  16. #16
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Hazzah View Post
    Haha, probably going to use it for farming + hunter since not many people do those legit.
    Oooh yeah hunter is a damn good one. My guide + Ashmans salamanders = 99 hunter fast and easy ^.^

    Oh and when you actually do implement it, please let me know if any parts were confusing or not. Thanks!

  17. #17
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Nice guide, you should probably talk about the SRL Random Tool, it tells you when you get a random and you only need to paste 1 line of code.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  18. #18
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by litoris View Post
    Nice guide, you should probably talk about the SRL Random Tool, it tells you when you get a random and you only need to paste 1 line of code.
    Well the script usually solves them for you, that way you don't want to be alerted to a random if your sleeping, that could easily be solved on it's own already.

    But thanks for the idea, I'll keep that in mind ^.^!

  19. #19
    Join Date
    Apr 2012
    Posts
    3,356
    Mentioned
    34 Post(s)
    Quoted
    218 Post(s)

    Default

    This looks good well done on this guide

  20. #20
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by -Benny View Post
    This looks good well done on this guide
    Thanks !

  21. #21
    Join Date
    Feb 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks a lot Luke, I like to have my bots running in the background whilst I am on my computer. Can't wait for the update of SRL to test this out.

  22. #22
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by kazzos View Post
    Thanks a lot Luke, I like to have my bots running in the background whilst I am on my computer. Can't wait for the update of SRL to test this out.
    Your welcome =)!

  23. #23
    Join Date
    Mar 2008
    Posts
    426
    Mentioned
    1 Post(s)
    Quoted
    116 Post(s)

    Default

    This is awesome man!
    No more having to constantly look back at the screen to see if a bot hunters talking to me.

    Trying it out now.

  24. #24
    Join Date
    Apr 2012
    Location
    St. Louis, Missouri
    Posts
    383
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Peanuts View Post
    This is awesome man!
    No more having to constantly look back at the screen to see if a bot hunters talking to me.

    Trying it out now.
    Glad you like it, it is definitely very handy! In a month or so when I'm ready to use ashman's salamander script, I'll definitely be implementing this function into it so that I can play cod and what not while it hunts for me ^.^

  25. #25
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    If you get around to making that text function it would be cool if it could text you what the other player said so you'd know if you should respond. Also it would it be cool but probably impossible if it could respond by your text message

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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