SRL Archive - Outdated / Broken

[#36 | Dev #134 ] RM AK Smelter !


Sir R. M8gic1an

2009-06-26 21:38:54

RM AK Smelter
For all your smelting needs


HighLights:
  • All bars
  • Ring of Forging
  • Only searches the bank once, it then remembers where things were
  • AutoDetects Location
  • AutoDetects Activity
  • Rests (run energy)
  • Auto Updating
  • Extremely Sexy

Known Bugs:
  • MultiPlayer = fail;
  • It will not do the last load unless the ore count = 1 full load; This will never be fixed, as this is the way i detect if everything is alright. But it will set the player to false.

Other than those, it has all the usual stuff such as antiban, antirandoms, breaks and multiplayer. No Responder tho, as I am currently re-writting my own.


I have tested this script with Bronze, Iron, Steel and Mithril.

Finally, this one is for the lolz.



Also, I have run this script for over 8h straight on one character, but this is the only proggy I have to show you atm:
[php]
[==================================================]
[ RM AK Smelter 0.50 ]
[ by Rasta Magician ]
[==================================================]
[ Time Running : 8 Hours, 20 Minutes And 8 Seconds ]
[ Loads : 295 ]
[==================================================]
[ RM AK Smelter 0.50 ]
[==================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ xxxx | True | 07:10:14 | 295 | | 2258 ]
[=================================================]
[/php]

[php]
——————————————————
| Bar | Ore Cost | Bar Price | Profit | XP |
——————————————————
| Bronze | 102 | 180 | 72 | 6.2 |
| Iron | 200 | 236 | 36 | 12.5 | // no RoF
| Iron | 100 | 236 | 136 | 12.5 | // w/ RoF
| Silver | 194 | 208 | 14 | 13.7 |
| Steel | 464 | 614 | 150 | 17.5 |
| Gold | 474 | 231 | -243 | 22.5 |
| Mith | 943 | 1 170 | 227 | 30.0 |
| Addy | 2 142 | 2 340 | 198 | 37.5 |
| Rune | 14 956 | 15 200 | 244 | 50.0 |
——————————————————
// RoF = Ring of Forging
[/php]

xp/h and GP/h rates: currently gathering them - Ordered by xp/h
[php]
// keep in mind that these might change as I update the script,
// but they can be used as a general guideline
[ Nick | Active | Worked | Banked | Rand | bars | profit/h | xp/h | Bar Type ]
[===============================================================================]
[ aoti | True | 00:28:32 | 13 | | 364 | 10710 | 10480 | silver ]
[ aoti | True | 00:28:59 | 12 | | 309 | 86904 | 7988 | iron ] // w/ RoF
[ aoti | True | 00:29:48 | 26 | | 104 | 41382 | 7838 | adamant ]
[ aoti | True | 00:26:24 | 22 | | 110 | 56523 | 7470 | mithril ]
[ aoti | True | 00:29:04 | 20 | | 180 | 55650 | 6492 | steel ]
[ aoti | True | 00:28:09 | 13 | | 199 | 57664 | 5300 | iron ] // no RoF
//RoF = Ring of Fire
[/php]

So enjoy, post proggies, let me know what you think.
I'm still working on this, but this version is already a stable one.

~RM

ShowerThoughts

2009-06-26 21:40:42

Do you want me to make bar dtm? I think I know the problem.

Edit:
nvm

P1nky

2009-06-26 22:06:15

dannnng lol awsome, thanks :)

ShowerThoughts

2009-06-26 22:07:28

I Pmed you the dtm: you might use this kind of counting it work(s)(ed) fine for me.

Nava2

2009-06-26 22:40:03

Cannonballs?

senrath

2009-06-26 22:40:59

Sweet. Definitely gonna use this soon.

Dynamite

2009-06-26 22:43:01

Do you make a profit?
Nice by the way :D

T~M

senrath

2009-06-26 22:53:16

