SRL Archive - RS3 Outdated / Broken Scripts

Al Kharid Smelter - Iron man


Iron Man

2008-11-17 03:07:22

Al Kharid Smelter



This turns ores into bars, from Bronze-Rune except for Blurite. If there's a demand for Cannonballs I will make it do that as well.

This script uses color, not reflection.

Credits:
  • munk for ScriptResume (showCurrentScreen) and the idea for walking.


Also, please tell me if there is an incorrect DTM (if it doesn't find the ore), or if walking messes up, or any other feedback which I can improve myself on.

Top Progress Report:
[php]
Al Kharid Smelter ~ Iron man
——————————————————————–
Player[0]: luss. Active: True. Bronze Bars Smelted: 2996. leaving bank.
Player[1]: brhi. Active: True. Bronze Bars Smelted: 2968. leaving bank.
Player[2]: este. Active: False. Bronze Bars Smelted: 2856. failed entering bank. //Because my computer lagged from me doing lotsa other things :(
…………………………………………………………..
Ran for a total of 16 Hours, 4 Minutes and 25 Seconds //Stopped manually
Total Bars Smelted: 8820
Loads Done: 527
Useless banked times (caused by bugs in script): 1
——————————————————————–
[/php]

On a side note, I do not wish to compete with Narcle or whatever, I simply wanted to make a script since I was/am bored.

I recommend only pausing and resuming the script if your using S.M.A.R.T since it will show a debug screen.

A log of downloads:

Al Kharid Smelter 0.01c.scar (22.8 KB, 9 views)
Al Kharid Smelter 0.02.scar (23.0 KB, 8 views)
File Type: scar Al Kharid Smelter 0.03.scar (23.4 KB, 6 views)
Al Kharid Smelter 0.03b.scar (23.0 KB, 13 views)

Narcle

2008-11-17 06:28:23

On a side note, I do not wish to compete with Narcle or whatever, I simply wanted to make a script since I was/am bored.

Bring it on! Lets do it! Hehe ;)

Edit:
Btw I think I mentioned it to you on IRC, but the DDTM color switching is brilliant.

foxton

2008-11-17 12:40:07

Doest work to me trying steel ores

"[Runtime Error] : Exception: Access violation at address 006D7C8A in module 'scar.exe'. Read of address 03734B60 in line 413 in script "

Iron Man

2008-11-17 17:55:34

I'll check into that foxton (fixed as you read my EDIT), as for now I'm still running this but this is how it's going so far: [php] Al Kharid Smelter ~ Iron man
——————————————————————–
Player[0]: luss. Active: True. Bronze Bars Smelted: 2422. bank.
Player[1]: brhi. Active: True. Bronze Bars Smelted: 2408. leaving bank.
Player[2]: este. Active: True. Bronze Bars Smelted: 2408. leaving bank.
…………………………………………………………..
Ran for a total of 13 Hours, 12 Minutes and 9 Seconds
Total Bars Smelted: 7238
Loads Done: 436
Useless banked times (caused by bugs in script): 1
——————————————————————–[/php]


EDIT: Solved it, uploaded 0.01b.

EDIT2:
Bring it on!
like Donkey Kong.

foxton

2008-11-17 21:06:38

Another error:

Failed when compiling
Line 245: [Error] (16739:9): Unknown identifier 'OreDDTM_' in script

Iron Man

2008-11-17 21:21:36

Change line 246 to:
Ore2 := Ore_DDTM(2505017);

EDIT: Or download 0.01c. I actually compiled this one first since I'm not running it anymore so I know it compiles. :D

TViYH

2008-11-18 21:46:44

Didn't test. However, I like:

DDTMs, Good ANTIBANZ0RPLAWKZ, Multiplayer, Custom Procedures, Walking (take blind click out, use ddtms or rrw [ftw]).

XcanadamanX

2008-11-18 22:47:52

or you could use some trig walking :P

but it looked good to me

Iron Man

2008-11-19 00:23:02

From: TViYH
Didn't test. However, I like:

DDTMs, Good ANTIBANZ0RPLAWKZ, Multiplayer, Custom Procedures, Walking (take blind click out, use ddtms or rrw [ftw]).


Meh.. RadialWalk fails because FindSandColor fails for that area. DDTM's would be a challenge to find a good mainpoint etc and it would probably be a sand mainpoint and same thing, and this walking works decent itself anyways.

From: XcanadamanX
or you could use some trig walking :P

but it looked good to me


Thank you.

Yoast

