Kevin's Slayer Tower
PLEASE READ INSTRUCTIONS
All comments and/or suggestions are highly encouraged (and please note all discovered bugs as well).
FEATURES
- 170k+ combat xp/hr and 11k+ slayer xp/hr (depending on levels and equipment).
- Supports AND REQUIRES ObjDTM and SPS walking.
- Implements SMART8
- Kills Crawling Hands
- Kills Banshees
- Kills Infernal Mages
- Kills Bloodvelds
- Kills Nechryaels
- Kills Abyssal Demons(Their xp was nerfed and difficulty increased, so Nechryaels are actually better xp).
- Supports custom ability bars
- Supports food (defaults to shark)
- Supports Regenerate
- Supports running to the bank to heal if you still manage to get too low despite other healing methods
- Supports world hopping in crowded locations.
- Loots! (does not bank said loot)
- Casts High Alchemy if on ability bar with runes in inventory on certain items!
- Implements mini breaks
- Is covered in fail-safes to prevent getting stuck in infinite loops.
- Will select contracts for you
- Will turn in contracts for you and select gold rewards.
- Includes a progress report with gp and xp.
- If script fails, a screenshot is taken that will hide your character and name.
- Currently implements both a text and object finding debug mode.
Known issues
- Climbing up/down stairs can fail rarely. Need to adjust related logic for more failsafes.
- The only reason food isn't supported is because I don't constantly switch for an inventory check - or have a happy medium in place yet.
- AOE abilities will cause huge aggro that won't necessarily be simply resolved. USE THESE AT YOUR OWN RISK. (This has been vastly improved to handle these scenarios) So long as auto-retaliate is on, this has now fixable
- Upon getting a new contract will search for the related monster before walking to its area (no clue why this is).
- Rare bug in ability bar percent function not returning correctly causing regenerate to not be used, time to be wasted, and eventual running/escape necessary (which script still handles).
- Due to OCR related issues (SRL code, not mine), certain characters cannot be read correctly for the action bar. This includes '=' at a very minimum. I have verified 0-9, '-', and '.' to all work correctly, as well as the letters I've happened to check.
Planned Additions
- Spectres are technically implemented but logic does not exist for leaving their area.
- Gargoyles are technically implemented but logic does not exist for leaving their area - nor is the rock hammer implemented.
- All other creatures in tower - my personal slayer level is too low so I'd need to borrow an account.
- Fixing food.
- Overload pots - personal herblore level is too low
- Banking for food/pots
- Looting of charms (currently no intent to add looting of anything else and may leave to requiring the charm hunter imp). This may not happen - it appears there's a glitch in the tower that causes charms to appear forever until logout, even though they can't be picked up.
- Auto-Updater
- Forms and saved settings
- SMART progress report (if someone is willing to make a graphic)
- Prayer flashing? (can that be done EOC?)
- Possible suggestions?
INSTRUCTIONS
- Have ObjDTM installed: http://villavu.com/forum/showthread.php?t=72067
- Have SPS installed: http://villavu.com/forum/showthread.php?t=47714
- Download the Canifis map and place in "\Includes\SPS\img\runescape_other"
- Have SMART8 installed, or adjust it to use your current SMART version.
- You must have a dedicated xp bar for slayer to improve speed/accuracy of calculations AND fighting.
- You must have a dedicated xp bar for total xp for accurate xp calculations.
- Upon startup, must be within the canifis/slayer tower area. If standing by Markus (the contract giver), it will simply handle finding him much quicker than standing far away (obviously).
- I recommend use of a ring of life for absolute safety noting:
- Note that not only is this a combat script, but this doesn't have hundreds of testers checking it out before you - I've had my failsafes save me from death during my testing, but death is still a remote possibility (aka, babysit until you're confident - I've had close to 100 hours runtime with 0 deaths).
- Fill out the form that pops up on run. It'll save your info! However, do not leave anything blank even if you're not using it - it will break if you do that.

Credits!
- @Ollybest for screenshot on failure. Also referencing me to ini files and random help here and there
- @Flight for mouse methods and 6HourFix replacement
- @Benny for the awesome proggy background I have attached below

