PDA

View Full Version : [OSR] AIO Al Kharid Smelter



Frement
03-03-2014, 01:24 PM
THIS SCRIPT IS NO LONGER MAINTAINED

Will smelt any bars or make cannonballs in Al Kharid.

Setup is on lines 54-71.

Progress Reports:
Al-Kharid Smelter - By Frement
- Time Running: 56 Minutes and 39 Seconds
- Bronze smelted: 476 (504/H)
- Experience Gained: 2951 (3125/H)
- Levels Gained: 3 (26)
Al-Kharid Smelter - By Frement
- Time Running: 55 Minutes and 5 Seconds
- Iron smelted: 358 (390/H)
- Experience Gained: 4475 (4874/H)
- Levels Gained: 2 (40)
Al-Kharid Smelter - By Frement
- Time Running: 3 Hours, 22 Minutes and 24 Seconds
- Cannonball made: 5880 (1744/H)
- Experience Gained: 37621 (11152/H)
- Levels Gained: 2 (69)

Solar
03-03-2014, 05:55 PM
Might take a look at how you do things with this script later on. Thanks for sharing.

ry0240
03-25-2014, 09:32 PM
Is Ring of forging supported?

Frement
03-25-2014, 09:49 PM
Is Ring of forging supported?

How does it work and what is required? (Currently not supported)

ry0240
03-25-2014, 10:07 PM
How does it work and what is required? (Currently not supported)

Its basically a ring that gives smelting iron ores a 100% chance of success, each ring is good for 140 smelts so the script would just have to take out a new ring and wear it every 140 iron bars smelted.

Frement
03-25-2014, 10:52 PM
Its basically a ring that gives smelting iron ores a 100% chance of success, each ring is good for 140 smelts so the script would just have to take out a new ring and wear it every 140 iron bars smelted.

Can you add me to skype and give me some: frementoo

Ilya
04-04-2014, 08:31 PM
worked great last night.
now smiths 1 bar, banks, repeats.
update needed.

EDIT: Fixed it by changing blackchatmsg.

Frement
04-04-2014, 08:36 PM
worked great last night.
now smiths 1 bar, banks, repeats.
update needed.

EDIT: Fixed it by changing blackchatmsg.

Were you smelting same bars? And what did the debug box say?

Ilya
04-04-2014, 10:00 PM
Were you smelting same bars? And what did the debug box say?

i was smelting steel bars and black message is different. as well as uptext for coal is just "coal" and not "coal ore" like you had in the script. so i fixed it up a little bit to fit my needs.
working great now.
Al-Kharid Smelter - By Frement
- Time Running: 59 Minutes and 37 Seconds
- Steel smelted: 297 (299/H)
- Experience Gained: 5197 (5230/H)
- Levels Gained: 2 (34)

Frement
04-05-2014, 08:27 AM
i was smelting steel bars and black message is different. as well as uptext for coal is just "coal" and not "coal ore" like you had in the script. so i fixed it up a little bit to fit my needs.
working great now.
Al-Kharid Smelter - By Frement
- Time Running: 59 Minutes and 37 Seconds
- Steel smelted: 297 (299/H)
- Experience Gained: 5197 (5230/H)
- Levels Gained: 2 (34)

Yeah I have a new version with more fixes to different bars, like gold for example, haven't had time to update the one in the post :)

Ilya
04-05-2014, 08:38 AM
Yeah I have a new version with more fixes to different bars, like gold for example, haven't had time to update the one in the post :)
Great!
I've got it making 450+ steel bars an hour. The only time it gets stuck is randoms >.<

Frement
04-05-2014, 08:49 AM
Great!
I've got it making 450+ steel bars an hour. The only time it gets stuck is randoms >.<

Yeah randoms are a problem, glad you got it sorted out :)

Zackington
04-06-2014, 10:55 AM
did you look into the ring of forging option?

Frement
04-06-2014, 11:21 AM
did you look into the ring of forging option?

I will be adding it soon with a few improvements.

RyGuy
04-08-2014, 06:25 AM
Cannonballs would also be a great addition to this!