2008-11-19 11:24:46

Looking good.. but one tiny annoyance: Wont let me use pins :(

TViYH

2008-11-19 13:13:38

Why can't you use sand as the mainpoint, then use cactuses, building edges, etc. as subpoints?

NiCbaZ

2008-11-19 15:31:38

Whats wrong with a random blind click, Lots of people use them, Wizzup in his ess miner, fr0zon s0ul ..

Nice script :)

pahkina

2008-11-19 15:50:19

From: NiCbaZ
Whats wrong with a random blind click, Lots of people use them, Wizzup in his ess miner, fr0zon s0ul ..

Nice script :)



CONGRATS! FOR 100,000'th POST
NiCbaZ
ON THE JUNIOR MEMBER SCRIPTS FORUMPLACE!
. nice script anyway! even tho havent tested it, but anyway ! ^

Iron Man

2008-11-19 18:46:38

From: Yoast
Looking good.. but one tiny annoyance: Wont let me use pins :(


Uploaded 0.02 and it lets you use pins. :) (It might have other updates that I forgot about too)

From: TViYH
Why can't you use sand as the mainpoint, then use cactuses, building edges, etc. as subpoints?


I said before, the FindSandColor in SRL fails sometimes, because sand color varies a lot. Also, walking is working alright at the moment anyways.

From: NiCbaZ
Whats wrong with a random blind click, Lots of people use them, Wizzup in his ess miner, fr0zon s0ul ..

Nice script :)


Thank you, and yes I don't find a blink click to be bad in this instance, since if it doesn't find it after it clicks there it will log out and nextplayer(false). I might add a slight bit more amount of randomness in the next upload.

From: pahkina
CONGRATS! FOR 100,000'th POST
NiCbaZ
ON THE JUNIOR MEMBER SCRIPTS FORUMPLACE!
. nice script anyway! even tho havent tested it, but anyway ! ^


Hopefully you can. ;)

TViYH

2008-11-19 19:28:58

So try and get all of the possible sand color variations, and make your own autocolor :)

I did it with the road at Karamja. It varies from bright green to very dark brown.

Iron Man

2008-11-19 19:30:12

From: TViYH
So try and get all of the possible sand color variations, and make your own autocolor :)

I did it with the road at Karamja. It varies from bright green to very dark brown.


If it's not broken why fix it?:rolleyes:

TViYH

2008-11-19 19:34:50

Instead of blindclicking, you should use a SOLID walking procedure. Ex/ RRW-DTMs-Symbols-DDTMs.

XcanadamanX

2008-11-19 19:39:14

im just wondering why you use sand colour when there are colours that stay static for the whole time you are logged in (and usually after you log in and out). what im talking about is the cactus colour…it is static and it is easy to auto colour

Iron Man

2008-11-19 20:02:35

From: TViYH
Instead of blindclicking, you should use a SOLID walking procedure. Ex/ RRW-DTMs-Symbols-DDTMs.



And I do, the blind click is the failsafe :)

From: XcanadamanX
im just wondering why you use sand colour when there are colours that stay static for the whole time you are logged in (and usually after you log in and out). what im talking about is the cactus colour…it is static and it is easy to auto colour


Because it works? Hmm.. I might if there tends to be bugs in the walking or some other reason.

XcanadamanX

2008-11-20 17:53:31

thats a damn good reason :P i was just confused because the cactus' seems so obvious of a way to use…

Iron Man

2008-11-21 01:05:26

From: XcanadamanX
thats a damn good reason :P i was just confused because the cactus' seems so obvious of a way to use…


Yes it is a good reason :D. Well the cactus was the first way I was thinking of.. but things just seemed to work otherwise. :)

ss23

2008-11-21 04:10:29

So now I will look through our IRC conversation and paste it all here.

First of all, thats such an iccy main loop!
begin
Info;
SetupSRL;
ScriptID := '900';
ActivateClient;
PlayerSetup;
MarkTime(Players[CurrentPlayer].Integers[3]);
If not(Loggedin) then LoginPlayer;
Setup;
Repeat
FindNormalRandoms;
Case Players[CurrentPlayer].Loc of
'Bank' :
Begin
Progy;
Bank;
EndBank;
WithdrawEss;
end;
'WTA' :
Begin
WalkToAltar;
MMAltar;
FindNormalRandoms;
EnterAltar;
end;
'InAltar' :
Begin
CraftAltar;
FindNormalRandoms;
ExitAltar;
end;
'OutsideAltar' : NewWalkToBank;
else SwitchPlayers;
end;
If Players[CurrentPlayer].Active = False then SwitchPlayers;
Until(PlayersActive < 1)
end.
Now THAT is a sexy main loop :P. Not that theres anything wrong with yours, just something I saw that I didn't quite like :P

