Results 1 to 5 of 5

Thread: Bot Help

  1. #1
    Join Date
    Sep 2012
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Bot Help

    Ok So i made a simple auto typer, ive been trying for days to improve it but i cant do it lol. so now i need help.


    I Want To Add:

    Does Random Emote (Clicking Emotes Randomly From 1 through 20)

    Does Random Speeds (Messages will appear from 5-15 seconds)

    Does Random Text Colors (Red, White, Purple, Cyan, Glow1,2,3 and Flash 1,2,3)

    this is all i want, if you can help me put this in my script id appreciate it =)

    Script I Made:

    {$DEFINE SMART}
    {$i srl/srl.simba}
    Const
    Message0=('Message Here');
    Message0=('Message Here');
    Message0=('Message Here');
    Message0=('Message Here');
    Message0=('Message Here');

    begin
    ClearDebug();
    SetupSRL();
    Repeat
    wait(3000+Random(50)); <---- // I dont want to keep changing speeds, i want the bot to change randomly
    TypeSend(Message0);
    wait(4000+Random(50)); <----
    TypeSend(Message1);
    wait(5000+Random(50)); <----
    TypeSend(Message2);
    wait(3000+Random(50)); <----
    TypeSend(Message3);
    wait(4000+Random(50)); <----
    TypeSend(Message4);
    Until(false)
    end.
    Last edited by 7x7x; 09-28-2012 at 06:10 AM.

  2. #2
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Rough outline

    Random emote
    Just make a mousebox around MIX1, MIY1, MIX2, MIY2 and check for uptext. If there is uptext then click otherwise move to a new location.

    Random speeds
    Wait(RandomRange(5000, 15000));

    Random text color
    Simba Code:
    Message: String;

    case Random(8) of
      0: Message := 'Red:';
      1: Message := 'Cyan:';
      //etc.
    end;

    Message := Message + Message0;

    Script source code available here: Github

  3. #3
    Join Date
    Sep 2012
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by J J View Post
    Rough outline

    Random emote
    Just make a mousebox around MIX1, MIY1, MIX2, MIY2 and check for uptext. If there is uptext then click otherwise move to a new location.

    Random speeds
    Wait(RandomRange(5000, 15000));

    Random text color
    Simba Code:
    Message: String;

    case Random(8) of
      0: Message := 'Red:';
      1: Message := 'Cyan:';
      //etc.
    end;

    Message := Message + Message0;
    thats the thing, i dont know how to exactly do those =/ and or where to put them. would you be able to help?

  4. #4
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Made this a long time ago not sure if it still works
    Simba Code:
    function Dancing: boolean
    begin
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.06, 0.81);
      if CountColorTolerance(10102614, MIX1, MIY1, MIX2, MIY2, 24) < 500 then
        GameTab(tab_Emotes);
      Mousebox(547, 383, 589, 430, 1);
      Result := True;
    end;
    You can change the coords of the mousebox.

    Then in the mainloop something like this
    Simba Code:
    while Dancing do
        case Random(5) of
          0: TalkFast('cyan:wave:asdasdasd', True);
          1: TalkFast('red:wave2:asdadasd', True);
          2: TalkFast('purple:shake:asdasdasd', True);
          3: TalkFast('green:scroll:asdasdasd', True);
          4: TalkFast('wave: balbalblab', True);
        end;

    TalkFast is a procedure I made myself, types faster than the normal TypeSend. If you look into the code you should be able to make one yourself easily. This should be more than enough to add it in your own script, obviously I could give you the full code but it's more fun to learn yourself

    Script source code available here: Github

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    There's a function in SRL for adding effects and colours to messages.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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
  •