Frement
04-16-2014, 06:57 AM
Cannonballs would also be a great addition to this!

Yeah, needed to make some cannonballs so I made the support for that, still missing ring of forging support, will be adding that shortly.

Al-Kharid Smelter - By Frement
- Time Running: 3 Hours, 22 Minutes and 24 Seconds
- Cannonball made: 5880 (1744/H)
- Experience Gained: 37621 (11152/H)
- Levels Gained: 2 (69)

RyGuy
04-16-2014, 06:19 PM
Yeah, needed to make some cannonballs so I made the support for that, still missing ring of forging support, will be adding that shortly.

Al-Kharid Smelter - By Frement
- Time Running: 3 Hours, 22 Minutes and 24 Seconds
- Cannonball made: 5880 (1744/H)
- Experience Gained: 37621 (11152/H)
- Levels Gained: 2 (69)

Great to hear! I'll give you a proggy shortly after the release

RyGuy
04-17-2014, 08:05 PM
Lost my proggy but it did okay smithing ~1700 cannonballs p/h! I was babysitting the script just to see how it would run and noticed a few things. Sometimes it runs behind the room that the furnace is in or behind the bank and then has to run all the way back around. Also, I got a frog random, and after it was solved, the script started using the cannonballs on the furnace and typing "55" into the chat and hitting enter (the number it uses when you smith x). It did this a few times but seemed like it was stuck in a loop of doing this. This also happened when it ran to the back of the bank and then failed to bank after running back around. It went to the furnace and started using the cannonballs from the previous inventory on the furnace.

Frement
04-17-2014, 08:10 PM
Lost my proggy but it did okay smithing ~1700 cannonballs p/h! I was babysitting the script just to see how it would run and noticed a few things. Sometimes it runs behind the room that the furnace is in or behind the bank and then has to run all the way back around. Also, I got a frog random, and after it was solved, the script started using the cannonballs on the furnace and typing "55" into the chat and hitting enter (the number it uses when you smith x). It did this a few times but seemed like it was stuck in a loop of doing this. This also happened when it ran to the back of the bank and then failed to bank after running back around. It went to the furnace and started using the cannonballs from the previous inventory on the furnace.

Yeah I'm aware of these issues, theres nothing I can do that would fix the map walking (well, nothing I can do to fast fix it). The other issues where it uses the cannonball on the furnace, I can fix those in the next release.

hakishakataki
04-24-2014, 12:06 AM
I will be adding it soon with a few improvements.

HEY FREMENT! I figured out how to add ring of forging with just simple math.

the ring of forging melts after 140 ores, that's exactly 5 loads of 28 iron ores.

to add the ring of forging, simply add coordinate input for the ring of forging location in the bank (like with the ores) and tell the script to withdraw and equip one after 5 repeats

I also timed the bot and it will take roughly 10 minutes to do 5 loads

one mooooore thing.

if you toggle run only on the run back to the bank (so that you are walking to the smelter, running back to the bank) you will always have run as you regenerate how much you used on the walk part.

ry0240
04-25-2014, 10:29 PM
Lost my proggy but it did okay smithing ~1700 cannonballs p/h! I was babysitting the script just to see how it would run and noticed a few things. Sometimes it runs behind the room that the furnace is in or behind the bank and then has to run all the way back around. Also, I got a frog random, and after it was solved, the script started using the cannonballs on the furnace and typing "55" into the chat and hitting enter (the number it uses when you smith x). It did this a few times but seemed like it was stuck in a loop of doing this. This also happened when it ran to the back of the bank and then failed to bank after running back around. It went to the furnace and started using the cannonballs from the previous inventory on the furnace.

I ran into that loop problem as well, changing line 346 from

InvMouse(2, 1);
to

InvMouse(28, 1);
seemed to solve it.

nicky101
05-03-2014, 03:05 PM
i can't donate, but the least i can do is thank you for your script!... so thanks man!

TehNeonFishy
05-24-2014, 11:26 AM
I can't get it to start, it seems to move the mouse too far into the corner of the slot the ore is in so the text never comes up so it thinks I am out of ores.