Players[0].Strings[0] := 'steel'; //bronze, iron, silver, steel, gold, mithril, adamant, rune
You could try adding an 'all' option. It could try smelting Rune, then Mith, etc.

You can include change TotalBars, LoadsDone to a i = 0 to playeramount for your proggy, means cleaner code etc
Loads can be .Integer[2] or w/e too

And thats all I can remember, sexy script though :P

XcanadamanX

2008-11-21 15:25:30


Players[0].Strings[0] := 'steel'; //bronze, iron, silver, steel, gold, mithril, adamant, rune
You could try adding an 'all' option. It could try smelting Rune, then Mith, etc.


i donno about you but i have never smelted more than one kind of bar at a time.

ss23

2008-11-22 05:56:04

I mean it searches you bank for ores to smelt, starting with rune. This way if you have a whole heap of various ores you can get them all smelted at once, rather then setting up the script for the same player for each ore you want smelted, it wouldn't be insanely hard to implement

Iron Man

2008-11-22 22:09:21

0.03 released, uses a record for the bars (I think I used them right).

As for 'all' option, I may implement that in another version, maybe.

XcanadamanX

2008-11-23 15:54:56

haha thats funny because my smelter that i am updating has a type for the bars lol. weird.

Iron Man

2008-11-23 16:56:34

From: XcanadamanX
haha thats funny because my smelter that i am updating has a type for the bars lol. weird.



Yeah… Lee Lok Hin suggested it, and I was going to try to learn them soon anyways, so I did it. So, your becoming active again?

mynameisjoe

2008-11-23 17:11:20

Hmm there appears to be a problem with withdrawing the ore. It right clicks on the ore, but completely misses the "withdraw" options, and move on with no ore in inv.

Iron Man

2008-11-23 17:12:59

I will test & fix that when I get back to my normal computer.


It was working last time I tested this script.


EDIT: Which ore are you using, just wondering.

mynameisjoe

2008-11-23 17:16:55

OK thanks, please post a fixed version when you get to it. Going to smelt some gold.

Iron Man

2008-11-23 17:50:01

From: mynameisjoe
OK thanks, please post a fixed version when you get to it. Going to smelt some gold.


Uploaded 0.03b, it worked for me.

XcanadamanX

2008-11-24 17:45:00

From: Iron man
Yeah… Lee Lok Hin suggested it, and I was going to try to learn them soon anyways, so I did it. So, your becoming active again?


im active when i have some time on my hands

Shaxper

2008-11-25 23:48:45

ran this while i went out tonight. worked really well. i manually stopped it but i got:
Ran for a total of 7 Hours, 57 Minutes and 45 Seconds
Total Bars Smelted: 729
Loads Done: 231

was smelting steel bars btw

Iron Man

2008-11-25 23:53:49

From: Shaxper
ran this while i went out tonight. worked really well. i manually stopped it but i got:
Ran for a total of 7 Hours, 57 Minutes and 45 Seconds
Total Bars Smelted: 729
Loads Done: 231

was smelting steel bars btw



Nice, any player(s) false?

Shaxper

2008-11-26 00:06:32

From: Iron man
Nice, any player(s) false?


umm im not sure. i dont think so. and it was actually more like 2k+ steel bars so something must be wrong with the counter.

Iron Man

2008-11-26 00:09:22

From: Shaxper
umm im not sure. i dont think so. and it was actually more like 2k+ steel bars so something must be wrong with the counter.


Yeah, if it was steel bars it should have been 2079 bars, I will try to fix that sometime.

Shaxper

2008-11-26 00:16:42

From: Iron man
Yeah, if it was steel bars it should have been 2079 bars, I will try to fix that sometime.


its not that big a deal. overall really good script man good job.

Shaxper

2008-11-26 11:03:46

another progress report

Ran for a total of 7 Hours, 30 Minutes and 13 Seconds
Total Bars Smelted: 675
Loads Done: 226
RuneScape has been updated. Script Terminated.

this one was also 2k+ bars.

my only complaint is that the walking is fairly inefficient and kinda slow. manually i can get about 500 bars per hour while this averages about 500 bars per 2 hours.

Iron Man

2008-11-26 18:00:43

From: Shaxper
another progress report