From: The Man
Do you make a profit?
Nice by the way :D

T~M

Steel makes a profit. Or at least it did the last time I checked.

ZaSz

2009-06-26 23:56:27

Revision #36 is out?

Now i got to get my miner up to date again :)

HyperSecret

2009-06-27 02:23:01

FindFurnace in SRL needs to get changed to WaitUpText instead of IsUpText, It hops around the furnace 2-3 times before clicking…


[==================]
[ **** ]
[ Active : True ]
[ Worked : 00s ]
[ Banked : 3 ]
[ Random : ]
[ bars : 35 ]
[==================]

I also edited your BankBankers function a little. I think this would help. As long as your compass is N you can search just the left side of the screen for the bankers, even a little less.


if not(FindColorsTolerance(TPA, 7303031, MSX1, MSY1, MSCX - 25, MSY2, 7)) then
begin
RMDebug('Failed to find the color, no bankers found');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;

I changed x2 to MSCX - 25 instead of MSX2. So now it doesn't hover over other players standing at the bankers. Goes directly to a banker.

Simtoon

2009-06-27 02:49:16

All those proggies in IRC and now you finally released it :)

HyperSecret

2009-06-27 03:43:15


[===================================================]
[ RM AK Smelter 0.50 ]
[ by Rasta Magician ]
[===================================================]
[ Time Running : 1 Hours, 17 Minutes And 15 Seconds ]
[ Loads : 60 ]
[===================================================]
[ RM AK Smelter 0.50 ]
[===================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ **** | True | 01:00:58 | 60 | | 400 ]
[=================================================]

I also had to change the color to the coal because it wasn't finding it. You could probably change the tol from 7 to 8/9 and that would work too.

Mithril Bars. It made 300 bars not 400.

bugger0001

2009-06-27 10:12:58

[==================================================]
[ RM AK Smelter 0.50 ]
[ by Rasta Magician ]
[==================================================]
[ Time Running : 8 Hours, 20 Minutes And 8 Seconds ]
[ Loads : 295 ]
[==================================================]
[ RM AK Smelter 0.50 ]
[==================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ xxxx | True | 07:10:14 | 295 | | 2258 ]
[=================================================]

It's good, but not perfect. When I ran out of ores, it just sat in bank looking for ores(but there weren't any) about an hour before I stopped it.
Here's the debug:

09:08:10 AM : **** : do bank
09:08:11 AM : **** : looking for steel; Move: False; in FindBar
09:08:11 AM : **** : Found: False
09:08:11 AM : **** : In Bank: True
09:08:12 AM : **** : before openbank
09:08:17 AM : **** : after openbak
09:08:20 AM : **** : Attempting to withdraw iron
09:08:20 AM : **** : Start Spot: 0
09:08:20 AM : **** : found with TPA
text: ron ore
09:08:28 AM : **** : Move Check: False
09:08:29 AM : **** : Found: False
09:08:29 AM : **** : Spot: 0
09:08:29 AM : **** : 223, 155
09:08:29 AM : **** : Attempting to withdraw iron
09:08:29 AM : **** : Start Spot: 0
09:08:29 AM : **** : found with TPA
text: ron ore
09:08:37 AM : **** : Move Check: False
09:08:37 AM : **** : Found: False
09:08:37 AM : **** : Spot: 0
09:08:38 AM : **** : 223, 155
09:08:38 AM : **** : Attempting to withdraw iron
09:08:38 AM : **** : Start Spot: 0
09:08:38 AM : **** : found with TPA
text: ron ore
09:08:47 AM : **** : Move Check: False
09:08:47 AM : **** : Found: False
09:08:47 AM : **** : Spot: 0
09:08:47 AM : **** : 223, 155
09:08:47 AM : **** : Attempting to withdraw iron

Harry

2009-06-27 10:29:49

Though it is the members section, bugger, you might still want to edit out your usernames…

And looks sexy RM, not going to run, as I do not do RS, but nice code anyways. :D