Trying to smith bronze bars.

Harrier
06-20-2014, 09:39 AM
Al-Kharid Smelter - By Frement
- Time Running: 1 Hours, 12 Minutes and 57 Seconds
- Steel smelted: 473 (389/H)
- Experience Gained: 8278 (6808/H)
- Levels Gained: 1 (48)
Great script! Although it often goes behind the bank/smelting house which is why my bar p/h is low (Doing steel bars)

tado337
07-08-2014, 09:35 AM
I can't get it to start, it seems to move the mouse too far into the corner of the slot the ore is in so the text never comes up so it thinks I am out of ores.

Trying to smith bronze bars.

Find this line in script:
MouseBox(BBox.X1 + 2, BBox.Y1 + 25, BBox.X2 - 5, BBox.Y2 + 3, mouse_move);

here you can change position. in my case it works fine when i change BBox.Y1 + 25 to +15

so change it to this:
MouseBox(BBox.X1 + 2, BBox.Y1 + 15, BBox.X2 - 5, BBox.Y2 + 3, mouse_move);

hope it works for you.

hakishakataki
07-08-2014, 05:12 PM
23521

I'm trying to modify this to make molten glass with buckets of sand and seaweed. I need a little help with the withdrawl and furnace operator

EDIT: atm im trying to add molten glass and its components to the script, idk what those number pairs i selected in the picture are.

EDIT 2: OOOOOH! i think i know what they are! it's the point on the smelting interface! so then i think i need help writing a part that does "if doing molten glass, then use bucket of sand on furnace".

EDIT 3: I've figured out everything to get it to detect the stuff and run to the furnace to make the glass. But now what it does is wait until only 4 glass are made then run back to the bank. I think it's an issue in the smelting procedure but i cant figure it out.

EDIT 4: okay, figured that one it, it had to do with the black text dection. Except, molten glass doesnt give a notice that you have run out.

The only text is (you heat the sand and soda ash in the furnace to make glass). How Can I change the script to be able to detect it is out of ash?

EDIT 5: I hillbilly fixed it with a "sleep 16000 + random 500" but it messes up if the game laggs.

I bet using one of the inventory count/array functions would be able to see how much molten glass is there then run back, but I'm having trouble figuring out the code. Help would be appreciated! :)

tado337
07-10-2014, 05:13 PM
hey @hakishakataki if you manage to make it work can you send me the modified script.

Basic
07-11-2014, 04:52 PM
Find this line in script:
MouseBox(BBox.X1 + 2, BBox.Y1 + 25, BBox.X2 - 5, BBox.Y2 + 3, mouse_move);

here you can change position. in my case it works fine when i change BBox.Y1 + 25 to +15

so change it to this:
MouseBox(BBox.X1 + 2, BBox.Y1 + 15, BBox.X2 - 5, BBox.Y2 + 3, mouse_move);

hope it works for you.

How did you figure this out? I can't seem to get the script working because the bank slots are out of place. Maybe from an update. Any assistance would be appreciated

hakishakataki
07-11-2014, 05:38 PM
How did you figure this out? I can't seem to get the script working because the bank slots are out of place. Maybe from an update. Any assistance would be appreciated

disable bank tabs and the script will run like a baby koala

Basic
07-11-2014, 05:52 PM
okay thank you!

Basic
07-11-2014, 06:22 PM
disable bank tabs and the script will run like a baby koala

Bank tabs disabled still not running.sometimes it hovers over something in the bank and other times it scroll down through it.

Selyth
07-16-2014, 02:23 AM
Thanks for the script! I'm currently using your Varrock East mine and banker and it works flawlessly, I'm hoping this one will too! Oh and I've logged just over an hour on the Varrock miner and was wondering if you wanted me to send you the proggy on the thread if it gets higher?

Frement
07-16-2014, 04:28 AM
I will be rewriting all my scripts in the near future, currently no support will be offered to my existing ones, they might work or they might not work. Since the bank tab update anything that withdraws from bank would most likely not work.

