Results 1 to 17 of 17

Thread: How to get SRL to work on different clients.

  1. #1
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to get SRL to work on different clients.

    I've written a few scripts that I want to work for a private server. I know what you're thinking, why does he want to auto on a private server? It's easy enough as is. This is a tough private server, pretty similar to RS and trust me I'm not going to try to convince you because I'll just end up losing. Anyway, the scripts compile and they always say "Script executed" but nothing happens.... It doesn't click on the client or anything. I use the find client tool and everything I just can't get it to work on the client I want. If anyone could help me I'd be VERY greatful, and if it's extended help i'd even be willing to compensate. I don't know if that's legal on here so if it's not disregard that. Please don't flame me on this, I understand it's not the best first post but you have to start somewhere... Thanks if you can help me, my MSN is jazzyjay1231@live.com

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

    Default

    If you post the scripts maybe people will be able to help you..

    ~RM

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

  3. #3
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Granted this was used on RS before, I had the version I edited to be usable on private servers but got frustrated and closed it out without saving... :\. Anyway here is the original saved version of the script. It's an auto fighter that I'd like to be able to use to fight monks and eventually maybe other monsters on a private server. I'd be grateful of any help. I don't need anything fancy on it, just for it to work on the private server client and be effective in eating and killing monsters of my choice. I'm not asking you to do it all for me, but I want to understand what you did and how you did it, because I'm new and would like to learn. Thanks again to anyone that decides to help.


    program AutoFighter;

    const
    MonsterColor= 10989487;//replace with color of the creature to be fought
    MonsterColor2= 9936542;
    bmppickcolor= 11712699;
    SkyColor= 3478561;
    LowHealth= 255;
    MedLowHealth= 2070783;
    MedHighHealth= 65535;

    var
    x,y: integer;

    procedure Login;
    begin
    if (findcolortolerance (x, y, SkyColor, 18, 17, 498, 327, 5)) then
    begin
    clickmouse(381, 183, true)
    wait(1000+random(500))
    sendkeys('new name')//replace username with your username
    wait(1000+random(500))
    clickmouse(370, 336, true)
    wait(1000+random(500))
    sendkeys('new pass')//replace password with your password
    wait(1000+random(500))
    clickmouse(380, 380, true)
    wait(4000+random(500))
    movemousesmooth(382, 353)
    clickmouse(382, 353, true)
    end
    else
    end;

    procedure CheckHealth;
    begin
    if (findcolortolerance (x, y, MedLowHealth{adjust depending on monster}, 723, 26, 740, 38, 5)) then
    begin
    if (findcolortolerance (x, y, 5264753{put the food color here}, 558, 210, 730, 460, 5)) then
    clickmouse(x, y, true);
    end
    else
    end;

    procedure FindAndAttackMonster;
    begin
    wait(2000+random(1000))
    if (findcolortolerance (x, y, MonsterColor, 18, 17, 498, 327, 5)) or
    (findcolortolerance (x, y, MonsterColor2, 18, 17, 498, 327, 5)) then
    begin
    clickmouse (x, y, true);
    wait(7000+random(2000))//adjust the times as needed
    sendarrowwait(0+random(4), 1150+random(950));
    end
    else
    sendarrowwait(0+random(4), 700+random(850));
    writeln('Could not Find')
    wait(2000+random(1000))
    findcolor(x, y, bmppickcolor, 577, 35, 693, 150);
    end;

    begin
    Login;
    wait(5000+random(1750))
    repeat
    CheckHealth;
    FindAndAttackMonster;
    until false
    end.
    Last edited by Niz; 06-23-2010 at 11:26 AM.

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

    Default

    How about using ActivateClient?

    ~RM

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

  5. #5
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I kind of have it working now, it'll recognize the client and everything, but I'm having trouble getting it to recognize the monster. It keeps saying "Could not find" and the mouse isn't moving at all. I designated for it to do that when it couldn't find the monster I was looking for. I changed it around to pick the color of the monk, but for some reason it still can't find it... help?

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

    Default

    Use the SRL include.
    FindObjMultiCustom will be your new best friend

    ~RM

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

  7. #7
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've never used includes before, how exactly would I put that into my script? I know it goes at the beginning... And what exactly does it do?

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

    Default


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

  9. #9
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can't find this in my SRL folder...which means I can't use it in my includes

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

    Default


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

  11. #11
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So basically I take that, copy and paste it, save it as FindObjMultiCustom in my includes folder and type {.include SRL\FindObjMultiCustom.scar} at the top? What else would I have to change within my script for this to be effective, or is it just automatic? Sorry to make you work so hard but I'm new at this.

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

    Default

    Please read the tutorial I posted my friend, it will be much easier on you. You have to include SRL at the top of the script. Once you include SRL, all these functions will be available to you, and all you have to do is call them.

    ~RM
    Last edited by Sir R. M8gic1an; 06-23-2010 at 12:30 PM.

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

  13. #13
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, i did that. But I couldn't find the function within my SRL folder. I'm assuming that just because it isn't in the SRL folder it doesn't mean that it isn't within SRL itself? Thank you for your help. One last question. Is there any way to use S.M.A.R.T with a different client?

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

    Default

    Check out APPA by nielsie.
    Scripts -> Test Corner -> (its a stickied thread).

    The function will be in your SRL folder here:
    SRL / SRL / core / Objects.scar

    If it is not, then you do not have a propper copy of the SRL Include. Several tutorials will tell you how to get one.

    ~RM

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

  15. #15
    Join Date
    Nov 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I keep getting the error [Error] (330:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.22\includes\SRL\SRL\Core\Math.scar

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

    Default

    You didn't move your pluggins. Tutorial on how to setup SRL.

    ~RM

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

  17. #17
    Join Date
    Aug 2007
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    You didn't move your pluggins. Tutorial on how to setup SRL.

    ~RM
    I think what Rasta is trying to say without getting frustrated, is that you should make sure you have scar/simba properly set up with the appropriate includes and plugins before you try to compile and run any script. He has posted more than enough information and links to lead to to some very foolproof guides. Please utilize your resources ^_^
    Quote Originally Posted by Hobbit View Post
    ...i had faulty ram....they told me to format my hard drive...im like HOW TO F*** IS THAT GONNA HELP MY F***ING RAM??? YOU STUPID IDIOT!! then i hung up...lol

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
  •