Results 1 to 7 of 7

Thread: Clan Wars Free For All Script?

  1. #1
    Join Date
    Dec 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Clan Wars Free For All Script?

    I've no personal experience with Coding or creating scripts, so I've no idea how to start one, let alone finish it.
    I'd just like to ask if anyone has any free time and could perhaps script a very simple walk-in bot for Free For All, preferrably in the Gamers' Grotto by Falador,
    I'd like for it to be for a specific RSPS, but as long as it would work regardless, I wouldn't be picky of course.
    Or if anyone has a script already by some chance, could you find a way to send it to me? I'd be grateful, and I don't know what I'd do to pay you back lol.
    If anyone can help me please let me know. Thank you.

  2. #2
    Join Date
    Dec 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Update: So.. Well.. I'm trying my best here and all I've come up with is basic movement codes that don't work at all, and I have to start manually. Any help would be appreciated as I'm new.
    Please don't criticize me as I genuinely know no better than this.
    program Isortabotted;
    var
    x, y: Integer
    begin
    MoveMouse(621,68);
    ClickMouse(621,68,mouse_Left);
    Wait(1500);
    MoveMouse(724,64);
    ClickMouse(724,64,mouse_Left);
    Wait(1500);
    MoveMouse(365,121);
    ClickMouse(365,121,mouse_Left);
    Wait(2500);
    MoveMouse(333,91);
    ClickMouse(333,91,mouse_Left);
    end.

    That's all I've come up with thus far lol. Will continue to update as the day goes on.



    Further update: I can't seem to figure out how to get my mouse to go to a certain color, would help the script substantially but nevertheless I'm at a halt;
    Going to have to do more research before tackling this I suppose.
    Can't imagine how hard it would be if I knew what I was doing.
    Last edited by Moolan; 01-08-2017 at 05:00 PM.

  3. #3
    Join Date
    Dec 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    So... If I FindColorTolerance, it finds the color, I don't know quite yet the command to move the mouse to said location, if I could just figure that out, it would make this easier on me.

  4. #4
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    hey buddie, check out this thread https://villavu.com/forum/showthread.php?t=58935

    and make sure to read these parts http://i.imgur.com/TT0S4TH.png

  5. #5
    Join Date
    Dec 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    This is actually one of the same guides I was using at first, the language of Simba will take a long time to get used to, I guess I'm just not thinking about things in the long run.

    It'll probably take me a week or two to even begin to understand this, but the time spent will be worth it I suppose.

    Thank you for your help!

  6. #6
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by Moolan View Post
    This is actually one of the same guides I was using at first, the language of Simba will take a long time to get used to, I guess I'm just not thinking about things in the long run.

    It'll probably take me a week or two to even begin to understand this, but the time spent will be worth it I suppose.

    Thank you for your help!
    The language you're learning is pascal, and btw even if you were to quit your current project halfway through, learning the basics of a programming language for the first time tends to be a very valuable thing in the long run.

    I would recommend reading the linked guide up to atleast this part: http://i.imgur.com/UCOJ5AU.png (aka what's in the screenshot of the table of contents in my original post)
    Should only take a couple hours to read and digest, and feel free to ask questions in the irc if you're seriously stuck on something https://villavu.com/forum/chat_irc.php

  7. #7
    Join Date
    Dec 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I see. I've come up with a DTM of some sort? But I can't get MoveMouse to actually do the (x,y,1,1) thing, to get it to the location of some found color or object. Looping three to four things, and having the program repeat itself is practically all I need. It shouldn't be SUPER difficult, but I know with no knowledge it will take some time.

    I sincerely appreciate your help thus far. It's helping me stay motivated.

    Update:
    Really, to be more specific, the only problem I'm encountering is getting it to accurately click the portal, perhaps a screenshot of exactly what i'm looking at would help, but I've no idea.
    It wouldn't be so much of an issue if the spawn outside weren't in random places, and were instead consistently in the same area.
    I've worked out how to get it to walk in, and to click it's prayer, just the area outside where the portal is located.
    Progress is being made I suppose.

    Further update:
    Guess I'm done for today. I've been up for several hours attempting this, and where it was working at one point... Nothing is functioning anymore but I guess I have to work some kinks out of it and whatnot over the next couple of days.
    Just updating this incase someone who has seen this is interested, maybe even a script that is somewhat broken will be usable by someone who needs it lol
    Not really sure if I'm doing anything wrong, well I guess I must be.
    Bitmap included in the code format I've posted is kinda substantial, pretty much is most of the script and it doesn't seem to be functioning correctly, well, all in good time I suppose.
    Script's current coding is below, not sure if anyone can work with it at all. Meant to be started outside of Free For All in Clan Wars inside of the lobby.
    Code:
    program Isortabotted;
    {$i srl-6/srl.simba}
    var
    Click:Integer;
    Procedure ClickPortal;
    var
    X,Y:Integer;
    begin
    if FindColorTolerance(X,Y,11448763,248,53,292,71,130) then
    begin
    MoveMouse(263,75);
    Wait(250);
    ClickMouse(266,99,mouse_Right);
    wait(450);
    if FindBitmapToleranceIn(Click,X,Y,140,29,248,71,60) then
    begin
    MoveMouse(140,29);
    Wait(250);
    ClickMouse(184,64,mouse_Left)
    end;
    end;
    end;
    Begin
      Click := BitmapFromString(1152, 648, 'meJzt3D2S0zAYBmBmCwYWjgD' +
            'bbTggHYegoWG4zzYMdwIPThRZf7HjrLXg55mviBNbtjQu8o5kP368' +
            'f5xdh2k9fhjr7Yxj3z1zLejF3468K9anh7zeT6u4z7EOD6Gp6UAtq' +
            'Gcck0NWvwEAgA0tDV+nzHWqPsniNomslsIqQayeuZJanLw2HRD5Cw' +
            'AAelk6c7SiNs5fc6NZI4XVglghc5XDV/eelkv+AgCALoYA8uXbj6Q' +
            '2i2C/ft4l1SWCtYJYO21lmauYvJKutXu6zTjIXwAAsL0xf33++v3N' +
            '67u42kmqGdPygFNNAUPQeHp6lZ16s5mgGesSl8SuQ6W/oZvFzTx8b' +
            'TMO8hcAAGwszl/zZ7LqhxSjzeX8tWHmOsec0zRTtZvlCFaKXe3Vhj' +
            'Pz163C1/zJxN53HwAA7MtN89c1SWH7/BViznDqoaKfaimsVXM6Pj9' +
            '/rR+Neu/kLwAA6CyEqaGSJYW1h8LGzfGQOHxNdz7+ww+byfdx4hiq' +
            '+HhUPInTeEZs6eNjccwJk03TRo6dGjcP0Yf2hFftSq7OX7WH4yonO' +
            'l7zqZH7eCqteEjvuw8AAPYlf/4rn+QaKklb42a8/xivpjsf81fYzF' +
            'fWJc9/JaEsHBIvzEumdWo/Nd7sUYs5xUbGzcMpy4Qslrfcvsgr8lf' +
            'cYDxEpRPdx5kx5K8kSObX1vvuAwCAfWmsP4y/T/aZbp5z1hgQip9r' +
            'r5vIk0gcyvLdknwRbyatJcklDi+NfFT8nFxhseWhwlxeO3DNn/+KG' +
            '4z3LJ3onLOaoWxylt53HwAA7Mvq/HVeZxgWMdayWFgjV8wF7fmpRu' +
            'KopZ5ajfvPyHfLHsjK55jW56+Q9eJIVTnRcUinvbtvj1Lvuw8AAPb' +
            'ltvkrnxVqv9xjGqYu5K+s8UkL+WxUIyjV2l+Zv2oHrslfzWm+wmrD' +
            '2vrD4gD2vvsAAGBfkvdvxK/aaOSv8AhY/EqNrJFkXeLF/NWaFIunb' +
            '+JXZIQZn+ynBfkraT9erLjohYQr1x+GFuJ5rlBx6qzNBtaGtDZKve' +
            '8+AADYl/F/eOmBpvP3+efkqGSxXKORvIq/lqax0ossXkn209z8lVx' +
            '88uXM/FUagWI7rTGJI9gVXa7lr+Ihve8+AADYl1osml15BlnZ4HPU' +
            'rPy1VV2+4HZibVcjf+XV++4DAIB9uWn46p6zLl9wssLwpSWvlZWvV' +
            'JS/AADg5bhF7Ponkte5eoSv7Xs3a+fedx8AAOzLLfJX/0h1bf0/se' +
            'u66n33AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
            'AAAAAAAAAAAAAsHd/ABQqyRE=');
     ClickPortal;
     FreeBitmap(Click);
      end.
    Last edited by Moolan; 01-08-2017 at 08:19 PM. Reason: Forgot the bitmap file included in the script.

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
  •