SRL Archive - Outdated / Broken

Skele_Coal


gerauchert

2012-07-09 14:57:50

Skele_Coal


Current Version: 2.1

~ as of 5/16/13 ~ Working ~

Finally, I have a working updated release of my old Skele_Coal script. Please post any bugs that you encounter, and I will be actively trying to keep this script stable throughout the summer (almost mining rune!).


//--------------------------------------------------------------------------------------------------//
//------------------------------Skele_Coal--------------------------------------------------------//
// ---------------------------------------------------------------------------------------------//
// Developed by: Gerauchert
//
// Version: 2.1
//
// Premise: Mines coal at the skeleton mine south of the castle in the wilderness
// and banks in Edgeville
//
//
// Features:
// ~ Walking and Location Detection via ObjectDTM's and SPS
// ~ Walks using mutiple paths for increased randomness
// ~ PVP Threat Detection and Handling, Death Detection and Handling
// ~ Option for favorite world selection, wielding pickaxe, withdrawing pickaxes
// ~ Randomness to Runs, Antiban During Mining Loop
// ~ RESETS players after script would normally terminate. Via Home Teleport! Immortalized runtimes!
//
//
// Instructions:
// 1. Place SKELE_CUSTOM into your SPS img folder in the RUNESCAPE_OTHER folder
// 2. Equip your army with rune pickaxes, and armour if necessary
// 3. Place army INSIDE Edgeville bank, or in the mine with Mine Symbol VISIBLE
// 4. Make sure your players have the Edgeville Lodestone activated, XP PopUp DISABLED (screws up coal detection sometimes)
// 5. Place Home Teleport spell into the last slot of your action bar, key set as '='.
// 6. Set Protect Prayer to your QuickPrayer for your players(if applicable)
// 7. Hit PLAY, and enjoy!
//
// Credits:
// SRL Devs and community for their awesome contributions, which made this script possible
// Litoris ~ Function GetWildernessLevel: Boolean;
// THANKS!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ 33b [0]: True | Mining Lvl: 84 | Coal Mined: 2632 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 12 Hours, 24 Minutes and 11 Seconds
* Players left: 1
* Mined: 2659 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ 33b [0]: True | Mining Lvl: 84 | Coal Mined: 2659 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 6 Hours, 35 Minutes and 49 Seconds
* Players left: 7
* Mined: 1369 Coal
* Evaded: 5 PVP threats
* Died: 0 times
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 80 | Coal Mined: 185 | |
^ [1]: True | Mining Lvl: 81 | Coal Mined: 168 | |
^ [2]: True | Mining Lvl: 80 | Coal Mined: 180 | |
^ [3]: True | Mining Lvl: 80 | Coal Mined: 168 | |
^ [4]: True | Mining Lvl: 80 | Coal Mined: 333 | |
^ [5]: True | Mining Lvl: 80 | Coal Mined: 234 | |
^ [6]: True | Mining Lvl: 74 | Coal Mined: 101 | |

~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 6 Hours, 1 Minutes and 41 Seconds
* Players left: 6
* Mined: 1304 Coal
* Evaded: 2 PVP threats
* Died: 0 times
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 80 | Coal Mined: 112 | |
^ [1]: True | Mining Lvl: 81 | Coal Mined: 242 | |
^ [2]: True | Mining Lvl: 81 | Coal Mined: 304 | |
^ [3]: False | Mining Lvl: -1 | Coal Mined: 84 | |
^ [4]: True | Mining Lvl: 80 | Coal Mined: 276 | |
^ [5]: True | Mining Lvl: -1 | Coal Mined: 130 | |
^ [6]: True | Mining Lvl: 75 | Coal Mined: 156 | |

~ Please do not forget to place the SPS image into your Runescape_Other folder.

Enjoy! :)

[XoL]

2012-07-09 15:03:05

ooh, cool!
Thanks

John

2012-07-09 21:15:29

Awesome Release :D
That Orange Keeps Staring at me O.o

gerauchert

2012-07-10 11:36:59

Thanks, let me know how it runs :)

From: John

That Orange Keeps Staring at me O.o


Muahaha :P

BobboHobbo

2012-07-11 03:15:41

Interesting script, looks great!

gerauchert

2013-05-10 19:25:43

UPDATED to version 2.0!

New features:
- Improved failsafes for walking
- Hometeleport to edgeville for resetting 'false' players and as an alternative to walking from the mine to bank
- Improved world switching, option for favorite worlds
- Option for wielding pickaxe
- Quick Prayer for protection prayers if under attack
- Improved death handling, grabs a new pickaxe if you die
- Once all players are inactive, it will attempt to reset players via hometeleport to edgeville bank and resume the script after cycling through each inactive player (and at least one is successfully reset). Potentially allows for unlimited runtime.

Future updates: (whenever I get around to it)
- Coal bag handling
- Hobgoblin mine walking/adamant mining

Let me know if colors start failing, or if things get buggy with the script. Currently running single player over an hour and a half stable right now. Enjoy!

Wetish

2013-05-14 18:48:26

I really like scripts like this. Even though this is not the most effective way to mine coal, it breaks the pattern of standard scripts and goldfarming bots. It brings back old techniques of having multiple accounts, but not running them all at once. Thanks for the script. ;)

Ian

2013-05-14 20:01:09

Hi @gerauchert, this is a good idea for a script!

I just started testing so I'll say a few things I've noticed.

Sometimes it hovers the back of the skeleton's shields when looking for the coal (The colors are pretty similar), and also my hair, although that's my fault for having black hair and not wearing a hat, I'll do that next time :)

