SRL Archive - RS3 Outdated / Broken Scripts

AK AIO Smelter


Ian

2013-02-06 16:12:45

Banner by @DannyRS



This script smelts bars at the Al-Kharid Furnace. Please read all setup intructions :)

Location:
  • Start in the Al-Kharid bank.

Features:
  • SixHourFix Support
  • Smelts ALL bars
  • Coalbag support
  • Takes Screenshots of LevelUps

Instructions:
  • If you don't already have one, make a folder in your Simba folder called "Screenshots" (Screenshots of LevelUps will be put here :D)
  • Start player at the AL-Kharid bank
  • Have your inventory empty
  • Have your Primary Ore in your first BankSlot
  • Have your Secondary Ore in your second BankSlot (Coal, or Tin/Copper if smelting bronze)
  • If you are using the CoalBag, have it in your first InvSlot
  • Set the Production Window ON (Right click the XP button)
  • Press Run.


Bank Setup:



Inventory Setup:



Requirements:
  • Coalbag (If using)

Future Updates:
  • Maybe other non-jewellery smeltable things

Enjoy, please post any questions, suggestions, ideas, feedback, proggies, or anything else that you want to

Update Log
+V1.0 released
+V1.1 released - Changed walking from SPS to DTM, Changed which furnace to use, Removed lodestone teleporting.
+V1.2 BETA released - More walking failsafes, added Valentine Heart detection

Silentcore

2013-02-06 16:21:56

This is very nice.. Good Job, I better continue on my scripts which are not even half way..
TIP: awesome!!

Sjoe

2013-02-06 16:22:08

Nice release mate!
U got it done before us :(

Le Jingle

2013-02-06 16:24:31

Nice clean thread layout in my opinion, definitely nice.
Skimmed through the code, looks good too! (them variables lol - could shorten on the Bank proc case statement for mouse x/y's)

Scripts reminds me of Narcle's smelter :p

Any ways,
congrats on release! :)

Cheers,
-Lj

Ian

2013-02-06 16:26:05

From: Silentcore
This is very nice.. Good Job, I better continue on my scripts which are not even half way..
TIP: awesome!!

Thanks Silent! I'm like that with stuff too, started this like a month ago but I ignored it for a while :D
From: Sjoekeloe
Nice release mate!
U got it done before us :(

I didn't know what you guys were going to do with yours so I thought I might as well release mine ;)

Sjoe

2013-02-06 16:29:23

From: BMWxi
Thanks Silent! I'm like that with stuff too, started this like a month ago but I ignored it for a while :D

I didn't know what you guys were going to do with yours so I thought I might as well release mine ;)


Guess I'll have to steal yours now :)

Ian

2013-02-06 16:31:39

From: Le Jingle
Nice clean thread layout in my opinion, definitely nice.
Skimmed through the code, looks good too! (them variables lol - could shorten on the Bank proc case statement for mouse x/y's)

Scripts reminds me of Narcle's smelter :p

Any ways,
congrats on release! :)

Cheers,
-Lj


How could it not remind you of Narcle's, they do the exact same thing :D

And yeah, the smelting procedure used to be huge before I shortened it, I'll probably do the same with the bank one at some point.

DannyRS

2013-02-06 17:13:15

Gratz on another BMWxi release :), and thanks for the mention <3

Stayon

2013-02-06 17:19:18

Been waiting for one of those to pop up! Can't wait to get on this. Looks great!

Ian

2013-02-06 17:25:09

From: DannyRS
Gratz on another BMWxi release :), and thanks for the mention <3

Thanks ;)
From: stayon
Been waiting for one of those to pop up! Can't wait to get on this. Looks great!

Tell me how it goes :D

Stayon

2013-02-06 19:57:04

Trying to run it on my noob. I have done all of the instructions, starting in al kharid bank and it keeps saying unable to find bank and logging me out.

Ian

2013-02-06 20:02:12

From: stayon
Trying to run it on my noob. I have done all of the instructions, starting in al kharid bank and it keeps saying unable to find bank and logging me out.


Could you PM me a screenshot? Thanks :)

Stayon

2013-02-06 20:06:20

From: BMWxi
Could you PM me a screenshot? Thanks :)


So weird.. I manually did one run, re-loaded the script and now it opens the bank just fine LOL. However after the lodestone teleport it literally is just standing at the lodestone.


edit nevermind. I'll send you the screenshot.

Ian

2013-02-06 20:08:48

From: stayon
So weird.. I manually did one run, re-loaded the script and now it opens the bank just fine LOL. However after the lodestone teleport it literally is just standing at the lodestone.


Make sure that your SPS is updated, the paths *should* be fine :)

Stayon

2013-02-06 20:11:18

From: BMWxi
Make sure that your SPS is updated, the paths *should* be fine :)


I forced an update on it, I'll try it again in a sec and see if it was that.



EDIT: Okay i forced an update on SPS, now it banks just fine however it's strange….

Retrieves ores from the bank just fine, walks to the shop furnance,
Then lodestone teleports then walks to the furnance and finally smelts.
When it walks from finishing the smelting process it then walks to the bank,
Then lodestone teleports in the bank, and walks back to the bank.
Then it does it again, never actually banking :X

^ this is all with lodestone set to false.

Gonna set it to true and see if it makes a diff.

Ian

2013-02-06 20:29:39

Yeah, it will lodestone if it thinks that it failed the paths, it should only do that if walking takes more than 30 seconds though… I'll check it over tmr, I might need to change that.

Stayon

2013-02-06 20:33:30

From: BMWxi
Yeah, it will lodestone if it thinks that it failed the paths, it should only do that if walking takes more than 30 seconds though… I'll check it over tmr, I might need to change that.


Alright, however with it set = True now, it will just stand there after it teleports with the lodestone :/

Ian

2013-02-06 20:40:28

From: stayon
Alright, however with it set = True now, it will just stand there after it teleports with the lodestone :/


That would probably be SPS not working then, I think I'll need to change the paths :(

Stayon

2013-02-06 20:49:21

From: BMWxi
That would probably be SPS not working then, I think I'll need to change the paths :(


Might be, because it doesn't pop up an error or anything, just stays stuck on


[+] By BMWxi [+]
================
[] Smelting: bronze (6.2 XP Each)
[] Smithing XP Earned: 0 Per Hour: 0
[] Bars Smelted: 0 Per Hour: 0
[] Total Time: 12 sec
========================================
Lodestone teleporting to the furnace

Ashaman88

2013-02-06 23:58:54

Congrats on release! Was one day planning on making one of these, but looks like no need now!

Gucci

2013-02-07 00:46:47

Congrats on release BMW, before ours ;)

Stayon

2013-02-07 01:46:37

Maybe one of you could run it and help me explain in more depth what's wrong ? >_< I'm not very good.

The Killer

2013-02-07 15:31:36

Gz on release <3
now make it ak aio! ;)

Ian

2013-02-07 20:10:02

From: Ashaman88
Congrats on release! Was one day planning on making one of these, but looks like no need now!

I'm sure you'll have no problem finding another project :D
From: Gucci
Congrats on release BMW, before ours ;)

Thanks, didn't know what you guys had in mind for yours, so thought I might as well :)
From: stayon
Maybe one of you could run it and help me explain in more depth what's wrong ? >_< I'm not very good.

I found the problem, it was using Symbols to find out if it tele'd or not, and when it hadn't found them it assumed it was still teleporting/hadn't teleported. I'm testing a pixelshift system now, working great so far :D
From: The Killer
Gz on release <3
now make it ak aio! ;)


Thanks! Not keen on making do thing other than smelting though because we already have a tanner, cooker, ect.

However, if there is anything you still would like to see that we don't have then definitely make a suggestion :D

Ian

2013-02-10 01:36:50

+V1.1 released - Changed walking from SPS to DTM, Changed which furnace to use, Removed lodestone teleporting.

dstahn236

2013-02-10 15:50:17

Hey,

I don't have a problem getting to the furnace. It smelts but then doesn't return to the bank.

Thanks for the script. :)

Ian

2013-02-10 16:01:11

From: dstahn236
Hey,

I don't have a problem getting to the furnace. It smelts but then doesn't return to the bank.

Thanks for the script. :)


Do you have 1.1? Could you PM me a screenshot of where it got stuck? Thanks :)

sd999444

2013-02-11 12:32:47

put in my info manually so it could log in for me, doesn't seem to want to run. when i log in myself and go to the bank then hit "enable SMART" seems to think i'm at the login screen.

Ian

2013-02-11 13:31:53

Are your graphics settings at fixed, min, max brightness?

dstahn236

2013-02-11 21:26:37

Hey BMWxi. I can't believe I didn't try this before but steel works fine for me. I have been running it for 20 min or and it makes the trip fine. I think it might be something with the addy bars. I'll try some of the other bar types and see if I have an issue.

Ian

2013-02-11 21:42:42

From: dstahn236
Hey BMWxi. I can't believe I didn't try this before but steel works fine for me. I have been running it for 20 min or and it makes the trip fine. I think it might be something with the addy bars. I'll try some of the other bar types and see if I have an issue.


Thanks, maybe I made a typo when adding addy bars, I'll check it out right now! :)

Kampf Gewehr

2013-02-13 15:37:30

Finds the bank just fine when the script is started there, grabs my materials, walks to the furnace, smelts, but it's this return trip to the bank that really seems to have the biggest issue. Whenever I log back into this account its always full of bars, halfway between the furnace and the bank. Run time is anywhere between two minutes and thirty minutes before the bank can't be found and the script ends. I've been chipping away at 2K mithril bar materials, over halfway there. Thanks for the script.

Ian

2013-02-13 15:40:17

From: Kampf Gewehr
Finds the bank just fine when the script is started there, grabs my materials, walks to the furnace, smelts, but it's this return trip to the bank that really seems to have the biggest issue. Whenever I log back into this account its always full of bars, halfway between the furnace and the bank. Run time is anywhere between two minutes and twenty minutes today. I've been chipping away at 2K mithril bar materials, over halfway there. Thanks for the script.


Ok, I definitely need to fix up the paths then. Thanks :)

Will post new version ASAP

Kampf Gewehr

2013-02-13 15:41:54

I also have around 24 screen shots and hours of proggies if you want them my friend

Ian

2013-02-13 16:42:29

From: Kampf Gewehr
I also have around 24 screen shots and hours of proggies if you want them my friend


I'd love to see them :) Maybe you could choose some of the best ones and post them :D

Kampf Gewehr

2013-02-13 17:32:35

[ATTACH=CONFIG]19177[/ATTACH][ATTACH=CONFIG]19178[/ATTACH][ATTACH=CONFIG]19179[/ATTACH][ATTACH=CONFIG]19180[/ATTACH][ATTACH=CONFIG]19181[/ATTACH]

I also noticed that occasionally it will withdraw all coal and no other ores.
The smelter will also bring all the supplies to the furnace, but occasionally will just stand in front of it without making any bars. I have screenies of that as well.

