Page 1 of 50 12311 ... LastLast
Results 1 to 25 of 1250

Thread: YoHoJo's [P]ower [M]iner [S]upreme

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default YoHoJo's [P]ower [M]iner [S]upreme

    Updated and Compiling Version: http://villavu.com/forum/showpost.ph...postcount=1227
    Thanks to Solar!
    I have not looked over his code, use at own risk I'm sure it's fine though


    YoHoJo's [P]ower [M]iner [S]upreme
    YouTube Video of The Script in Action!:


    News:April 17, 2012
    Version: 2.01 Beta has been released!
    It seems like the beta release of 2.0 has been a great success! Very few problems have been reported and it seems to run just as good as 1.08 did, except faster!
    What's New:
    • Code Cleaned Up
    • Extra/Unused Code Removed
    • Memory Leak Fixed*
    • Mining/Dropping Slightly Faster
    • Script now properly counts ores mined, so progress reprot values as well at xp/hr will be much higher!
      *There is now an option in the settings to pick how often the painted progress report updates, before it updated ridiculously often, it now by default updates every 5 seconds. You can adjust this to be higher or lower, but the higher the number, the slower the leak (good).

    I've only tested the M1D1 dropping option, so if you guys can please test the normal dropping and the MouseKey dropping methods for any problems that would be great, please let me know how they work for you!


    ☼Powermines: Tin, Copper, Iron
    ☼Antiban & Failsafes To Keep Your Account Safe!
    Additional Antiban Ideas Welcome
    ☼SRL AntiRandoms
    ☼Fast Dropping
    ☼Reliable, Efficient, Speedy

    Make sure to always monitor new versions of the script and make sure you trust it before leaving it unattended!


    Top Progress Reports:

    Code:
    PaytonHand: Longest Run
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | --> YoHoJos PMS 1.04 <-- |
    \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
    | Worked for 77 Hours, 9 Minutes and 51 Seconds
    | Mined 25535 ores at a rate of 330 per hour
    | Mined 1186 loads at a rate of 15 per hour
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>
    SwissPKing: Fastest Loads/Hour
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | -->          YoHoJos PMS 1.2                                            <-- |
    \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
    | Worked for 2 Hours, 41 Minutes and 50 Seconds
    | Mined 1424 ores at a rate of 527 per hour
    | Mined 76 loads at a rate of 28 per hour
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>
    If you enjoy my scripts, please feel free to ,it would really mean a lot!
    I will also take any GP donations, just send me a PM here

    V 1.00 54 Downloads
    V 1.01 30 Downloads
    V 1.02 65 Downloads
    V 1.03 99 Downloads
    V 1.04 962 Downloads
    V 1.05 292 Downloads
    V 1.06 382 Downloads
    V 1.07 137 Downloads
    V 1.08 1,782 Downloads
    V 2.00 400 Downloads

    P.S. Don't forget progress reports and feedback, or I might just PMS > : 0
    Last edited by YoHoJo; 08-30-2012 at 05:54 PM.

  2. #2
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WoooW its YoHoJo with a script! I will try it out and get back to you

    -Supporting and Beveling In me
    -Being a dick and a jerk which motivated me to finish
    Nice...

    Edit: This is a perfect script to make a new army to test my guild miner
    Last edited by FEAR; 12-01-2009 at 02:22 PM.

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    You do know that abbreviates to PMS.. Don't you? xD
    Ce ne sont que des gueux


  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You just wanted to release before mine!

    Gratz on finishing it Proud of you.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow man you are beast! <3 you

    PHP Code:
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | -->          
    YoHoJos PMS 1.00                <-- |
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>
     | 
    Worked for 2 Hours26 Minutes and 1 Seconds
     
    Mined 616 ores at a rate of 253 per hour
     
    Mined 22 loads at a rate of 9 per hour
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> 
    Still running

  6. #6
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    I'm currently running it, the only thing is the debug is a little annoying always popping up , you should make a boolean variable to turn it on and off, so you can have it on for testing and debugging, and off for if people want it off. But it is really cool though, seeing the veins a different color. I gotta learn how to do that.

    When the script ends I'll show edit this with the proggy

  7. #7
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    It's sad to see an old scripter not use good standards

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    @Nava2
    Nah, I was just done, don't worry yours will be way cooler than mine, thanks!

    @Floor
    Yeah dude, did you read the bottom of my post?
    P.S. Don't forget progress reports and feedback, or I might just PMS > : 0
    @FEAR
    Aww sweet! Great first prog! Thanks very much!

    @Baked0420
    Oh the debug is easy, DebugATPA(RockPtsBox,''), its a function from Wizzups array plugin, thank him for that! and I meant to comment that out on the release, ill do that now, thank you, and sweet sounds like you'll also have a decent proggy .

    @Bebe
    Shutup you! , I haven't done this in years, ill try to fix them up then I guess, thanks for input.
    Last edited by YoHoJo; 12-01-2009 at 04:40 PM.

  9. #9
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    @Nava2
    Nah, I was just done, don't worry yours will be way cooler than mine, thanks!

    @Floor
    Yeah dude, did you read the bottom of my post?

    @FEAR
    Aww sweet! Great first prog! Thanks very much!

    @Baked0420
    Oh the debug is easy, DebugATPA(RockPtsBox,''), its a function from Wizzups array plugin, thank him for that! and I meant to comment that out on the release, ill do that now, thank you, and sweet sounds like you'll also have a decent proggy .

    @Bebe
    Shutup you! , I haven't done this in years, ill try to fix them up then I guess, thanks for input.
    Here is more

    PHP Code:
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | -->          
    YoHoJos PMS 1.00                <-- |
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>
     | 
    Worked for 4 Hours18 Minutes and 24 Seconds
     
    Mined 1170 ores at a rate of 271 per hour
     
    Mined 42 loads at a rate of 9 per hour
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> 

  10. #10
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    @Baked0420
    Oh the debug is easy, DebugATPA(RockPtsBox,''), its a function from Wizzups array plugin, thank him for that! and I meant to comment that out on the release, ill do that now, thank you, and sweet sounds like you'll also have a decent proggy .
    yea, I saw you included debug.scar, so I found out it was DebugATPA. But the function isn't in the plugin, maybe it used to be, but you even included the file where it is found, the debug.scar file. And I'm glad you forgot it looked cool, but it just got annoying when I have smart running so I can do other things then I keep getting a pic popping up lol .

    And so far it looks like I'm going to have a very decent proggy. So far it's been running two hours. I'll show you the whole thing when it's done, don't wanna spoil it

    EDIT: I use one player, so it logs me out then logs it right back in, I edited it so it changes players if more than one is active, when there's just one I have it sleep for x amount of time + x*0.1 for randomness. You should add that in not everyone autos with more than one account, and also, after a while only one account will be left active. It's a good little thing to add, not hard or long at all and is useful. That's the only thing I've changed though because I only auto on my noob acc that I don't care about. But it's still going. So you still gotta wait for that proggy

    EDIT: oh yea, it sometimes misses gems, I have two gems in my inventory at the moment, once I had a ruby for a few loads, now I have two sapph's. I would just add at the end of dropping an ExistsItem(i) and loop it 28 times for i to see if there are any items and drop them if there are.


    EDIT: Well you've gotten all the feedback I have to give. Hope you can update some that stuff, like checking to make sure gems are dropped and checking if only one player is active so it sleeps instead of just logging them back in. And as promised here's that proggy:

    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | --> YoHoJos PMS 1.00 <-- |
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >
    | Worked for 3 Hours, 19 Minutes and 48 Seconds
    | Mined 1899 ores at a rate of 567 per hour
    | Mined 69 loads at a rate of 20 per hour
    <~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >



    not bad got me 66,115 exp according to your proggy, maybe you could add that also, find out how much exp a player has gotten from mining with your script. I just multiplied ores mines by 35 since I was doing iron. I'm bout to see if I can figure out why it logged out. If I see why I'll edit this post one last time to let you know.


    EDIT: It was in the middle of dropping. I don't know if I disabled smart after the script stopped, I think I did, but I may have disabled it before, and that may have been why I logged out, from not playing, and why the script stopped. Sorry, not sure if I disabled before or after script stopped, but it's pretty good, good job YoHoJo.

    I'm pretty sure I was 45 mining before, now I'm 52

    EDIT: Just saw in randoms report, you have stuff in there (saw before but never looked at it) but it said can't find rock, but it looked like it was in the middle of dropping, so I don't know if that's why or not, but figured I'd let you know.
    Last edited by Baked0420; 12-01-2009 at 06:57 PM.

  11. #11
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    @Nava2
    Nah, I was just done, don't worry yours will be way cooler than mine, thanks!

    @Floor
    Yeah dude, did you read the bottom of my post?

    @FEAR
    Aww sweet! Great first prog! Thanks very much!

    @Baked0420
    Oh the debug is easy, DebugATPA(RockPtsBox,''), its a function from Wizzups array plugin, thank him for that! and I meant to comment that out on the release, ill do that now, thank you, and sweet sounds like you'll also have a decent proggy .

    @Bebe
    Shutup you! , I haven't done this in years, ill try to fix them up then I guess, thanks for input.
    oh lol i tl;dr'd your first post
    Ce ne sont que des gueux


  12. #12
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    YoHoJo's PMS...interesting...

    guna make my autoing army into mining beasts! ill go for a huge proggy, will edit later!

    E= Z0MfG~! typO!
    SCAR Code:
    LoadsTotal=    4;      //How Many Total Lods To Do Per Character!
    SCAR Code:
    LoadsTotal=    4;      //How Many Total Loads To Do Per Character!
    Last edited by Bionicle; 12-01-2009 at 10:55 PM.
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  13. #13
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Fail script is fail

    JK

    Wow you finally released it XD

  14. #14
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Freaking awesome Baked, great feedback!
    The dropping procedure does have gem dropping included :/, I think the problem is that I have an 'end;' in the wrong spot, it looked fishy to me earlier so ill look into that.

    Ill also figure out a way to add break taking/sleeping whatever you want to call it for people who aren't looping 5+ characters.

    SOMETIMES with me also it doesn't drop the entire inventory, which is crazy and I don't understand why, but on my 'test prog' on the first post it worked out just fine.
    (Just got an idea why that's happening, 'cant find rock' happens after the mined last rock timer is >90, so I think if it takes longer than 90 seconds to mine rock + drop inventory, it assumes it can't find the rock, ill tweak that)

    I will also add XP report to the players report too. And wow, nice prog lots of XP !

    Thanks Everyone

  15. #15
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    ... wow, nice prog lots of XP !

    Thanks Everyone
    Not really. Not for me anyway. I was mining copper & tin Baked yeah he probably got lots 'o exp. I am gonna run it with iron later

  16. #16
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Could you guys also post your "Player Report"s too, I'm pretty sure stuff in there isn't aligned properly and I want it to look cleaner.

    And fear, I was referring to baked's xp

  17. #17
    Join Date
    Jan 2008
    Location
    Houston, Texas, USA
    Posts
    770
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Could you guys also post your "Player Report"s too, I'm pretty sure stuff in there isn't aligned properly and I want it to look cleaner.

    And fear, I was referring to baked's xp
    I know I just wanted to show () I love that emote

    Hehe

  18. #18
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,610
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Chyyeeaaaahhhhh!

    Finally got off your ass then?

    Accept that the waters around you have grown.

  19. #19
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Freaking awesome Baked, great feedback!


    Ill also figure out a way to add break taking/sleeping whatever you want to call it for people who aren't looping 5+ characters.

    SOMETIMES with me also it doesn't drop the entire inventory, which is crazy and I don't understand why, but on my 'test prog' on the first post it worked out just fine.
    Thanks, I tried to help


    what I did to add into taking breaks/sleeping was:

    SCAR Code:
    if(PlayersActive>1) then
          NextPlayer(LoggedIn)
        else
        begin
          logout;
          SleepTime = TimeToSleep*60000;   //SleepTime is an declared globally as an integer, TimeToSleep is a constant, for how many minutes they wanted to sleep
          wait(round(SleepTime+random(SleepTime*0.1)));  //adds 10% randomness to the time the user entered to sleep
          LoginPlayer;
        end;

    you can either take that, or make your own idea off that, I don't care if you use that though, it works fine. Just check how many players are active, and I just like adding 10% randomness, just what I like to do

    and yea, I don't get why it doesn't drop the whole inv either, but it never leaves ores behind for me, I don't think, only gems. I never saw it leave ore anyway, but I like how sometimes it misclicks the ChooseOption and redoes it, looks pretty human like then being perfect for hours on end.

  20. #20
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yeah ill add my own sleeping, great idea though that'll be in next version.

    And yeah, come to think of it, I havent seen it miss ores in a long time (before th
    is release), so not sure what all of that was about?

    Gems not being dropped is odd, but I think I've fixed it in newest ver (still not released).

    And yeah thanks, I tried hard to make the doping fast, but also very humanlike, its my favorite function in the script! It drops entire inventory , and then 3 times randomly it either misclicks 'use' or 'examine' .

    Thanks again Baked, and keep the proggies/feedback coming guys thanks!

  21. #21
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I wish SCAR wasn't so unstable so I could run this script for more than 2 hours :/

    Every time I run it it's like a 50/50 if I'll get errors or not.

    Good script though, when it does work with SCAR

  22. #22
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Thanks Bebe, and that's odd. Once I get something going, it usually goes just fine.
    OS? SCAR Version? SRL Version?
    I'm XP, 3.23? and Latest Dev Rev. Ive had my fair share of SCAR problems, maybe I can help.

    Got any advice or feedback?

  23. #23
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Thanks Bebe, and that's odd. Once I get something going, it usually goes just fine.
    OS? SCAR Version? SRL Version?
    I'm XP, 3.23? and Latest Dev Rev. Ive had my fair share of SCAR problems, maybe I can help.

    Got any advice or feedback?
    I'm on Windows 7, Scar 3.22 and latest open dev revision.

    It seems to be a problem with Windows 7 and some tweeks I made to the registry and other files causing errors when I try to run SCAR/SMART while running more than 3 other programs. I've tracked down the problem after 3 hours of googling and playing around with files/settings. Note: Windows 7 sucks.

    The only real feedback that I have is I wish that you would have used proper standards

    But some features that could be a nice addition are:
    • Fail safes!
    • Better support for use of a single player. Currently your script is set up for use with more than one player and your antiban style reflects that. I do not currently have a mining army and have been using this script for a single player (my main). Because it is my main I am obviously more cautious and have modified the timing within your script and added a more comprehensive antiman. This isn't really practical when you are using multiple players but when you are using a single player it is nice. So I would like to see a simple check such as if(NumberOfPlayers = 1)then blah blah blah and a more comprehensive set of antiban methods to compensate for not being able to switch plays and letting a player "cool" off. Obviously you shouldn't auto the same player for very long and should set a "timeout" period, but it would be nice to know that if I do use a single player, they're safe, well safer. ya know?
    • PlayerStats and ProgressReport should be combined to provide a more comprehensive progress report.


    Standards!
    SCAR Code:
    {/----------------------------------------------------------------------\\
    |                                                                        |
    |                 .: YoHoJo's [P]ower [M]iner [S]upreme :.               |
    |                             Version: 1.00                              |
    |                                                                        |
    |                       Please Post Progress Reports                      |
    |       Please Monitor The Script And Leave Details About How It Runs    |
    |              All Of This Will Help Make The Script Better!             |
    \\----------------------------------------------------------------------//
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
                                        {
    //----------------------------------------------------------------------\\
    |                          .:Script Features:.                           |
    |  Â¤ Tested With SCAR Divi 3.22 & SRL Developers Revision (v294)         |
    |  Â¤ Powermines Copper, Tin, or Iron Ore                                 |
    |  Â¤ Super Fast Dropping                                                 |
    |  Â¤ Some Decent Antiban                                                 |
    |  Â¤ More To Come, All Suggestions and Feedback Appreciated!             |
    \\----------------------------------------------------------------------//
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
                                       {
    //----------------------------------------------------------------------\\
    |                            .:Version History:.                         |
    |  Â¤1.00:                                                                |
    |     -Initial Release, Should Work :p, Feedback Appreciated             |
    \\----------------------------------------------------------------------//
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
                                       {
    //----------------------------------------------------------------------\\
    |                               .:Credits:.                              |
    |   ¤ZephyrsFury:                                                        |
    |     -Helped with random small things                                   |
    |     -Supporting and Beveling In me                                     |
    |   ¤IceFire908                                                          |
    |     -Giving me basic idea for mining procedure                         |
    |     -Helped with random small things                                   |
    |     -Being a dick and a jerk which motivated me to finish              |
    |                                                                        |
    |   ¤The SRL Developers for creating                                     |
    |   ¤Kaitnieks and Freddy1990 for SCAR                                   |
    |   ¤The SRL Community for Testing/Being Awesome                         |
    |   ¤Anyone Else Who I've Forgotten To Put Here!                         |
    \\----------------------------------------------------------------------//
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
                                       {
    //----------------------------------------------------------------------\\
    |                                .:Setup:.                               |
    |   ¤Basic Setup Lines 54-61                                             |
    |   ¤Player Array Setup Starts At Line 78 onwards                        |
    \\----------------------------------------------------------------------//                                      }

    Program YoHoJosPMS;
    {.Include SRL\SRL\Misc\SMART.SCAR}
    {.include SRL\SRL.scar}
    {.Include SRL\SRL\Misc\Debug.SCAR}

    Const
      NumbOfPlayers= 4;      //How many players are you using
      StartPlayer=   0;      //Player to start auoting with! (0 means first character)
      LoadsPerLogin= 2;      //How Many Loads To Do Per Login!
      LoadsTotal=    4;      //How Many Total Lods To Do Per Character!
      World=         102;    //Server to log into, if you are using SMART.
      SSigned=       True;   //True for singed, False for unsigned client;
      Version=       '1.00'; //No Touchy!
      DropGems=      True;   //Drop Gems?(They are useless!)

    var
     RockPattern: Array Of TIntegerArray;
     TOres,TLoads,WeMined,StartTime,GemDTM:Integer;

    procedure DeclarePlayers;
    var
     i:integer;
    begin
      NumberOfPlayers(NumbOfPlayers);
      CurrentPlayer := StartPlayer;
     for i := 0 to NumbOfPlayers-1 do
      Players[i].BoxRewards  := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];
      with Players[0] do
       begin
        Name        := '';     //Player username.
        Pass        := '';             //Player password.
        Nick        := ''; //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Integers[1] := 4;       //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
        Integers[2] := 5;      //Seconds to try mining rock before clicking another.
       end;
      with Players[1] do
       begin
        Name        := '';  //Player username.
        Pass        := '';  //Player password.
        Nick        := '';  //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Integers[1] := 4;      //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
        Integers[2] := 5;      //Seconds to try mining rock before clicking another.
       end;
      with Players[2] do
       begin
        Name        := ''; //Player username.
        Pass        := ''; //Player password.
        Nick        := ''; //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Integers[1] := 4;      //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
        Integers[2] := 5;      //Seconds to try mining rock before clicking another.
       end;
      with Players[3] do
       begin
        Name        := ''; //Player username.
        Pass        := ''; //Player password.
        Nick        := ''; //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Integers[1] := 3;     //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
        Integers[2] := 5;     //Seconds to try mining rock before clicking another.
       end;
      with Players[4] do
       begin
        Name        := ''; //Player username.
        Pass        := ''; //Player password.
        Nick        := ''; //Player nickname - 3-4 letters of Player username.
        Active      := True;
        Integers[1] := 3;     //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
        Integers[2] := 5;     //Seconds to try mining rock before clicking another.
       end;
      SetArrayLength(RockPattern,2);
      RockPattern[0]:=[1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28];
      RockPattern[1]:=[1,5,9,13,17,21,25,26,22,18,14,10,6,2,3,7,11,15,19,23,27,28,24,20,16,12,8,4];
    end;

    Procedure StatsGuise(wat:String);
    Begin
      Status(wat);
      Disguise(wat);
    End;

    Function CheckAndClick(X,Y:Integer):Boolean;
    Begin
      MMouse(x,y,3,3);
      Wait(200+Random(100));
     if(IsUptext('ine'))then
      begin
       Result:=True;
       GetMousePos(x,y);
       Mouse(x,y,0,0,True);
       Wait(100);
       FFlag(0);
      end;
    end;

    Function OreInLast:Boolean;
    Begin
     If(GetColor(703,458))and(GetColor(702,441) = 131072)Then
      If(InvFull)Then
       Result:=True;
    End;

    Procedure Antiban;
    Begin
      Case Random(192) Of
       0: HoverSkill('Mining',False);
       1: Begin
           PickUpMouse;
           SleepAndMoveMouse(3000+Random(500));
          End;
       2: ExamineInv;
       3: RandomAngle(1);
       4: Begin
           GameTab(Tab_Stats);
           Wait(3000+Random(500));
           GameTab(Tab_Inv);
          End;
       5: HoverSkill('random',False);
      End;
    End;

    Function GemThere(x1,y1,x2,y2:Integer):Boolean;
    var
     x,y:Integer;
    Begin
     If(FindDTM(Gemdtm,x,y,x1,y1,x2,y2))Then
      Result:=True;
    End;

    Procedure FastDropOres(Incr:Boolean);
    var
     OreMid,I,X,Y,J,R:Integer;
     SlotBox:TBox;
     AntiB:TIntegerArray;
    Begin
     If(Not(LoggedIn))Then
      Exit;
      J:=0
      R:=Random(2);
      StatsGuise('Dropping Ores');
      OreMid := DTMFromString('78DA63CC626260E0606440054C601226CA584' +
           'C849A3C209F8F809A6C209F19BF1A00AD2101F4');
      GemDTM:= DTMFromString('78DA639CC6C4C0F0920105F00BA632FC07D28' +
           'C40FC1F08187B806A9E30A0012630C908E5312E04F29F1250331D' +
           'C8BF4340CD4C20FF037E350047640D0E');
      AntiB:=[(Random(28)+1) , (Random(28)+1) , (Random(28)+1)];
     For I:=0 to 27 Do
      Begin
       FindNormalRandoms;
       SlotBox:=InvBox(RockPattern[R][I]);
      If(FindDTm(OreMid,x,y,SlotBox.X1,SlotBox.Y1, SlotBox.X2, SlotBox.Y2))Then
       Begin
        MouseItem(RockPattern[R][I],False);
       If((InIntArray(AntiB, I)))Then
        Begin
         Case Random(2) Of
          0:Begin
             ChooseOptionMultiEx(['xami'],'player',ClickLeft);
             Wait(200+Random(100));
             MouseItem(RockPattern[R][I],False);
            End;
          1:Begin
             ChooseOptionMultiEx(['Use'],'player',ClickLeft);
             Wait(250+Random(100));
             MouseItem(RockPattern[R][I],True);
             Wait(250+RandoM(100));
             MouseItem(RockPattern[R][I],False);
            End;
           End;
          End;
         ChooseOptionMultiEx(['rop'],'player',ClickLeft);
         Inc(J);
         Wait(150+Random(100));
        End;
         If(GemThere(SlotBox.X1,SlotBox.Y1,SlotBox.X2,Slotbox.Y2))Then
          If DropGems=True Then
           Begin
            Mouse(x,y,4,4,False);
            Wait(150+Random(100));
            ChooseOpTionMultiEx(['rop'],'player',ClickLeft);
           End;
          End;
         If Incr Then
          Begin
           TOres:=TOres + J;
           Inc(TLoads);
           Players[CurrentPlayer].Integers[80]:= Players[CurrentPlayer].Integers[80] + J; //Ores
           Inc(Players[CurrentPlayer].Integers[81]); //Total Loads
           Inc(Players[CurrentPlayer].Integers[82]); //Temp Loads
          End;
         FreeDTM(GemDTM);
         FreeDTM(OreMid);
    End;

    Function MineRock(WutRock:Integer):Boolean;
    var
     I,PlusOne,tMine, HighRock:Integer;
     RockInFoI: TIntegerArray;
     RockInFoE: TExtendedArray;
     RockPts:TPointArray;
     RockPtsBox: T2DPointArray;
     RockPt: TPoint;
    Begin
     If Not(LoggedIn) Then Exit;
      StatsGuise('Searching For Rock');
     If OreInLast Then Exit;
      Case WutRock of
       1: Begin
           RockInFoE:=[0.01 , 2.25];
           RockInFoI:=[3701475, 10];
          End;
       2: Begin
           RockInFoE:=[0.03 , 0.09];
           RockInFoI:=[4088717, 9];
          End;
       3: Begin
           RockInFoE:=[0.27 , 0.13];
           RockInFoI:=[9408662, 9];
          End;
       4: Begin
           RockInFoE:=[0.13 , 0.18];
           RockInFoI:=[2567749, 6];
          End;
        End;
       ColorToleranceSpeed(2);
       SetColorSpeed2Modifiers(RockInFoE[0],RockInFoE[1]);
       FindColorsSpiralTolerance(MSCX,MSCY,RockPts,RockInfoI[0],MSX1,MSY1,MSX2,MSY2,RockInfoI[1]);
       SetColorSpeed2Modifiers(0.2,0.2);
       ColorToleranceSpeed(1);
       RockPtsBox:= TPAtoATPAEx(RockPts,20,20);
       //SortTPAFrom(RockPts, Point(MSCX, MSCY));
       SortATPAFrom(RockPtsBox,Point(MSCX,MSCY));
       HighRock:=High(RockPtsBox);
      For I:=0 To HighRock Do
       Begin
        Wait(200+Random(150));
        //If (InRange(GetArrayLength(RockPtsBox[I]),RockInFoI[2],RockInFoI[3])) Then
        Begin
         DebugATPA(RockPtsBox,'')
         RockPt:= MiddleTPA(RockPtsBox[I]);
        If CheckAndClick(RockPt.x,RockPt.y) Then
         Begin
          MarkTime(tMine);
          StatsGuise('Mining Rock');
          Players[CurrentPlayer].Loc:='Mining';
          PlusOne:=InvCount+1;
         Repeat
          Wait(150);
          FindNormalRandoms;
         If Random(50)=1 Then SleepAndMoveMouse(500+Random(100));
          Until (InvCount = PlusOne)  Or (TimeFromMark(tMine) > ((Players[CurrentPlayer].Integers[2]*1000) + Random(500)));
           Result:=True;
           Exit;
          End;
        End;
      End;
    End;

    procedure PlayerStats; {modified from Dankness and Tarajunky <3}
    var
     Active: string;
     i: Integer;
    begin
      AddToReport ('');
      AddToReport ('<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>');
      AddToReport('# : Nick = A : Level  Worked   Mined  Loads   Location');
     for i := 0 to HowManyPlayers - 1 do
      begin
       if (Players[i].Active) then Active:='T' else Active:='F';
        AddToReport(Padr(Inttostr(I),2) + ': ' + Padr(Players[i].Nick,4) + ' = ' + Padr(Active,5)
        +''+Padr(inttostr(Players[i].level[15]),5)+''
        +''+Padr(MsToTime(Players[i].Worked,Time_Bare),10)+''
        +'Ore:'+Padr(IntToStr(Players[i].integers[80]),8)+''
        +''+Padr(IntToStr(Players[i].integers[81]),7)+' '
        +'L:'+Players[i].Loc);
      end;
       AddToReport ('<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>');
    end;

    procedure ProgressReport;   {modified from Dankness and Tarajunky <3}
    var
     Sec,Orerate,LoadRate:integer;
    begin
      SRLRandomsReport;
      Sec:= (1+((Getsystemtime-StartTime)/1000));
      OreRate:=(3600*(TOres))/(Sec);
      LoadRate:=(3600*(TLoads))/(Sec);
      Writeln(' ');
      Writeln ('/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\');
      Writeln ('| -->          YoHoJos PMS '+Version+ '                <-- |');
      Writeln ('<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>');
      Writeln(' | Worked for '+ TimeRunning);
      Writeln(' | Mined '+IntToStr(TOres)+' ores at a rate of '+IntToStr(OreRate)+' per hour');
      Writeln(' | Mined '+IntToStr(TLoads)+' loads at a rate of '+IntToStr(LoadRate)+' per hour');
      Writeln ('<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>');
      PlayerStats;
    end;

    Function OverAnd:Boolean;
    Begin
      If(not(Players[CurrentPlayer].Integers[82]=0)) Then
       If(Players[CurrentPlayer].Integers[82] Mod LoadsPerLogin)=0 Then
        Result:=True;
    End;

    Begin
      Smart_Server := World;
      Smart_Signed := Ssigned;
      Smart_SuperDetail := False;
      SetupSRL;
      DeclarePlayers;
      StartTime:=GetSystemTime;
     Repeat
      StatsGuise(Players[CurrentPlayer].Nick + ' logging in');
      LoginPlayer;
      Wait(1000+Random(500));
      Players[CurrentPlayer].Integers[82]:=0; //Temp Loads
      Players[CurrentPlayer].Level[15]:=GetSkillLevel(15);
      StatsGuise(Players[CurrentPlayer].Nick + ' Mining Lv ' +IntToStr(Players[CurrentPlayer].Level[15]));
      SetRun(True);
      SetAngle(True);
      FastDropOres(False);
      MarkTime(WeMined);
     Repeat
      If MineRock(Players[CurrentPlayer].Integers[1]) Then MarkTime(WeMined);
       If (TimeFromMark(WeMined) > 90000) Then
        Begin
         Players[CurrentPlayer].Loc:='Cant Find Rock :(';
         StatsGuise('NP:Cnt.Fnd.Rock');
         Logout;
         Break;
        End;
       If OreInLast Then FastDropOres(True);
        If (Players[CurrentPlayer].Integers[81] = LoadsTotal) Then
         Begin
          Players[CurrentPlayer].Loc:='Finished Loads!';
          StatsGuise('NP:Fin.All.Load');
          Logout;
          Break;
         End;
        Until (OverAnd);
         StatsGuise('NP:NextPlayer');
         NextPlayer(LoggedIn);
         ProgressReport;
        If AllPlayersInactive Then
         Begin
          LogOut;
          TerminateScript;
         End;
      Until(False);
    End.
    Last edited by Bebe; 12-03-2009 at 05:03 AM.

  24. #24
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    What more failsafes do you want exactly? It kinda only has one, but it works out just fine.

    Yeah, ill add a break taking option in the next version, that's easy enough. Can you show me your antiban/explain some other antiban techniques you would like to see? SRLs antiban.scar isnt too awesome (I like whats in there yeah, but it could be a lot fuller), and I'm not really sure what other kind of antiban procedures I could make (haven't thought about it that much, but yes more antiban would be nice)

    I took the reporting style from tarajunky's chickenkiller, I'm fine with the way it is, but that's just a personal opinion ofc.

    Thanks for feedback.
    Hope you get your Win7/SCAR situation working out better. (I like windows 7 )

  25. #25
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    What more failsafes do you want exactly? It kinda only has one, but it works out just fine.

    Yeah, ill add a break taking option in the next version, that's easy enough. Can you show me your antiban/explain some other antiban techniques you would like to see? SRLs antiban.scar isnt too awesome (I like whats in there yeah, but it could be a lot fuller), and I'm not really sure what other kind of antiban procedures I could make (haven't thought about it that much, but yes more antiban would be nice)

    I took the reporting style from tarajunky's chickenkiller, I'm fine with the way it is, but that's just a personal opinion ofc.

    Thanks for feedback.
    Hope you get your Win7/SCAR situation working out better. (I like windows 7 )
    The fail safes I would like to see is things like: checking if you're logged in (some people on slower connections can experience lag and get kicked while the script is still running and then it just gets stuck). Things to ensure the reliability for ALL people who use the script.

    As for anti-ban, get creative. My anti-ban procedures are horrid and I'm assumed to share Plus I have them set up specifically for my computer (they use coords) so it wouldn't be universal.

    Also it would be nice if you furthered this script and made it bankable

    I'm just trying to provide feedback ha.

Page 1 of 50 12311 ... LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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