Results 1 to 20 of 20

Thread: My first bot

  1. #1
    Join Date
    Feb 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default My first bot

    It's for 07. This is my first day coding, this is what I made it works.
    Code:
    program PowerMiner;
    {$I SRL\SRL.Simba}
    {$I P07Include.Simba}
    var x, y: integer;
    procedure MineOre;
    begin
      repeat
    FindColorTolerance(x, y, 5077417, 0, 0, 520, 340, 4)
    MoveMouse (x, y);
    wait(200)
    if (P07_GetUpText = 'Mine Rocks')then
      ClickMouse (x,y,1);
    Wait(10000)
      until(P07_InvFull)
    end;
    begin
      repeat
        mineOre;
        P07_DropAll;
      until(false);
    end.

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

    Default

    Congrats on the release mmmvvvbbb!

    I have a suggestion,

    Instead of
    Simba Code:
    MoveMouse (x, y);

    use

    Simba Code:
    MMouse (x, y, 5, 5);

    These extra parameters add some randomness to where the mouse moves so that you don't always click the same color.

    I know it isn't here yet, but Jagex will probably start looking for bots soon so better safe than sorry

    Also there are more advanced methods of waiting to be done mining, but this is a good start

  3. #3
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Simba Code:
    If P07_IsUpTextMulti(['Mine', 'Rocks']) Then

    will work better ^^ I believe thats the correct function name (double check)

    Also use MMouse(x,y,3,3); and ClickMouse2(mouse_left); they have randomness


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  4. #4
    Join Date
    Feb 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Thanks for the quick response. I had no idea how to use the MMouse, thanks for helping. This isn't really meant to be a permanent script, just trying to test out the waters. The more time I spend learning what is standard, the better my coding will become.

    Also, during testing of this script I ended up accidentally clicking the rock every 20 milliseconds and I got the frog random almost instantly. IDK if they are watching but that seems like a big coincidence.
    Last edited by mmmvvvbbb; 02-25-2013 at 07:40 AM.

  5. #5
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    Good job on your first script

    Instead of static waits try ---> Wait(RandomRange(100,200)) etc..

  6. #6
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Simba Code:
    If P07_IsUpTextMulti(['Mine', 'Rocks']) Then

    will work better ^^ I believe thats the correct function name (double check)

    Also use MMouse(x,y,3,3); and ClickMouse2(mouse_left); they have randomness
    [Error] (12:46): Closing parenthesis expected at line 11
    Compiling failed.
    ...

  7. #7
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Blue90 View Post
    [Error] (12:46): Closing parenthesis expected at line 11
    Compiling failed.
    ...
    Your missing a ) somewhere, if you want it inside brackets, put them around the whole thing


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #8
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    You are scripting, not making a bot.

    Jeezes.

  9. #9
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by Wyn View Post
    You are scripting, not making a bot.

    Jeezes.
    Are Wyn from powerbot?
    Current Project: Retired

  10. #10
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore

  11. #11
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore
    I recall, if you logged out every 9 or so minutes and logged back in you would get no randoms. I remember Narcle's autofighter used to do this.

  12. #12
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    I recall, if you logged out every 9 or so minutes and logged back in you would get no randoms. I remember Narcle's autofighter used to do this.
    O yea lol also ofcourse you get a random no matter what within like 1-2 hours

  13. #13
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore
    I got a random on the first rock I hit after tutorial Island... I don't think that's 100% true.

  14. #14
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Wyn View Post
    You are scripting, not making a bot.

    Jeezes.
    it's funny because scripting something makes product in this case bot.
    to make things more clear for you.. if i scripting in PHP/HTML languages and the final output would be website, so you think i still scripting and not creating a website? just saying..

  15. #15
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    O yea lol also ofcourse you get a random no matter what within like 1-2 hours
    Not necessarily. I cound run Narcle's script overnight (10+ hours) and get no randoms. Then, once I buried a bone I got a random straight away.

  16. #16
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    I don't visit this site enough anymore, don't assume I'm gravedigging. Just answering questions towards me.

    Quote Originally Posted by Gucci View Post
    Are Wyn from powerbot?
    Yes.

    Quote Originally Posted by Laimonas171 View Post
    it's funny because scripting something makes product in this case bot.
    to make things more clear for you.. if i scripting in PHP/HTML languages and the final output would be website, so you think i still scripting and not creating a website? just saying..
    Scripting is creating code for an existing product. You're not actually making/working on what platform itself.

    Saying Bot, is essentially saying I'm making a brand new client to bot on from scratch. Op is just making a script for an existing product.

    I don't get why bring in html/php. It's not related, and html isn't even a language.

  17. #17
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Wyn View Post
    I don't get why bring in html/php. It's not related, and html isn't even a language.
    Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
    and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

    get your facts straight

  18. #18
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    Quote Originally Posted by Laimonas171 View Post
    Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
    and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

    get your facts straight
    it's actually a markup language. It's in the name
    (
    Hypertext Markup Language

    Please don't take offence I don't want to argue just saying if we're going to be all nitpicky in this thread now I don't think this is a positive discussion anyway I willl remove myself from this now and not respond anymore thanks

  19. #19
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Quote Originally Posted by Laimonas171 View Post
    Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
    and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

    get your facts straight
    I like how you skipped over the first part of my post and went right to there .

    Stop making php and html related. Html is a Hypertext Markup Language.

  20. #20
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    it's actually a markup language. It's in the name
    (
    Hypertext Markup Language

    Please don't take offence I don't want to argue just saying if we're going to be all nitpicky in this thread now I don't think this is a positive discussion anyway I willl remove myself from this now and not respond anymore thanks
    No i just saying..

    Quote Originally Posted by Wyn View Post
    I like how you skipped over the first part of my post and went right to there .

    Stop making php and html related. Html is a Hypertext Markup Language.
    I just took part i want to clear things out, kind off. And yes I i agree about html, but still if you have to write down code to get things it's programming, you cannot argue with that. though I don't really care topic so much so we should stop right here i guess

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
  •