Kampf Gewehr

2013-02-13 17:46:26

Here are also some of my best proggies from this script as well

==============================================
[] Smelting: mithril (30 XP Each)
[] Smithing XP Earned: 2550 Per Hour: 7740
[] Loads: 17 Per Hour: 51
[] Bars Smelted: 85 Per Hour: 258
[] Total Time: 19 min 46 sec
==============================================

==============================================
[] Smelting: mithril (30 XP Each)
[] Smithing XP Earned: 3300 Per Hour: 8372
[] Loads: 22 Per Hour: 55
[] Bars Smelted: 110 Per Hour: 279
[] Total Time: 23 min 39 sec
==============================================

==============================================
[] Smelting: mithril (30 XP Each)
[] Smithing XP Earned: 5550 Per Hour: 8384
[] Loads: 37 Per Hour: 55
[] Bars Smelted: 185 Per Hour: 279
[] Total Time: 39 min 43 sec
==============================================
Unable to find bank, saving a screenshot to C:\Simba\Screenshots and logging out. Please PM the screenshot to BMWxi so he can add the bank colors :)

Ian

2013-02-13 18:16:05

From: Kampf Gewehr
[ATTACH=CONFIG]19177[/ATTACH][ATTACH=CONFIG]19178[/ATTACH][ATTACH=CONFIG]19179[/ATTACH][ATTACH=CONFIG]19180[/ATTACH][ATTACH=CONFIG]19181[/ATTACH]

I also noticed that occasionally it will withdraw all coal and no other ores.
The smelter will also bring all the supplies to the furnace, but occasionally will just stand in front of it without making any bars. I have screenies of that as well.


Thanks for these :) I'll make new walking paths for the way back from the furnace if that's the only time it messed up. Does withdrawing all coal break it, does it recover? Do you have the debug from when it was standing in front of the furnace and not smelting bars? That would be useful.

Kampf Gewehr

2013-02-13 18:54:03

Just got a 52 minute run :)
==============================================
[] Smelting: mithril (30 XP Each)
[] Smithing XP Earned: 7350 Per Hour: 8392
[] Loads: 49 Per Hour: 55
[] Bars Smelted: 245 Per Hour: 279
[] Total Time: 52 min 33 sec
==============================================
Unable to find bank, saving a screenshot to C:\Simba\Screenshots and logging out. Please PM the screenshot to BMWxi so he can add the bank colors :)


Sometimes it tells me "Could not smelt steel. Terminating", but I'm smelting mithril. This is generally what pops up when I get a termination at the furnace. "Unable to find bank, logging out.", and "Unable to find bank, saving a screenshot to C:\Simba\Screenshots and logging out. Please PM the screenshot to BMWxi so he can add the bank colors :)" are the only other debugs I have gotten.

And withdrawing only coal breaks it, does not recover. It runs all the way to the furnace full of only coal and is like WTF MATE and breaks.

Ian

2013-02-13 19:04:21

From: Kampf Gewehr


Sometimes it tells me "Could not smelt steel. Terminating", but I'm smelting mithril. This is generally what pops up when I get a termination at the furnace. "Unable to find bank, logging out.", and "Unable to find bank, saving a screenshot to C:\Simba\Screenshots and logging out. Please PM the screenshot to BMWxi so he can add the bank colors :)" are the only other debugs I have gotten.

And withdrawing only coal breaks it, does not recover. It runs all the way to the furnace full of only coal and is like WTF MATE and breaks.


I'll make it count the coal before finishing banking, so it can recover. No idea about the steel thing, I probably typed that debug message wrong. I'll fix that too. Thanks again for all the information :D

Kampf Gewehr

2013-02-13 19:36:36

You know, maybe with the walking issues, if it gets lost it could just failsafe lodestone teleport to AK, and then walk back to the bank from there or something?

I'll continue to collect more information as I run it.

Ian

2013-02-13 19:47:59

From: Kampf Gewehr
You know, maybe with the walking issues, if it gets lost it could just failsafe lodestone teleport to AK, and then walk back to the bank from there or something?

I'll continue to collect more information as I run it.


Maybe, but if it messes up walking to the bank it's likely to mess up walking from the lodestone. I'll re-add it if I have to though.

Kampf Gewehr

2013-02-13 20:16:20

Another update: It smelted, walked back to the bank, but refused to go to the bank booth and deposit/withdraw. A more rare exception, but it happened. Also, the current Valentines hearts things are NOT causing an issue, they're just collecting in the inventory. Just as I was typing this, my guy stalled on his way from the bank to the furnace as well, failed to find the furnace, and terminated.

One issue that isn't present with your script is that it always lets him finish making his bars. I have used others where you'd put materials in the furnace and then would run away before one or two bars could even finish.

Seems like walking is the biggest issue, with bank/furnace activation being second- sometime's you'll get there, but it doesn't want to do much else but walk there.

Ian

2013-02-13 20:40:28

From: Kampf Gewehr
Another update: It smelted, walked back to the bank, but refused to go to the bank booth and deposit/withdraw. A more rare exception, but it happened. Also, the current Valentines hearts things are NOT causing an issue, they're just collecting in the inventory. Just as I was typing this, my guy stalled on his way from the bank to the furnace as well, failed to find the furnace, and terminated.

One issue that isn't present with your script is that it always lets him finish making his bars. I have used others where you'd put materials in the furnace and then would run away before one or two bars could even finish.

Seems like walking is the biggest issue, with bank/furnace activation being second- sometime's you'll get there, but it doesn't want to do much else but walk there.


Thanks for the details! The hearts might be added to FindNormalRandoms like spin tickets are, but maybe not if they last for only a few weeks. I'll definitely need to fix the walking.

And I don't know how other scripts detect being finished but mine waits until the "Cancel" box is gone, so that seems to be working well :)

Kampf Gewehr

2013-02-13 21:45:59

Yeah this is a great script man. I seem to be averaging a little over 20 mins per run. With a little work on the walking/location detection you'll be set. If you want me to do any testing before you release another version or something, hit me up.

Ian

2013-02-15 19:51:09

I'm trying to have the walking fail while I'm watching, no luck yet :(

E: Got it to fail once tryng to find the second point in the bank path. Restarted with a new point added, No problems yet, and the point I added has been used a few times :D

Currently running, just over an hour again:

sydd131

2013-02-15 22:49:57

i picked up this script roughly this time yesterday, i found a few minor issues with walking, a couple of times it must have been a bit quick trying to smith the ore after clicking the furnace as it was left in the select bar/smelt screen, also found quite a few times it wouldn't withdraw coal..

Solution; objdtm_walkpath's instead of the original walking method (mainly because im a noob and couldn't be bothered going through and trying to change what it had, only have a very basic understanding on that particular form of walking)

a backup for if walking still fails (lodestone and walk to furnace, or bank, depending what its up to)

and its now withdrawing coal twice to be certain it doesn't forget it :p

Pretty good script all in all just has a few minor issues that need fixing!! not that big of a deal, just i generally dont touch runescape during the day even WITH scripts, i'm generally gaming of a day and leave my scripts run over night, so its fairly important that i can run them overnight without them shutting off :p otherwise i may as well be running another script i KNOW will run for days if needed, so i'm atleast making SOME achievements (be it money, exp, whatever, its better then waking up to a script that shut down 2 hours after i fell asleep -.-) :P

Ian

2013-02-15 23:00:57

Thanks for the response, right now I'm going through the walking to make sure it doesn't fail. After that is done I'll get it to check the amount of ores in the inventory as a failsafe.

sydd131

2013-02-15 23:36:00

no worries i just thought i'd chuck it out there, though it may be because i changed the walking or something i'm not really sure (not that i see how changing the walking would cause that, but i changed that before the problem occurred) however it would take around two hours for it to forget the ore and i never actually SAW it do it, i just logged in to find i was at the furnace with 5 mithril but no ore. had it running for 55 minutes odd now and she's still going sweet! its made a couple of walk mistakes that i've noticed but they were corrected by my previously stated backup for the walking. (obviously my path isn't perfect either lol) i'm going to leave it run for a while see how she goes. tonight or tomorrow i'll post a proggie if i can get over 2-3 hours out of it.

edit; i must say though mine is a fair bit slower (I've added a couple of extra waits and stuff, so that doesn't help) as far as i recall, the original was saying it would do a good 280 or more mithril bars per hour (give or take, but i'm pretty sure it was bringing up over 280 if not over 300) now its currently saying 250/h, so a bit slower but hell, it works.

Ian

2013-02-16 17:08:27

Testing again, no errors since I added more DTMs

Also until those pesky hearts are removed there will be banking errors.

Sjoe

2013-02-16 17:40:22

From: BMWxi
Testing again, no errors since I added more DTMs

Also until those pesky hearts are removed there will be banking errors.


U use Deposit(2,8, True)?
try

Deposit(2,28, True)
then check ExistsItem(i) for 2 to 28 // u write this lol
Deposit(2,28,1);

Ian

2013-02-16 22:07:11

From: Sjoekeloe
U use Deposit(2,8, True)?
try

Deposit(2,28, True)
then check ExistsItem(i) for 2 to 28 // u write this lol
Deposit(2,28,1);


Actually what I use is a bit more complicated that that, here are some examples:
For things don't use a coalbag:
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);

For things that do:
InvMouse((RandomRange(2, ((CountItems('dtm', AnyInvBarDTM, [])) +1))), mouse_Right);

I do this so I can randomly choose one of the slots to deposit from, otherwise it would do the same every time.

This can mess up with those dumb valentines if it happens to move to the spot where the valentine is, so to stop that I'd need to do a quick option check to look for a valentine related option. Deposit(2, 28, true) would have this problem too, but it wouldn't know that it had deposited valentines and not bars

JPHamlett

2013-02-21 17:19:12

Just sits there after smelting lol, smelting iron.

Trying a DTM check

Ian

2013-02-21 19:59:59

From: JPHamlett
Just sits there after smelting lol, smelting iron.

Trying a DTM check


Do you have the progress window enabled? (right click the xp button)

If it is enabled, it's probably the paths messing up.

Ghoztflame

2013-02-21 21:03:06

Can you help me out, pretty new to scripting, when I get done Smelting, it just stands there, stuck until game logs me out, wont walk to bank.
[] Smithing XP Earned: 0 Per Hour: 0
[] Loads: 0 Per Hour: 0
[] Bars Smelted: 0 Per Hour: 0
[] Total Time: 1 min 21 sec
==============================================
a
We found the furnace, TPAs are awesome
Smelting Mithril

JPHamlett

2013-02-21 21:16:17

BMX your suggestion fixed it :)


So far its faster than powerbots scripts p/hr :)

Ian

2013-02-21 21:26:45