yente666
08-01-2014, 05:44 PM
Hey I'm just wondering.. if I run your script it runs back and forth smelting two bars a run.
Is something wrong with the script or are my settings wrong?
Could you explain what the settings mean? Cause they do not make too much sense to me.. :/

These are the settings:
Players[0].Integers[0] := BAR_STEEL; //Bars to smelt: BAR_BRONZE, BAR_BLURITE, BAR_IRON, BAR_SILVER, BAR_STEEL, BAR_GOLD, BAR_MITHRIL, BAR_ADAMANT, BAR_RUNITE, BAR_CANNONBALL
Players[0].Integers[1] := 1; //Primary ore column
Players[0].Integers[2] := 6; //Primary ore row
Players[0].Integers[3] := 9; //Secondary ore column
Players[0].Integers[4] := 6; //Secondary ore row

bangclaw117
08-04-2014, 06:28 PM
Hey I'm just wondering.. if I run your script it runs back and forth smelting two bars a run.
Is something wrong with the script or are my settings wrong?
Could you explain what the settings mean? Cause they do not make too much sense to me.. :/

These are the settings:
Players[0].Integers[0] := BAR_STEEL; //Bars to smelt: BAR_BRONZE, BAR_BLURITE, BAR_IRON, BAR_SILVER, BAR_STEEL, BAR_GOLD, BAR_MITHRIL, BAR_ADAMANT, BAR_RUNITE, BAR_CANNONBALL
Players[0].Integers[1] := 1; //Primary ore column
Players[0].Integers[2] := 6; //Primary ore row
Players[0].Integers[3] := 9; //Secondary ore column
Players[0].Integers[4] := 6; //Secondary ore row
Same problem, it either does 1 or 2 bars, then runs back. Someone said they fixed it using a blackmessage?

Widget
11-18-2014, 04:52 PM
Got mine working (with tabs), here's what I did:

- First off, don't filter your game messages. It's making sure you're smelting using those.

- In F_CloseBank, use these mouse coords:
MMouse(486, 24, 2, 2);

- If using tabs, in F_WithdrawEx, replace the first part with:
BBox := BankIndexToMSBox(BankPointToBankIndex(Point(Col, Row)));
BBox := IntToBox(BBox.X1 + 2, BBox.Y1 + 5, BBox.X2 - 2, BBox.Y2 - 3);
GetMousePos(X, Y);
if (not PointInBox(Point(X, Y), BBox)) then
MouseBox(BBox.X1 + 2, BBox.Y1 + 5, BBox.X2 - 5, BBox.Y2 - 3, mouse_move);

- If you don't want to be spammed with progress reports at maximum speed, in Smelt, add a Wait() before ProgressReport at the end:
wait(500);
ProgressReport;

- Also consider changing ProgressReport to start with ClearDebug at the beginning:
begin
ClearDebug;
ExpGained := R_GetSkillExp(SKILL_SMITHING) - StartExp;

- For steel bars, I found it better to use Deposit All in the main loop, and move it to the beginning instead of the end:
repeat
F_OpenBank;
F_DepositAll;
WithdrawOres;
F_CloseBank;
WalkToFurnace;
Smelt;
WalkToBank;
F_OpenBank;
//Deposit(2, 28, True);
ProgressReport;
until(False);

Seems to be working well so far

Al-Kharid Smelter - By Frement
- Time Running: 6 Minutes and 48 Seconds
- Steel smelted: 54 (476/H)
- Experience Gained: 945 (8338/H)
- Levels Gained: 0 (62)

Edit: I noticed if the furnace's center ends up offscreen, it will assume it managed to find it and just type 55 into chat then fail and walk back to bank.

Swiftux
11-28-2014, 03:21 AM
Got mine working (with tabs), here's what I did:

- First off, don't filter your game messages. It's making sure you're smelting using those.

- In F_CloseBank, use these mouse coords:
MMouse(486, 24, 2, 2);