When it is walking back to the Edgeville bank from the mine, it toggles my run off (It used to be on). When it goes from the bank to the mine it switches it back on. Not a huge issue, just affects the xp/h a bit :)

Here's a short proggy, still running
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 26 Minutes and 34 Seconds
* Players left: 1
* Mined: 82 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 82 | |

Edit: It had banking issues and logged itself out, then when it tried to log in again the 6h limit booted it so Simba closed that client and spawned another. The new client spawned, but Simba apparently didn't recognise it judging from the debug:

SRL Compiled in 15 msec
Paired with SMART[6076]
Object DTM Include: Setup complete.
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 8 Seconds
* Players left: 1
* Mined: 0 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 0 | |
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 8 Minutes and 29 Seconds
* Players left: 1
* Mined: 28 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 28 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 16 Minutes and 55 Seconds
* Players left: 1
* Mined: 55 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 55 | |
Did not get close enough to bank, SPS time
SPS not working here, must be close to bank
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 26 Minutes and 34 Seconds
* Players left: 1
* Mined: 82 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 82 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 35 Minutes and 10 Seconds
* Players left: 1
* Mined: 110 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 110 | |
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 43 Minutes and 51 Seconds
* Players left: 1
* Mined: 138 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 138 | |
WildWalk failed :(
Pos: (219,211) is in agreement with function input
Did not get close enough to bank, SPS time
SPS not working here, must be close to bank
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 51 Minutes and 57 Seconds
* Players left: 1
* Mined: 166 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 166 | |
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 59 Minutes and 51 Seconds
* Players left: 1
* Mined: 194 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 194 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 1 Hours, 8 Minutes and 33 Seconds
* Players left: 1
* Mined: 222 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 222 | |
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 1 Hours, 17 Minutes and 12 Seconds
* Players left: 1
* Mined: 250 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 250 | |
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 1 Hours, 24 Minutes and 4 Seconds
* Players left: 1
* Mined: 277 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 277 | |
CANT FIND BANKER
Relocating
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 1 Hours, 33 Minutes and 32 Seconds
* Players left: 1
* Mined: 305 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: True | Mining Lvl: 74 | Coal Mined: 305 | |
Did not get close enough to wall, SPS time
CANT FIND BANKER
Relocating
CANT FIND BANKER
CANT FIND BANKER
CANT FIND BANKER
CANT FIND BANKER
CANT FIND BANKER
CANT FIND BANKER
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active...
All players not active!
~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 1 Hours, 41 Minutes and 54 Seconds
* Players left: 0
* Mined: 305 Coal
* Evaded: 0 PVP threats
* Died: 0 times
* Resets: 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ [0]: False | Mining Lvl: -1 | Coal Mined: 305 | | HandleBanking failed
Welcome to Runescape.
************
'Game session expired.'
SRL Compiled in 0 msec
** Smart Cannot Spawn Clients **
Successfully executed.

Also I was watching it while the banking failed, it was standing at the corner with the banker in view and flailing the mouse around my character.

The Mayor

2013-05-15 02:05:32

The members scripts section is very inactive. If you want more feedback on your script, it might be better in the public section :)

gerauchert

2013-05-15 10:32:46

@BMWxi: Thanks for trying the script out and providing some feedback, much appreciated.

The ToggleRun problem: if you want your char to run with a full load of ores do a search for "SetRun" during either MainLoop or WildWalk/EdgeWalk and set it to True everywhere. I personally do not like that method so I coded it otherwise :)

Mining Problem: Yes, I have similar issues with the skeletons' shields and my character's addy armor during the mining loop. I still can't find a good way to fix that. I tried doing "sortbysize" instead of closest, but often that makes the mining pretty choppy running around ignoring nearby ores. Plus the colors are finicky for detecting only active ores… Feel free to test out better colors/modifiers and post 'em if they solve the problem.

The Banking Problem: Yeah, I think it has something to do with the ResetPlayer function when the script reaches the six hour problem. It keeps happening to me as well, but I am having trouble testing where it messes up or why it does because it only seems to happen after reloading smart. When I individually test the ResetPlayers function or watch it happen during runtime under the 6 hr client restart… it works perfect. I will try to figure this out and post a fix ASAP.

EDIT: I think I figured out the issue. The mainloop depends on location checks via Players.Loc, so when the script was resetting it would work fine normally when the player had Loc = 'Bank', but would fail when it was still on 'Mine'. Updated to v2.1 with an untested fix. Let me know if it keeps happening… I'm off to work soon.

~~~~~~~~~~~~~Skele_Coal~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Running for: 8 Hours, 39 Minutes and 4 Seconds
* Players left: 1
* Mined: 1721 Coal
* Evaded: 0 PVP threats
* Died: 1 times
* Resets: 6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~PlayerReport~~~~~~~~~~~~
^ 33b [0]: True | Mining Lvl: 83 | Coal Mined: 1721 | |

Looks like it reset fine while I was at work. However, my char was left naked upon arrival. So I need to get a better death detection / pickaxe retrieval function going. More updates soon to come :)

@The Mayor: You're right that I would get more feedback if it was public, but I feel like this is a script that could be abused by leechers, ruining the mostly-bot-free environment of the skeleton mine and dropping coal prices. I spent a LOT of time working on this script so I wanted members who could appreciate this script using it first. Maybe when I get my mining to rune on a few accounts I'll release it for public.

@Wetish: Thanks man, much appreciated.