From: Ghoztflame
Can you help me out, pretty new to scripting, when I get done Smelting, it just stands there, stuck until game logs me out, wont walk to bank.
[] Smithing XP Earned: 0 Per Hour: 0
[] Loads: 0 Per Hour: 0
[] Bars Smelted: 0 Per Hour: 0
[] Total Time: 1 min 21 sec
==============================================
a
We found the furnace, TPAs are awesome
Smelting Mithril


Do you have the progress window enabled? ( right click the xp button)

The paths could also need fixing, although it's worked for me :)

Ghoztflame

2013-02-22 04:56:53

enabled prog window, now it will work for 1-2 trips and either wont find the bank when it gets there or stops halfway between and doesn't find furnace and logs out either way. I have used all your others flawlessly maybe im doing something wrong in setup.

Ian

2013-02-22 09:17:48

From: Ghoztflame
enabled prog window, now it will work for 1-2 trips and either wont find the bank when it gets there or stops halfway between and doesn't find furnace and logs out either way. I have used all your others flawlessly maybe im doing something wrong in setup.

You're probably doing it right, it's the paths I made that arw the problem. I'll post an updated version once I get home :)

JPHamlett

2013-02-22 09:28:24


=========[] AIO AK Smelter 1,1[]=========
[+] By BMWxi [+] Status: Walking to Furnace
==============================================
[] Smelting: iron (12.5 XP Each)
[] Smithing XP Earned: 49308 Per Hour: 8475
[] Loads: 197 Per Hour: 33
[] Bars Smelted: 4109 Per Hour: 706
[] Total Time: 5 hr 49 min 4 sec
==============================================


Works fine for me

Ian

2013-02-22 09:32:59

From: JPHamlett

=========[] AIO AK Smelter 1,1[]=========
[+] By BMWxi [+] Status: Walking to Furnace
==============================================
[] Smelting: iron (12.5 XP Each)
[] Smithing XP Earned: 49308 Per Hour: 8475
[] Loads: 197 Per Hour: 33
[] Bars Smelted: 4109 Per Hour: 706
[] Total Time: 5 hr 49 min 4 sec
==============================================


Works fine for me


I works for me too, but a few people say they get stuck in a specific spot to the bank, so I thought the paths could be buggy.

Ian

2013-02-22 16:49:12

Update! Added better walking failsafes, the script also banks any Valentine Hearts that you may have received while smelting ;)

E:Whoops, forgot I was the last poster

Mat

2013-02-24 07:37:35

One thing I've just picked up on, is it possible to make it work from anywhere? e.g. If I start at furnace, it starts from there.
Mat

Ian

2013-02-24 09:20:28

From: Mat
One thing I've just picked up on, is it possible to make it work from anywhere? e.g. If I start at furnace, it starts from there.
Mat


It could be changed to work like that, yeah. As it is now it needs to start at the bank though.

Kampf Gewehr

2013-02-24 11:55:39

Hey so I fired up the updated version, 1.2beta, and I got this debug message,

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

Then I looked in your script and It had $DEFINE SMART8, so I removed the 8, and now we're in business. Oh yeah and I had to turn the coal bag off because I wasn't using a coal bag. The running seems much smoother now, everything seems a little more refined. We'll see how good a proggie I get out of this run. Thanks for the update BMW.

P.S. I like the debug message that pops up when you find hearts lol

Ian

2013-02-24 12:57:30

From: Kampf Gewehr
Hey so I fired up the updated version, 1.2beta, and I got this debug message,

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

Then I looked in your script and It had $DEFINE SMART8, so I removed the 8, and now we're in business. Oh yeah and I had to turn the coal bag off because I wasn't using a coal bag. The running seems much smoother now, everything seems a little more refined. We'll see how good a proggie I get out of this run. Thanks for the update BMW.

P.S. I like the debug message that pops up when you find hearts lol


I'm glad the update works :)

Do you have SMART 7.2? If you have SMART 8 (which I highly recommend :)) then it should be fine with the 8.

Kampf Gewehr

2013-02-24 13:29:24

I'm pretty sure that I have SMART v8 my friend, but I guess I'll double check. Ran for 22 mins before crapping out at the furnace with an inventory of materials btw. Running attempt 2 currently.

Ian

2013-02-24 13:35:55

From: Kampf Gewehr
I'm pretty sure that I have SMART v8 my friend, but I guess I'll double check. Ran for 22 mins before crapping out at the furnace with an inventory of materials btw. Running attempt 2 currently.


What did the last few lines of the debug say?

Kampf Gewehr

2013-02-24 13:52:42

From: BMWxi
What did the last few lines of the debug say?

Found Coal ore in the Secondary ore slot!
F1a
F2a
We found the furnace, TPAs are awesome
Trying to smelt mithril
Could not smelt mithril. Terminating
Successfully executed

Ian

2013-02-24 14:01:11

From: Kampf Gewehr
Found Coal ore in the Secondary ore slot!
F1a
F2a
We found the furnace, TPAs are awesome
Trying to smelt mithril
Could not smelt mithril. Terminating
Successfully executed


Thanks. That means that when it looked for

FindColor(BBx, BBy, 1290732, Bxs, Bys, Bxe, Bye)

it didn't find it.

On another script I'm working on I've started using FindColorTolerance right there because I had a problem with that too, I forgot I used it in this too, so I should change that in this one as well.

I'll update it soon, the color doesn't usually change though

Kampf Gewehr

2013-02-24 14:26:51

From: BMWxi
Thanks. That means that when it looked for

FindColor(BBx, BBy, 1290732, Bxs, Bys, Bxe, Bye)

it didn't find it.

On another script I'm working on I've started using FindColorTolerance right there because I had a problem with that too, I forgot I used it in this too, so I should change that in this one as well.

I'll update it soon, the color doesn't usually change though


I also just failed to make it to the furnace, stopped right outside the cooking place just south of the furnace and north of the bank, giving me the debug: We have failed to find the furnace 1 times in a row.
Trying 9 more times until Termination.
We have failed to find the furnace 2 times in a row.
Trying 8 more times until Termination.
We have failed to find the furnace 3 times in a row.
Trying 7 more times until Termination.
We have failed to find the furnace 4 times in a row.
Trying 6 more times until Termination.
We have failed to find the furnace 5 times in a row.
Trying 5 more times until Termination.
We have failed to find the furnace 6 times in a row.
Trying 4 more times until Termination.
We have failed to find the furnace 7 times in a row.
Trying 3 more times until Termination.
We have failed to find the furnace 8 times in a row.
Trying 2 more times until Termination.
We have failed to find the furnace 9 times in a row.
Trying 1 more times until Termination.
We have failed to find the furnace 10 times in a row.
Trying 0 more times until Termination.
We have failed to find the furnace 11 times in a row.
Trying -1 more times until Termination.
Failed to find the furnace too many times, logging out.
Successfully executed.
The following DTMs were not freed: [6]

Kampf Gewehr

2013-02-24 14:46:49

Dang, withdrew Mithril ore right now but not coal? Funny because it says that it found the coal in the secondary ore slot…

Ian

2013-02-25 01:22:59

From: Kampf Gewehr
I also just failed to make it to the furnace, stopped right outside the cooking place just south of the furnace and north of the bank, giving me the debug: We have failed to find the furnace 1 times in a row.
Trying 9 more times until Termination.
We have failed to find the furnace 2 times in a row.
Trying 8 more times until Termination.
We have failed to find the furnace 3 times in a row.
Trying 7 more times until Termination.
We have failed to find the furnace 4 times in a row.
Trying 6 more times until Termination.
We have failed to find the furnace 5 times in a row.
Trying 5 more times until Termination.
We have failed to find the furnace 6 times in a row.
Trying 4 more times until Termination.
We have failed to find the furnace 7 times in a row.
Trying 3 more times until Termination.
We have failed to find the furnace 8 times in a row.
Trying 2 more times until Termination.
We have failed to find the furnace 9 times in a row.
Trying 1 more times until Termination.
We have failed to find the furnace 10 times in a row.
Trying 0 more times until Termination.
We have failed to find the furnace 11 times in a row.
Trying -1 more times until Termination.
Failed to find the furnace too many times, logging out.
Successfully executed.
The following DTMs were not freed: [6]

Darn these sandy places :p I'll fix that up again soon.
From: Kampf Gewehr
Dang, withdrew Mithril ore right now but not coal? Funny because it says that it found the coal in the secondary ore slot…

It looks for the coal ore DTM in the secondary bank slot, so if it finds it it will say it finds it. Are you using a coalbag? If you are it would withdraw 27 coal, put it in the coalbag, withraw the amount of mithril, then fill the rest of of the inv with coal. If you're not using a coalbag, it will withdraw 5 mithril then fill the inv with coal.

Can you remember which it did? Thanks :)

Kampf Gewehr

2013-02-25 08:33:33

I am not using a coal bag, and I made the script say False next to coal bag. I always take put five mithril and then usually fill the inventory with coal. I was able to rune for like 2-3 hours yesterday, other times I'll make it twenty minutes. It's getting hung up a lot less though so far, your fixes really improved the usability of this script.

YerAwsum

2013-02-25 12:16:11

I get this error:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

Kampf Gewehr

2013-02-25 13:08:59

From: YerAwsum
I get this error:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.


You are most likely using smart 7.2, while this script was written as if the user was running smart 8. To remedy this, check out line 3 of the code. You should see ($DEFINE SMART8). simply delete the 8. It should now read ($DEFINE SMART). Restart the script. If this doesn't fix it, save the changes, close simba and any smart windows, reopon simba and the script, and hit run. Hope this helps.

Ian

2013-02-25 19:30:03

From: Kampf Gewehr
I am not using a coal bag, and I made the script say False next to coal bag. I always take put five mithril and then usually fill the inventory with coal. I was able to rune for like 2-3 hours yesterday, other times I'll make it twenty minutes. It's getting hung up a lot less though so far, your fixes really improved the usability of this script.

I'm glad it's improving, was the walking the problem again or was it ore related?

Kampf Gewehr

2013-02-25 21:26:59

Ore and walking has been kicking my ass. I always get stuck just north of the bank and just south of the cooking spot.

dstahn236

2013-02-26 03:30:41

This version seems much more stable. I still have a few problems with steel though. It occasionally left clicks one steel bar and deposits it. The draws too much coal. This eventually makes the whole inv into coal and trips the logout. Mithril, addy and rune are about perfect though, they are now returning to the bank after smelting and I haven't noticed the same problem with those that I see with steel. Thanks again for the script man. Hope this helps.

p.s. I haven't had the walking problems others seem to be having not sure why but I won't complain.

Kampf Gewehr

2013-02-26 10:49:44

From: BMWxi
I'm glad it's improving, was the walking the problem again or was it ore related?


Just had an issue with the ore, I withdrew 6 instead of 5 for mithril? this has never happened before… so weird

Kampf Gewehr

2013-02-26 10:51:34