- If using tabs, in F_WithdrawEx, replace the first part with:
BBox := BankIndexToMSBox(BankPointToBankIndex(Point(Col, Row)));
BBox := IntToBox(BBox.X1 + 2, BBox.Y1 + 5, BBox.X2 - 2, BBox.Y2 - 3);
GetMousePos(X, Y);
if (not PointInBox(Point(X, Y), BBox)) then
MouseBox(BBox.X1 + 2, BBox.Y1 + 5, BBox.X2 - 5, BBox.Y2 - 3, mouse_move);

- If you don't want to be spammed with progress reports at maximum speed, in Smelt, add a Wait() before ProgressReport at the end:
wait(500);
ProgressReport;

- Also consider changing ProgressReport to start with ClearDebug at the beginning:
begin
ClearDebug;
ExpGained := R_GetSkillExp(SKILL_SMITHING) - StartExp;

- For steel bars, I found it better to use Deposit All in the main loop, and move it to the beginning instead of the end:
repeat
F_OpenBank;
F_DepositAll;
WithdrawOres;
F_CloseBank;
WalkToFurnace;
Smelt;
WalkToBank;
F_OpenBank;
//Deposit(2, 28, True);
ProgressReport;
until(False);

Seems to be working well so far

Al-Kharid Smelter - By Frement
- Time Running: 6 Minutes and 48 Seconds
- Steel smelted: 54 (476/H)
- Experience Gained: 945 (8338/H)
- Levels Gained: 0 (62)

Edit: I noticed if the furnace's center ends up offscreen, it will assume it managed to find it and just type 55 into chat then fail and walk back to bank.

Thank you for this, I got it working but I was wondering if it was possible to use the "Make All" option when making cannonballs, I tried modifying it myself but I got all confused as I'm new to all this stuff. I set the "Make X" option to "Make All" and removed the bit where it enter 55, but after it has finished the whole inventory, it just sits there and doesn't bank.

I assume this is because of -

while (not FindBlackChatMessage('run out')) do begin
if (FindBlackChatMessage('together in') or FindBlackChatMessage('smelt') or FindBlackChatMessage('retrieve') or
FindBlackChatMessage('fail to refine') or FindBlackChatMessage('and two heaps') or FindBlackChatMessage('lump of') or
FindBlackChatMessage('cannonballs from')) then
MarkTime(Timer);
- because when using the make all option at the end of an inventory there is no "run out" message, I tried doing different stuff but as I said I'm no good at this at all. Any help would be appreciated.

Widget
11-29-2014, 03:04 AM
Thank you for this, I got it working but I was wondering if it was possible to use the "Make All" option when making cannonballs, I tried modifying it myself but I got all confused as I'm new to all this stuff. I set the "Make X" option to "Make All" and removed the bit where it enter 55, but after it has finished the whole inventory, it just sits there and doesn't bank.

I assume this is because of -

while (not FindBlackChatMessage('run out')) do begin
if (FindBlackChatMessage('together in') or FindBlackChatMessage('smelt') or FindBlackChatMessage('retrieve') or
FindBlackChatMessage('fail to refine') or FindBlackChatMessage('and two heaps') or FindBlackChatMessage('lump of') or
FindBlackChatMessage('cannonballs from')) then
MarkTime(Timer);
- because when using the make all option at the end of an inventory there is no "run out" message, I tried doing different stuff but as I said I'm no good at this at all. Any help would be appreciated.
It's probably not the best solution (I don't have any cannonballs to see if there's any text) but you can time how long a load of cannonballs takes and replace that part with a wait(x) method, where x is the time in milliseconds (e.g. 15 seconds is wait(15000);.)

Normally you'd want to be checking for randoms but that doesn't really matter any more. Also you'll have to put it back if you want something other than cannonballs :p

msemtex
03-06-2015, 11:23 AM
Hi guys,

I have an issue with this script. The ores are successfully found in the bank, however, the cursor moves onto the first ore and says that there are no ores.

I would rewrite it the withdraw method, but I'm not familiar with reflection (I know DTMs & SPS).

EDIT: Solved the issue, downloaded the reflection files again. Seems to be working now.

vashanddou
03-14-2015, 08:02 PM
My main problem is it sometimes doesn't withdraw and just derps.

R A G N A R
04-13-2015, 09:56 PM
Can someone please fix this.