Sir R. M8gic1an

2009-06-27 13:53:50

Wow, thank you all for the fast feedback. Excelent suggestions HyperSecret! I guess the bar counting being off would have to do something with the DTM, but i'll have a good look into it.

bugger0001 thanks for the amazing report and letting me know of that failure in the script. Surprised and happy to see someone with so few posts use my script :)

Nava, cannonballs will come in version 1.00, as well as gold and silver crafting.

Zazs, no, rev #36 isn't out, but i know that it will be compatible with rev #36 and that it isn't with rev #35, so i just put that there for those who do not use the OpenSVN :p

Also, i'll add a list with profit / bar

~RM

Sir R. M8gic1an

2009-06-27 18:14:49

Uploaded 0.65

Fixed the DTMs Issue.
Fixed the Counting.
Fixed the standing around if no ores
Fixed Coal color (added more tol)

Added Ore DTM, now in bank it'll only check if it really is an ore IF it find the color AND the dtm
Added a failsafe to Ring of Forging boolean. If you aren't smelting iron it'll assume you just forgot it and set it to false for you.

~RM

Sir R. M8gic1an

2009-06-28 01:35:39

[php]
[===================================================]
[ RM AK Smelter 0.65 ]
[ by Rasta Magician ]
[===================================================]
[ Time Running : 5 Hours, 33 Minutes And 38 Seconds ]
[ Loads : 210 ]
[===================================================]
[ RM AK Smelter 0.65 ]
[===================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ aoti | True | 04:35:04 | 210 | | 1048 ]
[=================================================]
[/php]

here is my afternoon proggy… then my net had a huge lag and rs went completly black so it stopped…. oh well it was a nice run, mith bars :)

~RM

bugger0001

2009-06-29 20:06:38

Dang, I lost a proggie, but it wasn't anything special, maybe an hour or so. I noticed only one thing: I was making steel bars and had exact amount of ores for full loads. I had placed my coal right next to iron ores and then when it had only 9 iron ores and 18 coal ores, it withdrew the iron, but failed to get the coal as it had been shifted one spot towards the beginning of the bank. Therefore it didn't finish the last load :p

Phran6

2009-06-29 23:43:29

what bether money per hour ? and what best exp per hour ?

Sir R. M8gic1an

2009-06-30 00:59:02

From: francishelie
what bether money per hour ? and what best exp per hour ?


best xp/h : gold but it makes a loss of 200 per bar
2: iron with Ring of Forging is the best option for xp/money
3: steel / mith are about even i'd say.

~RM

XcanadamanX

2009-06-30 01:28:26

on my script. mith is higher xp/hr than steel. not by much though

cycrosism

2009-06-30 06:31:00

[==================================================]
[ RM AK Smelter 0.65 ]
[ by Rasta Magician ]
[==================================================]
[ Time Running : 1 Hours, 5 Minutes And 10 Seconds ]
[ Loads : 23 ]
[==================================================]
[ RM AK Smelter 0.65 ]
[==================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ ert | True | 00:31:31 | 23 | | 319 ]
[=================================================]

I set it to smelt 640 iron ores. I came back to my computer to see it withdrawing and depositing 26 iron over and over, maybe some sort of a fail safe?

edit - this is what it said in my debug:

12:28:00 PM : * : Attempting to withdraw iron
12:28:00 PM : * : Start Spot: 38
12:28:00 PM : * : found with TPA
12:28:02 PM : * : 7, 3
12:28:02 PM : * : spot <> 0 withdraw
12:28:02 PM : * : Found: True
12:28:02 PM : * : Spot: 38
12:28:02 PM : * : 7, 3
InvCount: 26
12:28:05 PM : * : Attempting to withdraw iron
12:28:05 PM : * : Start Spot: 38
12:28:05 PM : * : found with TPA

Very good script btw :)

Sir R. M8gic1an

2009-06-30 10:10:49