Ran for a total of 7 Hours, 30 Minutes and 13 Seconds
Total Bars Smelted: 675
Loads Done: 226
RuneScape has been updated. Script Terminated.

this one was also 2k+ bars.

my only complaint is that the walking is fairly inefficient and kinda slow. manually i can get about 500 bars per hour while this averages about 500 bars per 2 hours.


I kinda had to make the walking like that to be able to do the type of walking it does, but I can try to see if I can fiddle around with it and get it to go faster. Also, legit will always be faster than a bot.

XcanadamanX

2008-11-26 18:59:06

From: Shaxper

my only complaint is that the walking is fairly inefficient and kinda slow. manually i can get about 500 bars per hour while this averages about 500 bars per 2 hours.


wow back in the day (when i actually played) i used to do 1k steel bars in an hour :P

Iron Man

2008-11-26 19:07:40

From: XcanadamanX
wow back in the day (when i actually played) i used to do 1k steel bars in an hour :P


My script also takes breaks which can go up to 4.2 minutes, and switches players etc which kinda can slow it down a lot compared to legit (most scripts are), but I tried to make this script get less randoms so it can run longer. Also for the breaks, I might use the same break system as my cooker (only break if you have 1 player left) so it will speed it up. (this part of the post was mostly meant to add on to what I forgot to say in my previous one, could of edited, but I hate editing after someone else posts)

But yeah, if you could do 1k steel bar's way back when, you should be still able to now, unless they slowed down the actual making of the bar.

XcanadamanX

2008-11-26 20:04:43

oh mine takes breaks too…i was not saying anything about your smelter just that that person seemed to take a long time to make 500 bars legitly.

Iron Man

2008-11-27 03:32:51

From: XcanadamanX
oh mine takes breaks too…i was not saying anything about your smelter just that that person seemed to take a long time to make 500 bars legitly.


Oh, I meant to add that onto my first post, was going to edit but saw you posted and I don't really like editing after someone posts since no one ever notices it, or at least I never do, sorry if you took offense to it or something.

But after I'm done the project I'm working on I will try to make this walking better and make the script just overall faster.

XcanadamanX

2008-11-27 08:04:01

im just curious but how long, for steel, does it take to do one load? i just want to compare :p

Shaxper

2008-11-28 20:21:34

this script is god. the only time it stops (besides manually) is when runescape updates and you have to reload the page. at least thats the only time it has for me.

Iron Man

2008-11-28 20:23:45

From: XcanadamanX
im just curious but how long, for steel, does it take to do one load? i just want to compare :p


I'll have to re-buy some ores to see, I'll check one day though. :(


From: Shaxper
this script is god. the only time it stops (besides manually) is when runescape updates and you have to reload the page. at least thats the only time it has for me.


Thank you.

Shaxper

2008-11-29 10:03:14

umm now when i run it trying to smelt steel it withdraws 9 iron ores, and then 18 more iron ores. it doesnt detect the coal for some reason now.

Iron Man

2008-11-29 14:28:45

Try 0.03c, it found the correct ones for me with this. They must have changed the colors to be a little bit more the same, so I dropped the tolerance on the DDTM.

Shaxper

2008-11-30 15:12:18

working better now. isnt getting confused with ores.

naryasha

2009-01-17 11:37:53

uhh it starts then gose to click on coal and then click on withdraw "x" amount but then it wont type 18…? same with iron… so it diditn withdraw anything

naryasha

2009-01-17 11:44:53

ok when i tried it 3 more times and finally it withdraw 18 coal and 9 iron and it works now.

doogleswort

2009-02-06 04:37:18

Great script! Only problem I have with it is it only does 5 loads per character.

Is there any way to change this?

- Doogle

Iron Man

2009-02-06 04:42:17

From: doogleswort
Great script! Only problem I have with it is it only does 5 loads per character.

Is there any way to change this?

- Doogle


Ctrl+F "NPT := 7 + random(5);" without the quotations, change the 7 to a higher number (it's in minutes). Although I recommend you don't do this if you want less randoms (which also means the script will have less antiban).

doogleswort

2009-02-06 18:34:13

Thanksf or the quick and accurate reply. I must say, I love this script!

wombocombo

2009-03-21 13:30:49

this script worked great until Jagex fixed the route system. Now it'll try to walk to the furnace and get all messed up :/

naryasha

2009-03-21 17:40:51

it wordk for 2 months and now it doesnt work cause when u click smelt on furnace it clicks to fast and wont smelt bars. just test it out and u'll know wat i mean