U use Deposit(2,8, True)?
try
Simba Code:Deposit(2,28, True)
then check ExistsItem(i) for 2 to 28 // u write this lol
Deposit(2,28,1);
Printable View
Actually what I use is a bit more complicated that that, here are some examples:
For things don't use a coalbag:
Simba Code:InvMouse((RandomRange(1, (CountItems('dtm', AnyInvBarDTM, [])))), mouse_Right);
For things that do:
Simba Code: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
Just sits there after smelting lol, smelting iron.
Trying a DTM check
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
BMX your suggestion fixed it :)
So far its faster than powerbots scripts p/hr :)
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.
Code:=========[] 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
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
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
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 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.
Thanks. That means that when it looked for
Simba Code: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]
Dang, withdrew Mithril ore right now but not coal? Funny because it says that it found the coal in the secondary ore slot...
Darn these sandy places :p I'll fix that up again soon.
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 :)
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 get this error:
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.