From: cycrosism
[==================================================]
[ RM AK Smelter 0.65 ]
[ by Rasta Magician ]
[==================================================]
[ Time Running : 1 Hours, 5 Minutes And 10 Seconds ]
[ Loads : 23 ]
[==================================================]
[ RM AK Smelter 0.65 ]
[==================================================]
[=================================================]
[ Nick | Active | Worked | Banked | Rand | bars ]
[=================================================]
[ ert | True | 00:31:31 | 23 | | 319 ]
[=================================================]

I set it to smelt 640 iron ores. I came back to my computer to see it withdrawing and depositing 26 iron over and over, maybe some sort of a fail safe?

edit - this is what it said in my debug:

12:28:00 PM : * : Attempting to withdraw iron
12:28:00 PM : * : Start Spot: 38
12:28:00 PM : * : found with TPA
12:28:02 PM : * : 7, 3
12:28:02 PM : * : spot <> 0 withdraw
12:28:02 PM : * : Found: True
12:28:02 PM : * : Spot: 38
12:28:02 PM : * : 7, 3
InvCount: 26
12:28:05 PM : * : Attempting to withdraw iron
12:28:05 PM : * : Start Spot: 38
12:28:05 PM : * : found with TPA

Very good script btw :)


err…. why was it withdrawing 26, it's supposed to withdraw 28? Did you have no iron left or something?

~RM

Sir R. M8gic1an

2009-06-30 11:20:50

Uploaded a new version. Much faster walking, as it is always thinking of the next step. Also, the detection of all ores has been improved. It now logs out if there are ores in bank but not enough for a full load. Multiplayer is fail, i'll have to fix that. The progress report now shows xp/h and gp/h.

[php]
[==========================================]
[ RM AK Smelter 0.70 ]
[ by Rasta Magician ]
[==========================================]
[ Time Running : 27 Minutes And 21 Seconds ]
[ Loads : 22 ]
[==========================================]
[ RM AK Smelter 0.70 ]
[==========================================]
[==============================================================================]
[ Nick | Active | Worked | Banked | Rand | bars | profit/h | xp/h | Bar Type ]
[==============================================================================]
[ aoti | True | 00:26:24 | 22 | | 110 | 56523 | 7470 | mithril ]
[==============================================================================]
[/php]

just a small proggy from when i woke up till i posted the update.

Sexiest of all is, i won't post any more updates. The script will download them for you, so please allow the script to access http://mendesdd55.webs.com/rmaksmelter.htm ; It only needs to access it once to check the version, and it'll need to access a series of files on your computer if the script is outdated.

No need to worry, all is haxx free :p

~RM

DaWu

2009-07-02 01:33:09

Looks nice, might test it someday :p

ZephyrsFury

2009-07-06 14:56:03

Started smelting some bronze and steel bars. Working very well so far. :D Only problem is your BankBankers function isn't checking for the PinScreen and isn't entering the pin.

cycrosism

2009-07-08 07:47:16

[====================================]
[ RM AK Smelter 0.70 ]
[ by Rasta Magician ]
[====================================]
[ Time Running : 3 Hours, 24 Seconds ]
[ Loads : 71 ]
[====================================]
[ RM AK Smelter 0.70 ]
[====================================]
[========================]
[ ert ]
[ Active : True ]
[ Worked : 02h 39m 25s ]
[ Banked : 71 ]
[ Random : ]
[ bars : 1002 ]
[ profit/h : -9656 ]
[ xp/h : -888 ]
[========================]

Phran6

2009-07-08 19:35:37

[=========================================]
[ RM AK Smelter 0.70 ]
[ by Rasta Magician ]
[=========================================]
[ Time Running : 52 Minutes And 9 Seconds ]
[ Loads : 34 ]
[=========================================]
[ RM AK Smelter 0.70 ]
[=========================================]
[==============================================================================]
[ Nick | Active | Worked | Banked | Rand | bars | profit/h | xp/h | Bar Type ]
[==============================================================================]
[ ario | True | 00:46:46 | 34 | | 306 | 58800 | 6860 | steel ]
[==============================================================================]