- @Turpinator for the map that's been in use from the very beginning. His mention should have been here long ago because he did a lot of amazing work towards it. Seriously, thank this guy here.
- I blatantly stole @Ashaman88's Get Max HP function with slight changes. Very slight changes.
- @Cynic made a recommendation to improve the efficiency of IsNum to use an ASCII based comparison.
- I stole @Shatterhand's Red Bar DTM for looting purposes. I took his DTM and I'm pretty sure I took his findRedBar that uses the dtm and draws the box around it(for looting/debug purposes).
Progress Reports
Sjoe-
Stayon-
Progress Report:
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*Kevin's Slayer Contracts.
*Time elapsed: 11 Minutes and 24 Seconds
*We have gained 32334 Combat Experience! (171432/hr)
*We have gained 2095 Slayer Experience! (11107/hr)
*We have earned 0 gold! (0/hr)
*We have killed 36 monsters! (190/hr)
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Praize(supposedly went to 40 hours after this) -
Progress Report:
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*Kevin's Slayer Contracts.
*Time elapsed: 4 Hours, 23 Minutes and 36 Seconds
*We have gained 584096 Combat Experience! (133796/hr)
*We have gained 33697 Slayer Experience! (7718/hr)
*We have earned 329070 gold! (75378/hr)
*We have killed 636 monsters! (145/hr)
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99's
Praize - 99 Attack
Praize - 99 Strength
Praize - 99 Defence
Updates
1.1 - Improves combat speed with more intelligent target selection. Fixes bug causing detection of contract completion to fail permanently. Improvements to regenerate usage to more completely use the max healing and speed allowed. And finally, random slight
improvements abound.
1.2 - Improves combat speed and overall xp gain about 25-33%. Improved target selection. Improved detection for accidentally causing multiple fights (and far less likely to occur now as well). Code patterns have adjusted slightly for upcoming improvements to walking for additional failsafes. Added a SMART paint proggy with an auto downloader! (although SMART proggy is less detailed than text proggy). Debug methods improved. Improved kill counter. More accurate in fight detection due to an idea from @The Mayor. Improved logic for using regenerate - both in turns of maximizing healing while seeming human and in starting the next fight as quickly as possible. Fixed integer overflow bug in longer progress reports. Small refactors. Minor script efficiency improvements throughout. (This version had a 17 hour progress report that only failed due to the 4 updates Runescape had this morning)
1.3 - Mostly a User-Friendly update. Added a forms menu so you don't need to edit the script at all anymore - and it saves your info. Fewer settings are now required for same functionality to work. Added an Auto-Updater (hopefully it works for everyone, I suppose). Added an auto-downloader for the SPS map (I should have added this before!). Setup the map to now include 3rd and 4th floor additions for when the code is finally in place(Coming very soon
). Added comments around here and there for readability for those who are curious. Added an additional failsafe for walking to bank for healing.
1.31 - I noticed some stupid mistakes (I somehow removed the line that actually uses your EOC abilities) and an incorrect saving of desired XP bar settings. They have been fixed.
1.35 - Now using imgur over tinypic to host my images, slight update to form for readability, bigger update to form to include the option for multiple settings files, improved debugging for skills getting read.
1.4 - Threshold and Ultimate support finally in place! Abyssal Demon and Nechryael support also in place! Personal xp rates have past 110k cb and 7k slayer per hour on Nechryael. Added user setting to control maximum amount of fellow players in are before world hopping. Improved target finding logic for both speed and accuracy.
1.5 - Updated text recognition big time. Way more accurate fight detection. Added high alchemy and Regenerate detection on the bar. Simplified form menu and added new options. Basic looting is now in place - only works well on creatures that drop bones. High Alchemy implementation in place. Does so on full inventory. Improved fight logic. Added update notes to a message box on update. Improved object debug display. Longer wait for Markus detection.
- Benny's amazing art that is included for progress reports on 1.2 and beyond.
Final Notes:
MOD APPROVED:

Originally Posted by
Justin
Looks amazing!
Simba Code:
//Previous versions
Slayer Tower1.0.simba(42.4KB, 14 views)
Slayer Tower1.1.simba(42.8KB, 4 views)
Slayer Tower1.2.simba(46.3KB, 14 views)