From: dstahn236
This version seems much more stable. I still have a few problems with steel though. It occasionally left clicks one steel bar and deposits it. The draws too much coal. This eventually makes the whole inv into coal and trips the logout. Mithril, addy and rune are about perfect though, they are now returning to the bank after smelting and I haven't noticed the same problem with those that I see with steel. Thanks again for the script man. Hope this helps.

p.s. I haven't had the walking problems others seem to be having not sure why but I won't complain.


You'll notice that he will get stuck halfway between the furnace and the bank, sometimes at the furnace full of ore, sometimes he'll walk behind the furnace. I've used this script to smelt 15k mithril ore, I've gotten just about every issue this script has had yet.

Are you running smart V8 or V7.2?

dstahn236

2013-02-26 20:50:40

I am running V8. I have run this script and I know I had issues with the previous version of the script with walking but I have to have any with the newest version. Currently the only issue that I am having is it will click on the furnace and then not click the smelt button and say that it could not smelt the mithril ore, even though it has 5 mithril and is full of coal. Mithril though I haven't had any withdrawing issues that I saw with steel and non of the walking issues from the previous versions. I am just having the problem of it not hitting the smelt button every 300 or so bars.

GuthixBoss1

2013-02-26 21:57:01

Small issue. Whenever there are people at the furnace, the script fails to click all the way to the furnace, and stops at F1a, but the camera turns. I switched it to blind walking, and it works quite well.

Ian

2013-02-26 22:39:00

From: Kampf Gewehr
You'll notice that he will get stuck halfway between the furnace and the bank, sometimes at the furnace full of ore, sometimes he'll walk behind the furnace. I've used this script to smelt 15k mithril ore, I've gotten just about every issue this script has had yet.

Are you running smart V8 or V7.2?

Walking behind the furnace is UpText lag that will be an easy fix. Stuck mid path means I need to add more DTMS
From: dstahn236
I am running V8. I have run this script and I know I had issues with the previous version of the script with walking but I have to have any with the newest version. Currently the only issue that I am having is it will click on the furnace and then not click the smelt button and say that it could not smelt the mithril ore, even though it has 5 mithril and is full of coal. Mithril though I haven't had any withdrawing issues that I saw with steel and non of the walking issues from the previous versions. I am just having the problem of it not hitting the smelt button every 300 or so bars.

The could not smelt issue could be lag, I'll need to run some tests.
From: guthixboss1
Small issue. Whenever there are people at the furnace, the script fails to click all the way to the furnace, and stops at F1a, but the camera turns. I switched it to blind walking, and it works quite well.


Odd, it should only turn the camera if it successfully clicks the last point.

dstahn236

2013-02-27 00:31:31

[ATTACH=CONFIG]19373[/ATTACH]

Here is where it gets caught for me.

Kampf Gewehr

2013-02-27 08:52:23

Did the thing where it with draws six mithril ore and no coal again just FYI

I've done 15k bars so far with this, great work my friend.

GuthixBoss1

2013-02-27 11:39:06

From: BMWxi
Walking behind the furnace is UpText lag that will be an easy fix. Stuck mid path means I need to add more DTMS

The could not smelt issue could be lag, I'll need to run some tests.


Odd, it should only turn the camera if it successfully clicks the last point.


Yea I found it odd too.. Anyway i'm using this. Seems alright.

Procedure WalkToFurnace;
begin
if (not LoggedIn) then LoginPlayer;
SPS_BlindWalk(p2);
Wait(RandomRange(850,950));
If Random(300) = 1 Then CheckFriends;
SPS_BlindWalk(p3);
Wait(RandomRange(600,700));
If Random(300) = 1 Then CheckFriends;
MakeCompass('W');
end;

Procedure WalkToBank;
begin
if (not LoggedIn) then LoginPlayer;
MakeCompass('N');
SPS_BlindWalk(p2);
Wait(RandomRange(600,700));
If Random(300) = 1 Then CheckFriends;
SPS_BlindWalk(p1);
Wait(RandomRange(850,950));
If Random(300) = 1 Then CheckFriends;
end;

CheckFriends is there for random-ness :P And I'm using a custom SPS image.

Edit: Why so complicated and meddle wih DTMs when we have SPS?? :D

Edit2: Just noticed on front page; you switched from SPS to DTMs. Why the switch? :O

GuthixBoss1

2013-02-27 11:42:22

Oh btw quick question.. What does TPA stand for?? Been looking around but can't find it): I do know that DTM stands for Deformable Template Model though.. Or something. Sorry off-topic!

Edit: Crud double-post. I apologise.

Ian

2013-02-27 11:48:09

From: guthixboss1


Edit: Why so complicated and meddle wih DTMs when we have SPS?? :D

When I first made this script SPS didn't work in Al-Kharid. I'll switch to it if it's stable now though.
From: guthixboss1
Oh btw quick question.. What does TPA stand for?? Been looking around but can't find it): I do know that DTM stands for Deformable Template Model though.. Or something. Sorry off-topic!

Edit: Crud double-post. I apologise.


TPA stands for TPointArray
A Tpoint is a coordinate
And Array is a collection of things
so A TPointArray is a collection of coordinates :)

GuthixBoss1

2013-02-27 11:50:49

From: BMWxi
When I first made this script SPS didn't work in Al-Kharid. I'll switch to it if it's stable now though.


TPA stands for TPointArray
A Tpoint is a coordinate
And Array is a collection of things
so A TPointArray is a collection of coordinates :)


Does the T in Tpoint stand for anything though? Thanks though :D And idrk I'm using a custom image. DTM walking is too complicated for me hehe :P That's why I didn't modify it.

tealc

2013-02-27 21:07:32

v1.1 will run for about 15 minutes before failing

v1.2 will usually last about an hour before failing

Kampf Gewehr

2013-03-03 15:28:35

From: bob_saget
v1.1 will run for about 15 minutes before failing

v1.2 will usually last about an hour before failing


I second this. Most I've gotten is barely over three. But hey, just think of it as another form of "anti-ban" :D

GuthixBoss1

2013-03-06 03:57:21

Hey, finally finished my smelting run. I'm 94 smithing now. Without any modifications, I only managed to run it at max 2 hours without checking. After adding tons and tons and tons of failsafes and alternate methods, it now runs forever without stopping :P I got a 34 hour proggie, but I accidentally cleared debug): Would you like me to post the script here? But it requires a custom SPS map, which I could add to the script to auto-download

Edit: I'm aware 34 hours isn't forever, but meh :P Ran it for many hours

Ian

2013-03-06 08:01:03

From: guthixboss1
Hey, finally finished my smelting run. I'm 94 smithing now. Without any modifications, I only managed to run it at max 2 hours without checking. After adding tons and tons and tons of failsafes and alternate methods, it now runs forever without stopping :P I got a 34 hour proggie, but I accidentally cleared debug): Would you like me to post the script here? But it requires a custom SPS map, which I could add to the script to auto-download

Edit: I'm aware 34 hours isn't forever, but meh :P Ran it for many hours


Yeah, if you want I could add it to the OP and credit you. I'll be leaving for a few weeks so I don't really have time for updates.

GuthixBoss1

2013-03-06 15:51:06

From: BMWxi
Yeah, if you want I could add it to the OP and credit you. I'll be leaving for a few weeks so I don't really have time for updates.


Okie! I kinda added Bracelet crafting to it too, so yea. I'll post it here when I wake up tomorrow :P 5am here now. Thanks again for this script!

GuthixBoss1

2013-03-06 23:52:42

 program AKSmelter;

{$DEFINE SMART8}
{$i srl/srl.simba}
{$I SRL/SRL/Misc/SmartGraphics.Simba}
{$i sps/sps.simba}

const
Version = '1,2'; // No Touchy :)
Debug = True; //Write a debug into the debug box?
BarType = 'Gold bar';//bronze, iron, steel, silver, gold, mithril, adamant, or rune.
HowManyBars = 99999; //How many bars to smelt before termination?
CoalBag = False; //True if using a coalbag, and it is in your 1st InvSlot.
OnScreenReport = True;//True if you want a proggy drawn on your screen (You do)
BreakIn = 9999; //About how many minutes to run before taking a break?
BreakFor = 7; //About how many minutes to break for?
RandomBreakIn = 20; //How many minutes of randomness to Add/Subtract from BreakIn?
RandomBreakFor = 5; //How many minutes of randomness to Add/Subtract from BreakFor?

Var
p1, p2, p3, p4:TPoint;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := ' '; // Player username
Pass := ' '; // Player password
Pin := '2908312903812983012'; // Bank Pin
Active := True;
end;
end;

procedure CheckFriends; //An Antiban Procedure by BMWxi
var
NCx, NCy, ONx, ONy :Integer;
begin
if not LoggedIn then LoginPlayer;
if not LoggedIn then Exit;
gametab(tab_friends); //Goes to friends tab
If FindColorTolerance(NCx, NCy, 16683035, 546, 246, 722, 451, 5) Then // Checks if they have changed names,
begin // if they have, It hovers to find their new name.
MMouse(NCx, NCy, 5, 5);
Wait(RandomRange(1000, 2000));
end;
If FindColorTolerance(ONx, ONy, 6619135, 546, 246, 722, 451, 5) Then //Checks to see if friends are online
begin //hovers the names of online friends
MMouse(ONx, ONy, 5, 5);
Wait(RandomRange(1000, 2000));
end else
begin
Wait(RandomRange(500, 1000)); //I added this so It doesn't spam-exit when you have no friends :)
end;
FTab(tab_Inv); //Returns to inventory
end;

var
Bars, AnyInvBarDTM, CoalBagDTM, TinOreDTM, CopperOreDTM, IronOreDTM,
SilverOreDTM, GoldOreDTM, MithrilOreDTM, AdamantOreDTM, RuneOreDTM,
CoalOreDTM, F1aDTM, F1bDTM, F2aDTM, F2bDTM, F2cDTM, F3DTM, B1aDTM, B1bDTM, B1cDTM,
B1dDTM, B2aDTM, B2bDTM, B2cDTM, TotalBreaks, RunTime, StartTime, BreakRounds,
Loads, Bxs, Bys, Bxe, Bye, FurnaceTries, HeartDTM, GoldBarDTM:Integer;
Status:string;
XPPerBar:Extended;