but it seem to mouse angle the majority of the time, it oculd fail sometime.

Sir R. M8gic1an

2009-07-08 20:06:31

From: francishelie
[=========================================]
[ RM AK Smelter 0.70 ]
[ by Rasta Magician ]
[=========================================]
[ Time Running : 52 Minutes And 9 Seconds ]
[ Loads : 34 ]
[=========================================]
[ RM AK Smelter 0.70 ]
[=========================================]
[==============================================================================]
[ Nick | Active | Worked | Banked | Rand | bars | profit/h | xp/h | Bar Type ]
[==============================================================================]
[ ario | True | 00:46:46 | 34 | | 306 | 58800 | 6860 | steel ]
[==============================================================================]

but it seem to mouse angle the majority of the time, it oculd fail sometime.


haha, not most of the time, it uses MouseAngle ALL of the time :p And as you can see it still got 8h+ proggies ;) Don't worry, it's absolutely safe, and it contains a failsafe in itself, as it won't mouse angle more than two times in a row, and it is constantly checking for either the bank color or the furnace color, and as soon as it finds it on the MM it clicks it.

~RM

Phran6

2009-07-08 21:17:14

okay nice :) i just bought 10k iron ore to smelt, ill post other progress soon. i hope lest update didnt broken all script :(

bugger0001

2009-07-09 01:16:26

Tbh, the MouseAngle is off quite often(not in ToFurnace, but in ToBank, yes). I saw it click a few times in a row NW just outside of the bank, then clicked the bank symbol and managed to find the bank and went on. The first times I ran it I didn't notice it, but the last run it kind of caught my attention :p

cycrosism

2009-07-12 18:44:44

Would be very grateful if you could update this to work with the new jagex update and all, was going to auto some iron but it doesn't work,

** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**

Get that error a lot of times. Looking forward to the new version :D

Sir R. M8gic1an

2009-07-12 20:22:39

From: cycrosism
Would be very grateful if you could update this to work with the new jagex update and all, was going to auto some iron but it doesn't work,

** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**

Get that error a lot of times. Looking forward to the new version :D


That is not an error, it is a warning from SRL ;) i'll update it wen i have time :)

~RM

Sir R. M8gic1an

2009-07-13 00:33:55

Updated!


You script should automatically download the new version. Check the debug box until it says "script updated" and then check your scripts folder, RM AK Smelter 0.73.scar should be in there ;)

~RM

Phran6

2009-07-13 07:36:22

i still get error with new vertion i cant find what wrong.
** Warning in GameTab/TabExists: GameTab/TabExists(2) is now GameTab/TabExists(tab_Stats). Change this in your script! Use these constants from now on.**
** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**
** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**
[Runtime Error] : Exception: Could not convert variant of type (String) into type (Double) in line 686 in script C:\Documents and Settings…

Sir R. M8gic1an

2009-07-13 14:54:01

From: francishelie
i still get error with new vertion i cant find what wrong.
** Warning in GameTab/TabExists: GameTab/TabExists(2) is now GameTab/TabExists(tab_Stats). Change this in your script! Use these constants from now on.**
** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**
** Warning in GameTab/TabExists: GameTab/TabExists(5) is now GameTab/TabExists(tab_Equip). Change this in your script! Use these constants from now on.**
[Runtime Error] : Exception: Could not convert variant of type (String) into type (Double) in line 686 in script C:\Documents and Settings…


It is a warning, not an error…

edit: Also, you'll need Scar 3.21 Alpha because of the UpText

~RM

Phran6

2009-07-13 23:20:31

i have it and still have the error

cycrosism

2009-07-14 07:23:50

It right clicks the ores but doesnt withdraw

bugger0001

2009-07-15 14:41:18

