TnY Superheater
Description:
Superheats ore for you, gaining you magic and smithing experience. Includes antirandom and SRL stats.
Notice This is a first public release, so be sure to watch the script for a bit to ensure that it works properly for you.
Setup:
Change the following constants and player info in the script.
Code:
const
BAR='mith'; //Type of bar to be made (iron, steel, gold, mith, addy, rune, silver (no bronze))
BARSTOMAKE=1000; // How many bars you want the superheater to make
BANKLOCATION='br'; //Which bank you want to use (br = Burthrope, sw = Soul Wars, cw = Castle Wars)
GOLDGAUNTLENTS='no'; //Are you using gold gauntlents while heating gold?
USINGRUNES='no'; //Are you using fire runes? Leave no if you have a fire staff or similar item equiped.
ORESLOT=1; //The bank slot you have the desired ore in (1 is top left, 10 is top right, 11 is under 1, 20 is under 10, etc)
COALSLOT=2; //The bank slot you have your coal in
TABTOUSE=1; //Which bank tab your items are in.
SRLStats_User = 'Anonymous'; // Your SRL Stats ID (If you dont have one then just leave it as it is)
SRLStats_Password = 'anon1337'; // Your SRL Stats Password (If you dont have one then just leave it as it is)
...
Name:=''; //Account Username
Pass:=''; //Account Password
Nick:=''; //3-4 lower case letters of your character's name
Pin:=''; //Leave blank if you don't have a pin
Bank:
Red = tabs
Yellow = slots

Inv:
You will need to put your nature runes here.
If you're using fire runes, put them in the next space to the right.

Location:
Stand near any of the 3 supported banks (Burthrope, Soul Wars, Castle Wars).
Progress:

Originally Posted by
Taikei no Yuurei
============================>
=TnY Superheat Progress
=Time: 38 Minutes and 27 Seconds
=Superheating mith bars
=Smithing XP: 9300
=Magic XP: 16430
=Smithing XP/hr: 14511
=Magic XP/hr: 25636
=Ore/Runes Consumed: 310
============================>
============================>
=TnY Superheat Progress
=Time: 1 Hours, 5 Minutes and 37 Seconds
=Superheating mith bars
=Smithing XP: 13500
=Magic XP: 23850
=Smithing XP/hr: 12344
=Magic XP/hr: 21808
=Ore Consumed: 450
============================>
Known Bugs, Future Updates, and Changes:
Known Bugs:
Occasionally won't hit the play button when logging in. Seems to be an issue with SMART.
Sometimes doesn't withdraw or withdraws multiple times, failsafes present to correct either occurrence, though occasionally something slips past. Can cause a miscount of total bars smelted, but doesn't crash the script.
Lag can cause problems with casting, failsafes present for most levels of lag.
Superheats only in full inventories, which may cause you to overshoot your goal, or not quite reach it as not having enough raw materials may cause the last inventory not to be superheated.
Does not recognize when it tries superheating something besides ore (or the wrong ore), which may appear a bit botty as it tries to superheat an inventory full of bars or cabbage. Rarely happens thanks to failsafes.
Not having nature runes in your inventory leads to an infinite loop.
Does not properly detect what items are being withdrawn, and will try to withdraw and superheat anything, leading to a very botty looking case of trying to superheat coal or other items over and over again.
Planned Updates:
Implement use of a coal bag. Already prepped, need a coal bag to setup proper banking and test.
Some more anti-ban procedures such as taking an afk break every so often
Easier adjustability of lag compensation
Ability to re-log a person every so often to prevent the game crashing at 6 hours, possibly part of the afk break.
Possible addition of bronze if requested
Possible addition of more bank options.
Version History:
Code:
V0.7:
-Initial Public Release
Additional Info:
This is my first code for RuneScape and my first code in pascal. Took me a total of about 12 hours to learn the language, code, and debug, 5 hours to test, and an hour to post. Started yesterday morning. 
I decided to make a superheating code because it trains both magic and smithing while making a small profit, and the only superheater I could find crashed very often for me. I also thought it would be a good first project for me. It requires a fair bit of complexity since I have to bank, pull different amounts of different things out of the bank, cast a spell on multiple spots, etc. without having to delve into the really complex things like pathfinding.
Please feel free to leave comments, proggies, suggestions and such.