Amberleaf Posted November 14, 2011 Share Posted November 14, 2011 (edited) AmberHeater v0.5 Superheats iron ore and coal to make steel bars at the east Varrock bank, with random movements and a custom antiban. Requirements Level 43 magic to cast Superheat Nature runes Fire staff (in hand) Iron ore in the top right bank slot Coal in the slot to the left of your iron ore //SETTINGS// 1. Start the script and wait for SMART to start. 2. When the Runescape login screen appears stop the script and click disable smart. 3. Log into your account. 4. Go to the Varrock east bank and face any of the bankers on the east side. 5. Enter your pin and make sure your iron and coal are in their correct positions. 6. Withdraw 9 iron ore & then bank them, so the right click menu contains withdraw 9 iron ores. Close the bank here. 7. Enable smart by clicking the button. 8. Start the script. v0.5 updates. Fixed the script as it wasn't working after the recent updates. //Tips// Don't 24/7 it, It needs many more hours of testing. If you want a feature adding have a go at implementing it, don't be afraid to mess around with it. AmberHeaterv0.5.scar If you encounter any problems post here with as much detail as possible. Edited March 25, 2012 by Amberleaf updated to v0.5 Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 14, 2011 Share Posted November 14, 2011 Hey not bad for a first script You should really learn how to use OSI, it will make your life easier and scripts work a lot better. You can get started by reading the manual http://forums.scar-divi.com/forumdisplay.php?57-OSI-Manual Learn things like standards so your code is indented, and Mouse so you aren't constantly using ClickMouseWind etc. Inventory functions and loops so you don't have tons of repetitive code copied and pasted. Hopefully I'll have a tutorial up soon so that you can learn easier, I don't have all the time to show examples right now. Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 14, 2011 Author Share Posted November 14, 2011 I downloaded scar yesterday i used to write scripts for 'other bots', i'd like to learn more about this OSI. Anything that saves time & is generally faster/better would be nice. I'll read through the manual now. thanks. btw. A random question.. when i print back to the console with Writeln('blabla'); how can i make the text color red? thx in advance. Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 14, 2011 Share Posted November 14, 2011 I downloaded scar yesterday i used to write scripts for 'other bots', i'd like to learn more about this OSI. Anything that saves time & is generally faster/better would be nice. I'll read through the manual now. thanks. You can always learn by looking through other scripts Here's two right now that use OSI http://forums.scar-divi.com/showthread.php?302-OSI-Demon-Slinger http://forums.scar-divi.com/showthread.php?318-Working-on-a-new-essence-miner Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 14, 2011 Author Share Posted November 14, 2011 I like the idea of using that SMART OSI function but not sure how to implement it, is there a pack of files i need to download before i can start using it? Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 14, 2011 Share Posted November 14, 2011 I like the idea of using that SMART OSI function but not sure how to implement it, is there a pack of files i need to download before i can start using it? Once you download OSI through the includes manager in SCAR you can just follow this http://wiki.scar-divi.com/osi/index.php?title=Using_SMART_with_OSI Quote Link to comment Share on other sites More sharing options...
FHannes Posted November 14, 2011 Share Posted November 14, 2011 Nice contribution I've attached your script to your post if you don't mind, that way it's certain it won't vanish from pastebin. Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 14, 2011 Author Share Posted November 14, 2011 Thanks Freddy, I'll start work on v0.2 when i get back from work. Have to add random detection even if it means logging out when detected & maybe a nice paint. Quote Link to comment Share on other sites More sharing options...
hockeypanda32 Posted November 20, 2011 Share Posted November 20, 2011 Thanks Amber, been using the script for an hour and averaging 700 bars/hour, which should be like 39k xp mage and 12k smith per hour, I had to adjust your wait times and if you wanted i could upload an optimized version since yours sometimes crashed on the 'first' test. Once again thanks! Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 22, 2011 Author Share Posted November 22, 2011 Hey hockeypanda thanks for the feedback mate, sure upload your version to pastebin and I'll nab it and make it the downloadable version on here, so hard determining wait times for different computers/set ups. 700 bars p/hour not bad not bad ---------- Post added 11-22-2011 at 11:17 AM ---------- Previous post was 11-21-2011 at 11:58 AM ---------- As of 22/11/11 with coal being 195gp each, iron ore being 129gp each & nature runes at 181gp each, PROFIT PER BAR IS 495GP EACH.. It's a very nice money maker atm Quote Link to comment Share on other sites More sharing options...
JM68 Posted November 24, 2011 Share Posted November 24, 2011 This script moves the mouse correctly (i think) but doesn't actually click anything. Like it finds banker and moves mouse to it, then just moves mouse around screen as it states stuff in the debug console. Any idea how to fix? Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 25, 2011 Author Share Posted November 25, 2011 I'm In the process of re-writing this script in OSI please bare with me I should have it finished today. 25/11/11 Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 26, 2011 Author Share Posted November 26, 2011 Script has been updated guys, new link on the first page. Enjoy & post your best progress reports please. Quote Link to comment Share on other sites More sharing options...
JM68 Posted November 30, 2011 Share Posted November 30, 2011 Cant get past 100 bars. Usually only 20-30 before it messes up. Mis-clicks banker, etc. Runs around once it mis clicks then eventually logs out due to inactivity Quote Link to comment Share on other sites More sharing options...
sassycatman Posted December 17, 2011 Share Posted December 17, 2011 It logs off for me and doesnt do anything...can you post a SS of how to face banker? Quote Link to comment Share on other sites More sharing options...
Enter here Posted January 10, 2012 Share Posted January 10, 2012 hey everyone, does anyone know how to alter the script so that it does mith bars? im a bit of a noob. Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 10, 2012 Share Posted January 10, 2012 The way amberleaf has it set up would be pretty hard to change, because steel is 1 iron 2 coal were as mith is 1 mith 4 coal the whole withdraw / smelt procedure would need to be rewritten, what you could do is just rewrite those two procedures and use the rest of the code. Quote Link to comment Share on other sites More sharing options...
Enter here Posted January 10, 2012 Share Posted January 10, 2012 ok, i'll try that thanks! Quote Link to comment Share on other sites More sharing options...
slacky Posted January 15, 2012 Share Posted January 15, 2012 (edited) To make your script shorter, i've mede you a loop. Loop is something you will, and should use in future scripts, if u contineue to develop your pascal skills. This loop does the same as you do in your SmeltOre-procedure, but only 1/10 the size. - Should work, just the same way. procedure SmeltOre; var i:Integer begin repeat i:= i + 1; Wait(500 + Random(500)); MouseItem(9, False); Wait(500 + Random(500)); Superheat; Wait(250 + Random(500)); Writeln('Melting bar ' + i + '...'); until(i = 9); Writeln('Total Amount Smelted: ' + i); end; You should learn Indentation of Block Structure. In Python, C and PHP indentation is (usualy) 4 spaces, in pascal the normal thing is 3 spaces. Tab is also popular in meny programming languages, but a general thumbrule is to not mix space and tab. I do not follow pascals indent rule, perfecly. I'm more used to python, so i program in a more pythonic way. Edit: I keep asking my self. WHY do SCAR use Pascal? Why not use a faster langauge? - Engine in C(++), and scripting interface in Python. This should be faster, and simpler. Python is in general one of the fastes interpeded languages, with all sorts of extentions, it builds on C, so extentions can easly be made using C. Edited January 24, 2013 by slacky Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 15, 2012 Share Posted January 15, 2012 (edited) Indents in pascal are 2 spaces. Also, pascal isn't inherently slow, as a matter of fact, it's faster than most languages because it's native. The reason SCAR scripts are slower than native is code because they're executed by a script engine which unfortunately isn't optimized for speed. In the (near) future a new engine will be integrated into SCAR, still using pascal scripting, but executing at about 100 times the speed of the current engine, maybe 1.5-2 times slower than native Delphi/C++ code. Edited January 15, 2012 by Freddy Quote Link to comment Share on other sites More sharing options...
slacky Posted January 15, 2012 Share Posted January 15, 2012 (edited) Quoting some old pascal documentation: #1-59. The basic unit of indentation is 3, not 4 or 2. Edited January 15, 2012 by slacky Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 16, 2012 Share Posted January 16, 2012 Quoting some old pascal documentation: well scar uses 2 because thats what everyone uses when writing scar scripts, so it helps keep some uniformity when reading someone elses scripts. i dont think this is specified anywhere its just what we use. some people dont use any indentation, which sucks id rather 2 than none.. =) Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 16, 2012 Share Posted January 16, 2012 Quoting some old pascal documentation: That doesn't mean it isn't wrong... http://edn.embarcadero.com/article/10280#4.3 Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted March 25, 2012 Author Share Posted March 25, 2012 updated to v0.5, new instructions listed please read and understand them before posting errors. Report any bugs/errors & enjoy =]. Quote Link to comment Share on other sites More sharing options...
devin126 Posted March 26, 2012 Share Posted March 26, 2012 the script works for me but doesn't stay going, can some change the mouse speed and move ments in the script because once it messes up it just logs me out, other than that its a go working script. Quote Link to comment Share on other sites More sharing options...