procedure Proggy;
var
SmithingXPEarned, SmithingXPPH, BarsPH, LoadsPH:Integer;
begin
if not LoggedIn then LoginPlayer;
if not LoggedIn then Exit;
wait(100);
RunTime := (TimeFromMark(StartTime) - (TotalBreaks * (BreakFor * 60000)));
SmithingXPEarned := (Bars * (Round(XPPerBar)));
SmithingXPPH := Round((SmithingXPEarned * 3600) / (RunTime / 1000));
BarsPH := Round((Bars * 3600) / (RunTime / 1000));
LoadsPH := Round((Loads * 3600) / (RunTime / 1000));
{Writeln('=========[] AIO AK Smelter ' + Version + '[]=========');
Writeln('[+] By BMWxi [+] Status: ' + Status);
Writeln('==============================================');
Writeln('[] Smelting: ' + BarType + ' (' + FloatToStr(XPPerBar) + ' XP Each)');
Writeln('[] Smithing XP Earned: ' + IntToStr(SmithingXPEarned) + ' Per Hour: ' + IntToStr(SmithingXPPH));
Writeln('[] Loads: ' + IntToStr(Loads) + ' Per Hour: ' + IntToStr(LoadsPH));
Writeln('[] Bars Smelted: ' + IntToStr(Bars) + ' Per Hour: ' + IntToStr(BarsPH));
Writeln('[] Total Time: ' + MsToTime(RunTime, 2));
Writeln('==============================================');}
if not OnScreenReport then Exit;
SMART_ClearCanvasArea(IntToBox(MCX1, MCY1, MCX2, 507));
SMART_DrawTextMulti(False, False, ['=============[] AK AIO Smelter ' + Version + ' []============='], Point(200, 348), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[+] By BMWxi [+] Status: ' + Status], Point(200, 360), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['=============================================='], Point(200, 374), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[] Smelting: ' + BarType + ' (' + FloatToStr(XPPerBar) + ' XP Each)'], Point(200, 388), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[] Smithing XP Earned: ' + IntToStr(SmithingXPEarned) + ' Per Hour: ' + IntToStr(SmithingXPPH)], Point(200, 404), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[] Loads: ' + IntToStr(Loads) + ' Per Hour: ' + IntToStr(LoadsPH)], Point(200, 418), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[] Bars Smelted: ' + IntToStr(Bars) + ' Per Hour: ' + IntToStr(BarsPH)], Point(200, 432), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['[] Total Time: ' + MsToTime(RunTime, 2)], Point(200, 446), StatChars, 1726658);
SMART_DrawTextMulti(False, False, ['=============================================='], Point(200, 460), StatChars, 1726658);
end;

{*******************************************************************************
function BreakHandler(BreakIn, BreakFor, randBreakIn, randBreakFor: Integer): Boolean;
By: Echo_ * Slight modifications by me *
Description: Takes brakes according to the minute values entered
*******************************************************************************}
function BreakHandler(BreakIn, BreakFor, randBreakIn, randBreakFor: Integer): Boolean;
var
w, x, y, z: Integer;
begin
if not LoggedIn then Exit;

w := (BreakIn * 60000);
x := (BreakFor * 60000);
y := RandomRange(-randBreakIn * 60000, randBreakIn * 60000);
z := RandomRange(-randBreakFor * 60000, randBreakFor * 60000);

if (HowManyPlayers = 1) then
begin
if (GetTimeRunning < ((w) + (y) + BreakRounds)) then Exit
else
if (GetTimeRunning > ((w) + (y) + BreakRounds)) then
begin
Status := 'Breaking';
Proggy;
Writeln('Taking a break for about ' + IntToStr(BreakFor) + ' minutes.');
Logout;
Wait((x) + (z));
Writeln('Logging in.');
LoginPlayer;
Result := LoggedIn;
FindNormalRandoms;
IncEx(BreakRounds, (w) + (x));
IncEx(TotalBreaks, 1);
Writeln('The next break will occur in about ' + IntToStr(BreakIn) + ' minutes.');
end;
end;

if (HowManyPlayers > 1) then
begin
if (GetTimeRunning < ((w) + (y) + BreakRounds)) then Exit
else
if (GetTimeRunning > ((w) + (y) + BreakRounds)) then
begin
Writeln('Taking a break for about ' + IntToStr(BreakFor) + ' minutes.');
Logout;
IncEx(BreakRounds, (w));
IncEx(TotalBreaks, 1);
NextPlayer(True);
Exit;
while (LoggedIn) do Wait((x) + (z));
NextPlayer(True);
end;
end;
end;
// End of BreakHandler
//******************************************************************************

procedure SetupAllDTMs;
begin
F1aDTM := DTMFromString('mrAAAAHic42BgYFjCyMCwHojXAfFaIN4MxMeBOA+Iu4G4BqjmKBCvB+JpQLwAiPcAcTcQ9wPxrI40hkNrp6DgptoqsPh2IBYBqsGHGQlgGAAApKEZEA==');
F1bDTM := DTMFromString('mrAAAAHic42BgYFjAyMAwH4jnAfEkIG4G4kogzgPibiDeBVRzC4gvAvE+KD4IxHuAeDYQz+jPYNi/ZSpWvAUoJwJUgw8zEsAwAAAQbxqA');
F2aDTM := DTMFromString('mrAAAAHic42BgYIhjZGDoBOJGIK4A4hQgTgXidCB2AOKFQDXnoPgsEN8E4hdA/BOIFwHx9o40hkNrp2DFc9szGESAavBhRgIYBgCN0Rmy');
F2bDTM := DTMFromString('mrAAAAHic42BgYFjAyMAwH4jnAfEkIG4G4kogzgPibiDeBVRzC4gvAvE+KD4IxHuAeDYQz+jPYNi/ZSpWvAUoJwJUgw8zEsAwAAAQbxqA');
F2cDTM := DTMFromString('m1gAAAHic42JgYHjCwsCwHQ0vB+IFQDwLiCcDcS8QPwKqFWNkYOADYnYgZgTiT0Cxj1D8AYi/AvHKmjiGw2unEMRyQLXEYEYiMQIAAGm6IZw=');
F3DTM := DTMFromString('mrAAAAHic42BgYPgNxF+AmIGRgUEMiI8DmSeB+DQQ7wfiVUCcAcRFQFwJxGeA+BAQ7wTiFUC8oSOdoXvyAjg+snkWChYBqsGHGQlgGAAAyPUZ2w==');
B1aDTM := DTMFromString('m1gAAAHic42JgYGhiZGDwAWIvKHYG4llAPAWI24C4C4jtgPgsUG0NEHcB8SwgXgHEp4A4D4pvA/FEkFxHGkNn7ywUfGjtFIam/DCGhqxQMBskJgJUSwxmJBIjAAAxFBuz');
B1bDTM := DTMFromString('mwQAAAHic42RgYHBjhGB3IPYAYiMgtgJiZyAuAuI2ID4OVPcViN8B8RMgPgvE54H4MhD3AvE8IJ7ek8awf+MUrLht4iwwFgGqI4QZicBwAACZBBu9');
B1cDTM := DTMFromString('mggAAAHicY2NgYLBlZGBwRsLmQGwMxFuAcjeA+BIQnwbiPUC8F4hn96QwHN40CQPLAeWwYUYcGAIAgtEShw==');
B1dDTM := DTMFromString('mggAAAHicY2NgYDjByMBwAQkfBOJdQLwPKPcUiG8D8RUgPgnF0zuzGPavn4GB5YBy2DAjDgwBABNbFgY=');
B2aDTM := DTMFromString('mlwAAAHicY2dgYEhnZGBog+JuIG6H4tlAfBIofwuILwDxYSDeAcSrgHgOEB84cIDh0NopWLEIUB4XZsSDoQAAoZgXzw==');
B2bDTM := DTMFromString('mrAAAAHic42BgYPgGxEKMDAyCQCzGCGGDsAYQ6wPxa6D8byD+BMRPgPg2EJ8H4j1QvLUri+HA+hk4sQhQDT7MSADDAAAE4Bka');
B2cDTM := DTMFromString('mrAAAAHic42BgYPBmYmCogeIoIE4C4kwg9gdiVyCeBlRzGYgPAvFGJLwNSi+sCmc4vGkSTiwHVIMPMxLAMAAALsgZVA==');
CoalBagDTM := DTMFromString('m1gAAAHic42JgYHBgYmCwAGIPIPYBYicgtgFiSyC2hYq5AbE0IwODAhArA7EkEAtAsSRUTB6IhYB4Zmk40FQmgpiVgTjASCRGAABk6gVF');
AnyInvBarDTM := DTMFromString('maQEAAHicrc7NCkBgEIXh+awJSbHwk0vhPigpCxEpkYvnXczO8nPqqTnTLCYUkdkROTHgwKRzi137ghsdVlzYMKrYiCQo4MNDhBQZKri6y1Ei0LtAe930fONYecQ+5gefvHrJCxM=');
TinOreDTM := DTMFromString('mlwAAAHicY2dgYDAHYjUo1gdiByA2A2JHIJ4DxYuAeCUQL4XiuUCcnZYGJJmwYhCJCzDiwVAAAAvQByc=');
CopperOreDTM := DTMFromString('mrAAAAHic42BgYEgG4mAgDoLiaCBOAuJsIM4H4jlAPAuI5wPxYiBeDsQrgXgpEM8G4kOFtkCSCSfmYsAPGAlgGAAAy00Jkg==');
IronOreDTM := DTMFromString('mwQAAAHic42RgYBBiZGBggmI2IOYGYkEgFgZiWSCWA+I5DBC8CIiXAvFKIF4FxMuBeAlUzlxREkgy4cWsDIQBIxEYDgCw+gbh');
SilverOreDTM := DTMFromString('mwQAAAHic42RgYMhmZGCIguJEIE4G4nQgzgfiUiAuA+K5QHVzgHgxEC8B4lVAvBqIF0HFQHL9/dOAJBNezMpAGDASgeEAAF1RCz8=');
CoalOreDTM := DTMFromString('mwQAAAHic42RgYLBlZGDQB2I9IDYEYnMgdgZiHyD2BGI7IJ7NAMELgHgpEK8E4iVAPAuIFwLxCiBWUpICkkx4MSsDYcBIBIYDALBzCFI=');
GoldOreDTM := DTMFromString('mwQAAAHic42RgYOgH4nogrgPiZiDugopNBeIZQDwbiOdA6UVAvBSIVwPxciBeBsTzoXLbJkoDSSa8mJWBMGAkAsMBAA/kDCo=');
AdamantOreDTM := DTMFromString('mwQAAAHic42RgYNgFxKuBeBUUbwbibUC8H4iPAvEJIJ4DxLOAeB4QLwXiZVA9i4F4IVTO2sUaSDLhxawMhAEjERgOAMC/DPg=');
MithrilOreDTM := DTMFromString('mrAAAAHic42BgYHgOxNeg+D4QPwbid0D8EYi/AfEcIJ4LxEuBeAUQr4ayFwDxDCC2sAgGkkw4MSsDfsBIAMMAABFHDR8=');
RuneOreDTM := DTMFromString('mwQAAAHic42RgYJjGyMDQBsU9QNwPxFOBeDYQLwTixUA8hwGCFwPxEiBeCcSroPwFQDwbiB18g4EkE17MykAYMBKB4QAABksL8g==');
HeartDTM := DTMFromString('mwQAAAHic42RgYJBlZWAQAmIRIBYHYhkgVgBiVSBWB2JNIL7AyMBwFogvAvEVIL4JxNehbJDYOSCepygONI0JLwYaRRAwEoHhAAA74gmk');
GoldBarDTM := DTMFromString('mlwAAAHicY2dgYHBiYmCwB2J3IHYFYmcgDgRiEyB+AJR/BsSPgfgWEH8A4odA/AKIFzWIMcR48jJcWi4L5DGhYBEgCcOsaJgRD4YCAN+0DAY=');
end;