It's ChooseOptionMultiEx that's off a bit…
Haven't debugged it yet, but I have a rough guess what's the problem :p

EDIT: Well, here's a quick solution to get it working: every each one of you has to get a color of the text in option menu in bank. Then we can calculate the new color for the ChooseOptionMultiEx for 'action' or 'player' options. I managed to get mine going by replacing the current color of 'action' with this: 9812166, but I think it's not a good one, as it might need more than 3 tolerance to go with all the different colors(if there are multiple ones :p).

Ok, here's a guick fix to get ChooseOptionMultiEx going:
  • open text.scar
  • find ChooseOptionMultiEx
  • find the line where it says: 'Colors := [..,..,..,..,..];'
  • replace the first color with this one: 9812166
  • voilla, you're good to go!

3Garrett3

2009-07-18 17:50:41

Is this still working? :\

Sir R. M8gic1an

2009-07-18 18:44:20

From: 3Garrett3
Is this still working? :\


yes it does, as long as you use the new scar 3.15b OR scar 3.21+

~RM

Phran6

2009-07-19 08:45:36

im getting that error when i try to use ROF i dont know how to fix it
[Runtime Error] : Exception: Could not convert variant of type (String) ……\SCAR 3.20\includes\SRL/SRL/Core/GameTab.scar

and without that it does withdraw item, it right click it and .. nothing.

Sir R. M8gic1an

2009-07-19 15:12:56

From: francishelie
im getting that error when i try to use ROF i dont know how to fix it
[Runtime Error] : Exception: Could not convert variant of type (String) ……\SCAR 3.20\includes\SRL/SRL/Core/GameTab.scar

and without that it does withdraw item, it right click it and .. nothing.


perhaps post the LINE where it happens…?

~RM

Daniel

2009-07-19 17:18:13

From: francishelie
im getting that error when i try to use ROF i dont know how to fix it
[Runtime Error] : Exception: Could not convert variant of type (String) ……\SCAR 3.20\includes\SRL/SRL/Core/GameTab.scar

and without that it does withdraw item, it right click it and .. nothing.

Read my tutorial specific on Variants (in my sig).

That error means that it cannot convert, oh let's just say: a string to an integer; since the string isn't numeric. ;)

3Garrett3

2009-07-19 19:03:09

RM. So I am the only one that it takes about 5 tries to withdraw the right ores, then it fails, or if I'm lucky it walks past the scimmy shop?

I have 3.21 and yesterday I downloaded the open dev srl.

Phran6

2009-07-20 00:36:24

me too it do that.

RM:in line 684
[Runtime Error] : Exception: Could not convert variant of type (String) into type (Double) in line 684 in script C:\Documents and Settings\CATHY\Mes documents\Dossier Francis\SCAR 3.21\includes\SRL/SRL/Core/GameTab.scar

3Garrett3

2009-07-23 18:32:44

Well at least it's not only me.

cycrosism

2009-10-10 21:31:30

Is this script still working? Is it going to be updated?

YoHoJo

2009-10-11 02:33:52

From: cycrosism
Is this script still working? Is it going to be updated?


1) Run it and see for yourself.
2) Probably, but it'll take a while as hes in College now and very busy.

cycrosism

2009-10-11 05:08:34

I did run it myself, it didn't compile that's why I was wondering if it will be updated

Rubix

2009-10-11 11:37:59

From: cycrosism
I did run it myself, it didn't compile that's why I was wondering if it will be updated


You're an SRL member, you SHOULD be able to update it to the point where it will at least compile, and then go from there.

Sir R. M8gic1an

2009-10-11 12:15:02

From: Rubix
You're an SRL member, you SHOULD be able to update it to the point where it will at least compile, and then go from there.


Agreed, making it compile shouldn't be hard, and then maybe fixing a couple Autocolors shouldn't be a big deal either…

~RM

3Garrett3

2009-10-11 14:02:37

Or use another script. Others are working..