iScripts™ and KeepBotting Presents:
iOak
-----------------
| = Version:
1.2 = |
-----------------
Status: Flawless
Last Updated:
22nd Jan 2015
Download:
here.
If the script refuses to start because you're missing files, check
this post for an updated version with new links.
Description
Chops oak logs at the spot near Varrock's west bank. Deposits them at that bank, too.
Features
- 100% color!
- Chops logs with incredible speed (>20k xp/hr, >100k gp/hr)!
- Banks logs @ Varrock west bank!
- Fast & accurate object finding using DTMs, TPAs, ATPAs, and TPA filtering!
- Robust antipattern to reduce ban rates to an absolute minimum!
- Informative progress report, painted on SMART!
- Passes the 6-hour limit!
- Fast and accurate pathfinding using SPS!
- Compatible with RS3 and uses SRL-6!
- Numerous failsafes to prevent script failure!
How to Use
0) It is recommended to use Direct-X mode! Log in to RS > Press Esc > Graphics Options > Custom > Direct-X The script may behave oddly on OpenGL mode!
1) Fill out your player info.
Simba Code:
///////////////////////////////////
///////////////////////////////////
/////// Start Setup ///////Start setting up the script here. Refer to the comments if you don't know what you're doing.
///////////////////////////////////
///////////////////////////////////
const
(* player info *)
playerName = ['']; //Put your player's name (or nickname, if you set one) here.
playerFile = 'default'; //Put your playerfile's name here. Default is 'default'.
desiredWorld = -1; //Enter your desired world number here. 0 for random, -1 for play button.
(* options *)
usePixelShift = false; //Pixel shift is faster but highly inaccurate and is NOT reccommended.
//False = use inventory shift which is slower, more accurate, and IS reccommended.
//Adjust these based on your woodcutting level, but ignore them if you're using pixel shift
minWait = 2; //Minimum time (in seconds) to wait for chopping a log - make this higher if it waits too short
maxWait = 4; //Maximum time (in seconds) to wait for chopping a log - make this lower if it waits too long
minMouseSpeed = 25; //MIN speed at which to move the mouse
//Default values for these should be just fine. If you must change, lower = slower, higher = faster
maxMouseSpeed = 50; //MAX speed at which to move the mouse
///////////////////////////////////
///////////////////////////////////
/////// Stop Setup ///////Don't modify the script ANY FURTHER unless you know what you're doing. You could break stuff!
///////////////////////////////////
///////////////////////////////////
2) Place your character at the trees, the bank, or anywhere along the path in between!
3) Zoom all the way OUT.
4) Start the script!
Requirements
1) 15 woodcutting to cut oak trees.
2) A hatchet on your toolbelt.
Additional Info
-> For best results:
- DO run the script on Direct-X mode. It eliminates the possibility of the minimap bugging out.
- DON'T use pixel shift. It's faster but less accurate.
- DON'T run the script on a crowded world. People stealing your trees can impact the script's performance.
- DON'T wear tan or brown clothes. It interferes with TPA filtering. If you see red debug being drawn on your player, change what you're wearing.
- DO use Classic camera mode and DO make the lowest sensitivity. It helps the script when it wants to turn the camera to a specific angle.
Example:
Current Bugs
-> GP per hour calculator borks after a client reload.
-> The script may end up counting an inventory of logs more than once if the banking function loops multiple times.
Please report any bugs.
Future Updates
-> Custom banking routine - currently, .openBank() is being used which works fine but can respond slowly in Varrock west bank.
-> A new SPS map with dimensions better-suited to the path the script travels. Will prevent SPS getting lost @ the extreme N or S of the map.
Credits
-> @Clarity; for his tutorial on making an awesome progress report.
-> @The Mayor; for his post on how to properly filter out dead trees AND for his procedure to automatically download required files.
-> @BMWxi; for his SPS World Map project.
-> @NKN; for assisting me with some logic pertaining to filtering TPAs.
Proggies
Top proggy by yours truly, see if you can beat me!
2nd place, @croberger; came close!
(15.6 hours runtime)
Update Log
Code:
v1.2
- changed "assign" operators to "equals" operators in the setup constants
- created a home directory to place downloaded files in, added the relevant checks, changed getFile() and .drawBitmap() paths to match
- the Linux geek that I am was using forward slashes for file paths, changed them to Windows backslashes
- more debug to initFiles()
- removed the "globals" header from the setup constants as the user sets no globals in this script
- deleted a bunch of random commented lines
- added proper credits to getPrice()
- changed getFile() around a bit
- the on-screen progress report works now (for real this time, I promise)
- removed useDualFiltering from the setup constants because it was actually never functional and no one should ever turn that off anyway
- added a failsafe that closes interfaces covering the mainScreen, this fixes the "accidentally opening the Esc-menu" bug
- added time running to the disguise() progress report
v1.1
- fixed progress reporting via disguise()
- fixed isStillChopping() standards
- added more debug to walk()
- re-enabled logout on terminate
- removed some unused variables
- disabled SRL debug by default
- fixed "You are accessing an invalid point" when trying to draw progress report (later confirmed this was due to user-error, but hell, I made it better anyway)
- fixed the bug that was causing the script to count logs multiple times
- changed angle management so it only rotates when we can't find trees
v1.0
- initial release