procedure FreeAll;
begin
FreeDTM(F1aDTM);
FreeDTM(F1bDTM);
FreeDTM(F2aDTM);
FreeDTM(F2bDTM);
FreeDTM(F3DTM);
FreeDTM(B1aDTM);
FreeDTM(B1bDTM);
FreeDTM(B1cDTM);
FreeDTM(B1dDTM);
FreeDTM(B2aDTM);
FreeDTM(B2bDTM);
FreeDTM(B2cDTM);
FreeDTM(CoalBagDTM);
FreeDTM(AnyInvBarDTM);
FreeDTM(TinOreDTM);
FreeDTM(CopperOreDTM);
FreeDTM(IronOreDTM);
FreeDTM(SilverOreDTM);
FreeDTM(CoalOreDTM);
FreeDTM(GoldOreDTM);
FreeDTM(AdamantOreDTM);
FreeDTM(MithrilOreDTM);
FreeDTM(RuneOreDTM);
FreeDTM(HeartDTM);
FreeDTM(GoldBarDTM);
end;

procedure SemiRandomChat;
begin
case Random(56) of
0..41:MouseBox(346, 483, 400, 500, 1); //Trade
41..56:MouseBox(402, 483, 456, 500, 1); //Assist
end;
end;


procedure GetBarConstants;
begin
case Lowercase (BarType) of
'bronze':
begin
XPPerBar := 6.2;
Bxs :=21;
Bys :=77;
Bxe :=66;
Bye :=122;
end;

'iron':
begin
XPPerBar := 12.5;
Bxs :=121;
Bys :=77;
Bxe :=166;
Bye :=122;
end;

'silver':
begin
XPPerBar := 13.7;
Bxs :=171;
Bys :=77;
Bxe :=116;
Bye :=122;
end;

'steel':
begin
XPPerBar := 17.5;
Bxs :=21;
Bys :=127;
Bxe :=66;
Bye :=172;
end;

'gold':
begin
XPPerBar := 22.5;
Bxs :=71;
Bys :=127;
Bxe :=116;
Bye :=172;
end;

'gold bar':
Begin
XPPerBar := 25;
Bxs :=121;
Bys :=77;
Bxe :=166;
Bye :=122;
End;

'mithril':
begin
XPPerBar := 30.0;
Bxs :=171;
Bys :=127;
Bxe :=216;
Bye :=172;
end;

'adamant':
begin
XPPerBar := 37.5;
Bxs :=21;
Bys :=177;
Bxe :=66;
Bye :=222;
end;

'rune':
begin
XPPerBar := 50.0;
Bxs :=121;
Bys :=227;
Bxe :=166;
Bye :=272;
end;
end;
end;

Procedure LoginCheck;


begin
If LobbyScreen then
MouseBox( 172, 28, 258, 48, Mouse_left);
Wait(500 + Random(400));
If WorldScreen then LoginPlayer;
Wait(1500 + Random(400));
If Not(LobbyScreen or Loggedin) then
LoginPlayerToLob;
If LobbyScreen then
MouseBox( 172, 28, 258, 48, Mouse_left);
Wait(500 + Random(400));
If WorldScreen then LoginPlayer;
end;

procedure DTMWalkToFurnace;
var
PointWalkTime:Integer;
begin
If Random(250) = 1 Then PickUpMouse;
Status := 'Walking to Furnace';
Proggy;
if (RunEnergy(30)) then SetRun(True);
MarkTime(PointWalkTime);
if (ClickDTMRotatedIn(F1aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('F1a');
if ClickDTMRotatedIn(F2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('F2a')
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 10000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(F2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('F2b');
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(F2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
WriteLn('F2c');
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end else
begin
If Random(250) = 1 Then PickUpMouse;
if (ClickDTMRotatedIn(F1bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('F1b');
if ClickDTMRotatedIn(F2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('F2a')
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(F2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('F2b');
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(F2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
WriteLn('F2c');
Wait(RandomRange(200, 500));
MakeCompass('W');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end;
end;
end;

procedure DTMWalkToBank;
var
PointWalkTime:Integer;
begin
If Random(250) = 1 Then PickUpMouse;
Status := 'Walking to Bank';
Proggy;
if (RunEnergy(30)) then SetRun(True);
MarkTime(PointWalkTime);
if (ClickDTMRotatedIn(B1aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('B1a');
if ClickDTMRotatedIn(B2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2a')
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 10000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2b');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2c');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end else
begin
If Random(250) = 1 Then PickUpMouse;
if (ClickDTMRotatedIn(B1bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('B2c');
if ClickDTMRotatedIn(B2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2a')
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2b');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2c');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end else
begin
If Random(250) = 1 Then PickUpMouse;
if (ClickDTMRotatedIn(B1cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('B1c');
if ClickDTMRotatedIn(B2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2a')
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2b');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2c');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end else
begin
If Random(250) = 1 Then PickUpMouse;
if (ClickDTMRotatedIn(B1dDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left)) then
begin
If Random(250) = 1 Then PickUpMouse;
Flag;
WriteLn('B1d');
if ClickDTMRotatedIn(B2aDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2a')
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2bDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2b');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end else
begin
If Random(250) = 1 Then PickUpMouse;
if ClickDTMRotatedIn(B2cDTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left) then
begin
If Random(250) = 1 Then PickUpMouse;
WriteLn('B2c');
Wait(RandomRange(200, 500));
MakeCompass('N');
repeat
Wait(RandomRange(50, 100));
until(not WalkingToFlag(1000)) or (TimeFromMark(PointWalkTime) > 25000) or (not IsMoving);
end;
end;
end;
end;
end;
end;
end;
end;

procedure Setup;
var
CBx, CBy:Integer;
begin
SetupAllDTMs;
p1 := Point(243,320); //Bank
p2 := Point(262,287);
p3 := Point(268,262);
p4 := Point(262,232); //Furnace
Addonterminate('FreeAll');
MarkTime(RunTime);
if IsActionBarOpen then ToggleActionBar(False);
if CoalBag then
begin
if FindDTM(CoalBagDTM, CBx, CBy, 560, 210, 600, 250) then
begin
SMART_DrawBoxEx(false, false, intToBox(560, 210, 600, 250), clGreen);
WriteLn('Coalbag Detected!');
end else
begin
SMART_DrawBoxEx(false, false, intToBox(560, 210, 600, 250), clRed);
WriteLn('Error 404: Coalbag not found. Please put your coalbag in the first slot of your inventory and restart the script!');
TerminateScript;
end;
end;
end;

Procedure WalkToFurnace;
begin
if (not LoggedIn) then LoginPlayer;
If Random(100) = 1 Then PickUpMouse;
SPS_BlindWalk(p2);
If Random(100) = 1 Then PickUpMouse;
SPS_BlindWalk(p3);
If Random (10) = 1 Then
Begin
If Random(100) = 1 Then PickUpMouse;
SPS_Walktopos(p4);
End;
Flag;
If Random(100) = 1 Then PickUpMouse;
MakeCompass('W');
end;

Procedure WalkToBank;
begin
if (not LoggedIn) then LoginPlayer;
If Random(100) = 1 Then PickUpMouse;
ClickNorth(SRL_ANGLE_HIGH);
If Random(100) = 1 Then PickUpMouse;
SPS_BlindWalk(p3);
If Random(100) = 1 Then PickUpMouse;
SPS_BlindWalk(p2);
If Random(100) = 1 Then PickUpMouse;
SPS_Walktopos(p1);
Wait(RandomRange(950,1150));
If Random(100) = 1 Then PickUpMouse;
end;

procedure Bank;
var
tmpCTS, i, N, r, Counter, ABx, ABy, TOx, TOy, COx, COy, IOx, IOy, SOx, SOy,
CoalOx, CoalOy, GOx, GOy, MOx, MOy, AOx, AOy, ROx, ROy, VHx, VHy:Integer;

BankTPA:TPointArray;
begin
if not LoggedIn then LoginPlayer;
if not LoggedIn then Exit;

repeat
wait(RandomRange(50,100));
until not IsMoving;

Status := 'Banking';
Proggy;
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.16, 0.91);

FindColorsTolerance(BankTPA, 10204113, 200, MSY1, 350, MSY2, 4);

SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);

N := High(BankTPA);
if (N < 1) and not(BankScreen) then
begin
WriteLn('Unable to find bank');
WalkToBank;
Wait(RandomRange(1050,1150));
Flag;
Bank;
end;
MarkTime(Counter);
for i := 0 to N do
begin
r := random(N);
wait(RandomRange(100, 250));
MMouse(BankTPA[r].x, BankTPA[r].y, 10, 5);
Wait(RandomRange(100, 175));
if WaitUpText('ank Bank', 1000) then
Break;
if (TimeFromMark(Counter) > (RandomRange(3000, 4000))) and not(BankScreen) then
begin
WriteLn('Unable to find bank');
WalkToBank;
Wait(RandomRange(1050,1150));
Flag;
Bank;
end;
end;
If Not(BankScreen) Then
Begin
WriteLn('We found the Bank, TPAs are awesome');
ClickMouse2(True);
Flag;
End;
repeat
Wait(RandomRange(50, 100));
until(BankScreen) or (PinScreen) or (not LoggedIn);
if PinScreen then InPin(Players[CurrentPlayer].Pin);
repeat
Wait(RandomRange(50, 100));
until(BankScreen) or (not LoggedIn);
Wait(RandomRange(1000, 1500));
if not LoggedIn then
Begin
LoginCheck;
Bank;
End;
if FindDTM(HeartDTM, VHx, VHy, MIX1, MIY1, MIX2, MIY2) then
begin
WriteLn('Found Hearts! <3');
MMouse(VHx, VHy, 5, 5);
ClickMouse2(False);
WaitOption('All', 500);
end;
case Lowercase (BarType) of

'bronze':
begin
if (not (FindDTM(TinOreDTM, TOx, TOy, 35, 85, 117, 126))) or (not (FindDTM(CopperOreDTM, COx, COy, 35, 85, 117, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 117, 126), clRed);
WriteLn('Copper or Tin ore are not in the Primary and Secondary ore spots! Please put them there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 117, 126), clGreen);
WriteLn('Found Copper and Tin ore in the Primary and Secondary ore slots!');
end;
if ((GetBankItemAmount(0, 0)) < 15) or ((GetBankItemAmount(1, 0)) < 15) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(TinOreDTM, TOx, TOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(TOx, TOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
if (FindDTM(CopperOreDTM, COx, COy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(COx, COy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
If not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads + 1
end;
Withdraw(0, 0, 14);
Wait(RandomRange(200, 500));
Withdraw(1, 0, 14);
end;

'iron':
begin
if (not (FindDTM(IronOreDTM, IOx, IOy, 35, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clRed);
WriteLn('Iron ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clGreen);
WriteLn('Found Iron ore in the Primary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 29) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(IronOreDTM, IOx, IOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(IOx, IOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
If not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(0, 0, 28);
end;

'silver':
begin
if (not (FindDTM(SilverOreDTM, SOx, SOy, 35, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clRed);
WriteLn('Silver ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clGreen);
WriteLn('Found Silver ore in the Primary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 29) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(SilverOreDTM, SOx, SOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(SOx, SOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
If not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(0, 0, 28);
end;

'steel':
begin
if (not (FindDTM(IronOreDTM, IOx, IOy, 33, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Iron ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clGreen);
WriteLn('Found Iron ore in the Primary ore slot!');
end;
if (not (FindDTM(CoalOreDTM, CoalOx, CoalOy, 76, 85, 117, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clRed);
WriteLn('Coal Ore is not in the Secondary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clGreen);
WriteLn('Found Coal ore in the Secondary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 19) or ((GetBankItemAmount(1, 0)) < 37) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(IronOreDTM, IOx, IOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(IOx, IOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
InvMouse(1, mouse_Right);
WaitOption('Empty', 500);
end;
if CoalBag then
begin
if (InvCount > 1) then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(2, ((CountItems('dtm', AnyInvBarDTM, [])) +1))), mouse_Right);
if ((CountItems('dtm', AnyInvBarDTM, [])) = 1) then
begin
WaitOption('sit', 500);
end else
WaitOption('All', 500);
Loads := Loads +1
end;
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
Wait(RandomRange(50, 100));
InvMouse(1, mouse_Right);
WaitOption('Fill', 500);
Wait(RandomRange(50, 100));
Withdraw(0, 0, 18);
Wait(RandomRange(50, 100));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end else
begin
if not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
if ((CountItems('dtm', AnyInvBarDTM, [])) = 1) then
begin
WaitOption('Deposit', 500);
end else
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(1, 0, 18);
Wait(RandomRange(200, 500));
Withdraw(0, 0, 10);
end;
end;

'gold':
begin
if (not (FindDTM(GoldOreDTM, GOx, GOy, 35, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Gold ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clGreen);
WriteLn('Found Gold ore in the Primary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 29) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
If Not(LoggedIn) Then LoginPlayer;
if (FindDTM(GoldOreDTM, GOx, GOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(GOx, GOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
If Not(LoggedIn) Then LoginPlayer;
If not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
DepositAll;
Loads := Loads +1
end;
Withdraw(0, 0, 28);
If Not(LoggedIn) Then LoginCheck;
end;

'gold bar':
begin
if (not (FindDTM(GoldBarDTM, GOx, GOy, 35, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Gold Bar is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(35, 85, 74, 126), clGreen);
WriteLn('Found Gold Bar in the Primary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 29) then
begin
WriteLn('Bars low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
If Not(LoggedIn) Then LoginCheck;
if (FindDTM(GoldBarDTM, GOx, GOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(GOx, GOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
If Not(LoggedIn) Then LoginPlayer;
If not InvEmpty then
begin
DepositAll;
Loads := Loads +1
end;
Withdraw(0, 0, 28);
If Not(LoggedIn) Then LoginPlayer;
end;

'mithril':
begin
if (not (FindDTM(MithrilOreDTM, MOx, MOy, 33, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Mithril ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clGreen);
WriteLn('Found Mithril ore in the Primary ore slot!');
end;
if (not (FindDTM(CoalOreDTM, CoalOx, CoalOy, 76, 85, 117, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clRed);
WriteLn('Coal Ore is not in the Secondary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clGreen);
WriteLn('Found Coal ore in the Secondary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 11) or ((GetBankItemAmount(1, 0)) < 41) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(MithrilOreDTM, MOx, MOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(MOx, MOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
if CoalBag then
begin
if (InvCount > 1) then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(2, ((CountItems('dtm', AnyInvBarDTM, [])) +1))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
InvMouse(1, mouse_Right);
WaitOption('Fill', 500);
Wait(RandomRange(50, 100));
Withdraw(0, 0, 10);
Wait(RandomRange(50, 100));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end else
begin
if not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(0, 0, 5);
Wait(RandomRange(200, 500));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end;
end;

'adamant':
begin
if (not (FindDTM(AdamantOreDTM, AOx, AOy, 33, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Adamant ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clGreen);
WriteLn('Found Adamant ore in the Primary ore slot!');
end;
if (not (FindDTM(CoalOreDTM, CoalOx, CoalOy, 76, 85, 117, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clRed);
WriteLn('Coal Ore is not in the Secondary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clGreen);
WriteLn('Found Coal ore in the Secondary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 8) or ((GetBankItemAmount(1, 0)) < 43) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(AdamantOreDTM, AOx, AOy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(AOx, AOy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
if CoalBag then
begin
if (InvCount > 1) then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(2, ((CountItems('dtm', AnyInvBarDTM, [])) +1))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
Wait(RandomRange(50, 100));
InvMouse(1, mouse_Right);
WaitOption('Fill', 500);
Wait(RandomRange(50, 100));
Withdraw(0, 0, 7);
Wait(RandomRange(50, 100));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end else
begin
if not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(0, 0, 4);
Wait(RandomRange(200, 500));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);;
end;
end;

'rune':
begin
if (not (FindDTM(RuneOreDTM, ROx, ROy, 33, 85, 74, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clRed);
WriteLn('Rune ore is not in the Primary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(33, 85, 74, 126), clGreen);
WriteLn('Found Rune ore in the Primary ore slot!');
end;
if (not (FindDTM(CoalOreDTM, CoalOx, CoalOy, 76, 85, 117, 126))) then
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clRed);
WriteLn('Coal Ore is not in the Secondary ore slot! Please put it there and restart the script!');
TerminateScript;
end else
begin
SMART_DrawBoxEx(false, false, intToBox(76, 85, 117, 126), clGreen);
WriteLn('Found Coal ore in the Secondary ore slot!');
end;
if ((GetBankItemAmount(0, 0)) < 7) or ((GetBankItemAmount(1, 0)) < 49) then
begin
WriteLn('Ores low, terminating script.');
Wait(RandomRange(500, 1000));
Logout;
TerminateScript;
end;
if (FindDTM(RuneOreDTM, ROx, ROy, MIX1, MIY1, MIX2, MIY2)) then
begin
MMouse(ROx, ROy, 5, 5);
ClickMouse2(False)
WaitOption('All', 500);
end;
if CoalBag then
begin
if (InvCount > 1) then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(2, ((CountItems('dtm', AnyInvBarDTM, [])) +1))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
Wait(RandomRange(100, 150));
InvMouse(1, mouse_Right);
WaitOption('Fill', 500);
Wait(RandomRange(50, 100));
Withdraw(0, 0, 6);
Wait(RandomRange(50, 100));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end else
begin
if not InvEmpty then
begin
bars := bars + (CountItems('dtm', AnyInvBarDTM, []));
InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
WaitOption('All', 500);
Loads := Loads +1
end;
Withdraw(0, 0, 3);
Wait(RandomRange(50, 100));
MouseBankSlot(2, mouse_Right);
WaitOption('All', 500);
end;
end;
end;

SMART_ClearCanvas;
Wait(RandomRange(200, 500));
If Random(500) = 1 Then
Begin
CloseBank;
If Random(100) = 1 Then CheckFriends;
End;
Wait(RandomRange(200, 500));
end;

procedure SmeltBars;
var
tmpCTS, i, N, r, t, Counter, BBx, BBy:Integer;
FurnaceTPA:TPointArray;
begin
if not LoggedIn then LoginPlayer;
if (not LoggedIn) or (InvEmpty) then Exit;
FindNormalRandoms;
Wait(RandomRange(345, 805));
if (FurnaceTries > 5) then
begin
WriteLn('Failed to find the furnace too many times, trying again.');
Exit;
end;
Flag;

tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.02, 2.30);

FindColorsTolerance(FurnaceTPA, 6207962, MSX1, MSY1, MSX2, MSY2, 5);

SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);

N := High(FurnaceTPA);
if (N < 1) then
begin
FurnaceTries := FurnaceTries + 1;
WriteLn('We have failed to find the furnace ' + IntToStr(FurnaceTries) + ' times in a row.');
WriteLn('Trying ' + IntToStr(5 - FurnaceTries) + ' more times until Termination.');
Wait(RandomRange(200, 500));
ClickDTMRotatedIn(F3DTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left);
repeat
wait(RandomRange(50,100));
until not IsMoving;
Flag;

SmeltBars;
Exit;
end;
MarkTime(Counter);
for i := 0 to N do
begin
r := random(N);
wait(RandomRange(200, 350));
MMouse(FurnaceTPA[r].x, FurnaceTPA[r].y, -10, -10);
Wait(RandomRange(100, 175));
if WaitUpText('lt F', 1000) then
Break;
if (TimeFromMark(Counter) > 3000) then
begin
FurnaceTries := FurnaceTries + 1;
WriteLn('We have failed to find the furnace ' + IntToStr(FurnaceTries) + ' times in a row.');
WriteLn('Trying ' + IntToStr(5 - FurnaceTries) + ' more times until Termination.');
Wait(RandomRange(200, 500));
ClickDTMRotatedIn(F3DTM, MMX1,MMY1, MMX2,MMY2, -Pi, Pi, Pi/60, [], mouse_Left);
SPS_Walktopos(p3);
SPS_Walktopos(p4);
MakeCompass('w');
Flag;
SmeltBars;
Exit;
end;
end;
ClickMouse2(True);
Flag;
MarkTime(t);
repeat
wait(RandomRange(250, 300));
until((GetColor(502, 27)) = 2929149) Or (TimeFromMark(t) > 5000);
if ((GetColor(502, 27)) = 2929149) then
begin
WriteLn('We found the furnace, TPAs are awesome');
begin
FindNormalRandoms;
if Debug then
WriteLn('Trying to smelt ' + BarType);
If Not(LoggedIn) Then LoginCheck;
if FindColor(BBx, BBy, 1290732, Bxs, Bys, Bxe, Bye) then
begin
SMART_DrawBoxEx(true, false, intToBox(Bxs, Bys, Bxe, Bye), clGreen);
WriteLn('Smelting ' + BarType)
end else
begin
if ((FindColor(BBx, BBy, 1269431, 21, 127, 66, 172)) and (BarType = 'steel')) then
begin
WriteLn('Selecting Steel');
Wait(RandomRange(50,200));
MouseBox(25, 131, 62, 168, 1);
SMART_DrawBoxEx(true, false, intToBox(21, 127, 66, 172), clGreen);
WriteLn('Smelting Steel');
end else
begin
WriteLn('Could not smelt '+ BarType +'. Re-looping');
Exit;
end;
end;
end;
begin
MouseBox(262, 303, 408, 325, 1);
SMART_ClearCanvas;
repeat
wait(RandomRange(50, 100));
until((GetColor(293, 180)) = 263402);
WriteLn('Waiting for smelting to finish...');
Wait(500);
Status := 'Smelting...';
Proggy;
repeat
If Random(1000) = 1 Then RandomMovement;
wait(RandomRange(100, 350));
If Random(250) = 1 Then CheckFriends;
Wait(Random(50));
If Random(200) = 1 Then ExamineInv;
If Random(150) = 1 Then HoverSkill('Smithing', False);
If Random(150) = 1 Then HoverSkill('Crafting', False);
If Random(200) = 1 Then RandomRClick;
If Random(100) = 1 Then PickUpMouse;
If Random(50) = 1 Then MMouseOffClient('rand');
if LevelUp then
SaveScreenshot('C:\Simba\Screenshots\screenshot_LevelUp@ ' + TheTime + '.png');
until not ((GetColor(293, 180)) = 263402);
FurnaceTries := 0;
end;
FurnaceTries := 0;
end Else SmeltBars;
FurnaceTries := 0;
end;

begin
SRL_SixHourFix := True;
SetupSRL;
DeclarePlayers;
SPS_AnyAngle := True;
GetBarConstants;
SPS_Setup(Runescape_Surface,['ak']);
repeat
MarkTime(StartTime);
LoginCheck;
FindNormalRandoms;
SemiRandomChat;
ClickNorth(SRL_ANGLE_HIGH);
Setup;
repeat
Bank;
DTMWalkToFurnace;
Flag;
SmeltBars;
FurnaceTries := 0;
DTMWalkToBank;
until(not LoggedIn) or (Bars > HowManyBars);
until (Bars > HowManyBars) or (not LoggedIn);
FreeAll;
Proggy;
Logout;
end.

Image file here. [ATTACH=CONFIG]19751[/ATTACH]

Oh place it into runescape_surface, and yup that should be it! Isn't as fast as yours, but should be more stable :P

thebob142

2013-03-21 01:15:56

i get the same problem with getting stuck between the bank and the furnace. tried guthix version and it doesn't grab ore out of bank after opening it then runs to furnace.

x44

2013-03-22 02:13:46

im having a problem with withdrawing ores and it not finishing smiting steel bars

attackio

2013-03-23 12:40:55

YES! Its working fine for me, i too had some errors like not logging in etc but i just deleted the login things and had a few shots but it works now. You're the best!

Ian

2013-03-23 13:18:17

From: GuthixBoss1

Oh place it into runescape_surface, and yup that should be it! Isn't as fast as yours, but should be more stable :P

Thanks, hopefully if will be useful for some until I do an official one with SPS :)
From: thebob142
i get the same problem with getting stuck between the bank and the furnace. tried guthix version and it doesn't grab ore out of bank after opening it then runs to furnace.

I'll update mine officially soon, try it then :)
From: x44
im having a problem with withdrawing ores and it not finishing smiting steel bars

Make sure you have the production dialog enabled :)
From: attackio
YES! Its working fine for me, i too had some errors like not logging in etc but i just deleted the login things and had a few shots but it works now. You're the best!

Thanks! :)

Also the login things are on the SRL side, so make sure you have your graphics settings set to min detail, fixed mode, safe mode, and max brightness. (99% of login problems are because it wasn't in fixed mode :))

GuthixBoss1

2013-03-26 01:51:23

From: thebob142
i get the same problem with getting stuck between the bank and the furnace. tried guthix version and it doesn't grab ore out of bank after opening it then runs to furnace.

Which ore are you smelting?

quartersun

2013-03-26 01:53:03

Some times fails to find the furnace.
I had trouble with the closebank; on line 1091 as it regularly failed to click the x. Due to this and noticing that the next step in the routine was the path to the furnace, I just removed it completely, and it works much better. Anyone getting stuck on the bank screen I recommend removing line 1091.

I could really do with some help on the furnace fail though.
Other than that, awesome script!

DrMopar

2013-03-26 11:09:54

I have the latest version of all extensions, my simba is up too date. I am experiencing a problem where I am in the bank, and the script logging out and saying "unable to find bank".


=========[] AIO AK Smelter 1,0[]=========
[+] By BMWxi [+]
================
[] Smelting: rune (50 XP Each)
[] Smithing XP Earned: 0 Per Hour: 0
[] Bars Smelted: 0 Per Hour: 0
[] Total Time: 95 hr 13 min 59 sec
========================================
Coalbag Detected!
=========[] AIO AK Smelter 1,0[]=========
[+] By BMWxi [+]
================
[] Smelting: rune (50 XP Each)
[] Smithing XP Earned: 0 Per Hour: 0
[] Bars Smelted: 0 Per Hour: 0
[] Total Time: 1 sec
========================================
Unable to find bank, logging out.
Successfully executed.

I am in the bank,minimum settings for client graphic wise. Any idea's?

thebob142

2013-03-26 21:15:42

From: GuthixBoss1
Which ore are you smelting?


smelting steel bars

attackio

2013-03-28 11:02:45

Doesnt work anymore

Ian

2013-03-28 11:15:34

From: attackio
Doesnt work anymore


I'm updating the script, right now it works mostly 100%. Basically I'm uprooting it and moving it to Burthorpe now that it's F2P.

albertossimus

2013-03-30 07:19:24

First the script didn't find the furnace, but when i reduced lag to minimum, it worked well.
Then sometimes at the furnace, it doesn't smelt. It's in the smelting screen, but doesn't click on the 'smelt' button. Actually, I think it does, the problem may be that it clicks too soon(or checks for the specific color to click on 'smelt' button). So the problem is those micro-lags, but the script should be adjusted to those… Just a suggestion - 0.5 second delay of the clicking on the 'smelt' button.
If i am right, of course. I may be not :P

Ian

2013-03-30 10:24:57

From: albertossimus
First the script didn't find the furnace, but when i reduced lag to minimum, it worked well.
Then sometimes at the furnace, it doesn't smelt. It's in the smelting screen, but doesn't click on the 'smelt' button. Actually, I think it does, the problem may be that it clicks too soon(or checks for the specific color to click on 'smelt' button). So the problem is those micro-lags, but the script should be adjusted to those… Just a suggestion - 0.5 second delay of the clicking on the 'smelt' button.
If i am right, of course. I may be not :P


Shh, don't tell anyone, but there is a beta download of BurthorpeSmelter in the first post. Start at the bank chest.

It might not fix your lag issues, but it is very stable for me, so it's worth a try. Do you usually have lag when using Simba or only this script?

albertossimus

2013-03-31 14:41:27

I had lag cause of OS issues. Fixed it, no more lags anymore. My other comp lags 50% of the time simba scripts are running. So no, that's not unique to your script.

Ian

2013-03-31 15:47:54

From: albertossimus
I had lag cause of OS issues. Fixed it, no more lags anymore. My other comp lags 50% of the time simba scripts are running. So no, that's not unique to your script.


Glad you fixed your lag issue :)

Did you try the Burthorpe Smelter? I'm still looking for feedback on it before I do an official release :)

thebob142

2013-03-31 17:25:02

Reserved for burthorpe

ran for about half an hr till i came back to login screeen something went somewhere there's the debug found by the trees between chest and furnace. running it now noticed it says found bank but really it's sitting there with mouse over barrel.

We found the furnace, TPAs are awesome
Trying to smelt steel
Smelting steel
Waiting for smelting to finish…
Walking to the Bank using SPS
Current player: ********
Exception in Script: The given DTM Index[2] doesn't exist
The following bitmaps were not freed: [6]

RlagkRud

2013-03-31 18:35:34

i'm getting a compiling error when i try to use ur alkharid beta
Invalid number of parameters at line 280

Ian

2013-03-31 22:15:30

From: thebob142
Reserved for burthorpe

ran for about half an hr till i came back to login screeen something went somewhere there's the debug found by the trees between chest and furnace. running it now noticed it says found bank but really it's sitting there with mouse over barrel.

We found the furnace, TPAs are awesome
Trying to smelt steel
Smelting steel
Waiting for smelting to finish…
Walking to the Bank using SPS
Current player: ********
Exception in Script: The given DTM Index[2] doesn't exist
The following bitmaps were not freed: [6]

I'll take a look, thak you :)
From: RlagkRud
i'm getting a compiling error when i try to use ur alkharid beta
Invalid number of parameters at line 280


Let's ask @Sjoekeloe!

Sjoekeloe, How can I fix my error?
From: Sjoekeloe
change top of the script to {$Define Smart8}


That was fun :)

Sjoe

2013-03-31 22:26:33

From: BMWxi


Let's ask @Sjoekeloe!

Sjoekeloe, How can I fix my error?


That was fun :)


LOL, glad I could help ;)

RlagkRud

2013-04-01 01:13:09

From: BMWxi


Quote Originally Posted by Sjoekeloe View Post
change top of the script to {$Define Smart8}

That was fun :)


Do you mean change remove the '8'? cause that's what i did and it worked ;)

Ian

2013-04-01 12:10:16

From: RlagkRud
Do you mean change remove the '8'? cause that's what i did and it worked ;)


Do you have SMART 8?

RlagkRud

2013-04-01 16:12:19

From: BMWxi
Do you have SMART 8?


I have no idea hahaha. I probably have whatever the latest version is.

Ian

2013-04-01 17:17:23

From: RlagkRud
I have no idea hahaha. I probably have whatever the latest version is.


It will say at the top of the SMART window, if you don't have it I recommend getting it :)

RlagkRud

2013-04-01 20:32:47

From: BMWxi
It will say at the top of the SMART window, if you don't have it I recommend getting it :)


Just updated :D
Aside from compatibility, is it really that big a difference? Better detection?

Ian

2013-04-01 21:26:59

From: RlagkRud
Just updated :D
Aside from compatibility, is it really that big a difference? Better detection?


The botting side of things is the same, I think it's just that some bugs were fixed. Maybe some memory leaks patched.

zkgkilla

2013-04-02 11:01:15

beta version didnt run, just straight crashed (im noob at simba so i dont have a clue how to work it)
version 1.1 ran without any problems for 20 seconds and couldn't find bank after that…

thebob142

2013-04-03 16:34:00

ran burth again went for about half an hr came back and it was at the furnace with a full inv of coal so lag seems to be an issue. went to run it again and it pulled out 2 iron ores and the rest coal.

Ian

2013-04-06 20:20:02

@Justin

I've decided I don't want to update the walking or add some other things that would be required to make this stable, if this could be moved to Outdated/Broken that would be appreciated :)