SRL Archive - Outdated / Broken

[RS2] SRL - Al'Kharid Smelter


inferno

2006-02-16 15:27:22


————————————————————————————————————————————————————————–
SRL Smelter

By Inferno

————————————————————————————————————————————————————————–

This script smelts bars at Al'Kharid furnace.
Please post any bugs, progress reports or comments.
————————————————————————————————————————————————————————–
Instructions.

————————————————————————————————————————————————————————–
- In script.
————————————————————————————————————————————————————————–
Known Issues.

————————————————————————————————————————————————————————–
- Tell me.
————————————————————————————————————————————————————————–
Version History:

————————————————————————————————————————————————————————–
v 1.00 - First release.
v 1.10 - No colour setup, Multiple accounts, No specific bank slots for ores.
V 1.20 - Just added some little updates to increase stability and functionality.
————————————————————————————————————————————————————————–
General Notice:

————————————————————————————————————————————————————————–

Use this script at your own risk. I'm not responsible for any of you getting hit by the bannage stick. You take a chance when you auto so don't come crying to me if you get banned.

  • Scar Resource Library rev 2.3+
  • NAME : Al'Kharid Smelter.
  • WRITER : Inferno.
  • CATEGORY : Smelting.
  • DESCRIPTION : Smelts any bar at Al'Kharid.
  • USAGE : Start Al'Kharid bank.
  • AUTOCOLOR : Yes.

Home

2006-02-16 15:34:28

Well done inferno keep doing good work!:)

WT-Fakawi

2006-02-16 17:00:57

Inferno!

You are quick man! Excellent job…
1. was it difficult to migrate to SRL?

2. I notice you dont use bitmaps for oredetection. Try this:

{.include SRL/SRL/skill/smithing.scar}

SetUpSRLSmithing;

Now you have 6*6 bitmaps of all ores and bars.
var IronOre,CoalOre,MithOre,GoldOre,AdamantOre,
TinOre,CopperOre,SilverOre,RuniteOre: integer;

var BronzeBar,IronBar,SilverBar,
SteelBar,GoldBar,MithrilBar,AdamantBar,RuniteBar: Integer;

you could do something like this: (Took it from my melter…)

Function WithdrawBitmapAmount(WhichOre,Amount:Integer): Boolean;
begin

if (FindBitMapToleranceIn(WhichOre,x,y,MSX1,MSY1,MSX2,MSY2,10))
then
begin
Wait((PCSpeed*2)+random(PCSpeed*3));
Mouse(x,y,10,10,False);
Wait((PCSpeed*2)+random(PCSpeed*3));

MarkTime(Mark);
repeat
Wait(PCSpeed*2);
until ((FindBitMapIn(WithDrawX,x,y,MSX1,MSY1,MSX2,MSY2)) or (TimeFromMark(Mark)>(10000)));
if FindBitMapIn(WithDrawX,x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Wait(PCSpeed*4);
Mouse(x,y,0,0,True);
MarkTime(Mark);
repeat
Wait(PCSpeed*4);
until(FindBitMapIn(EnterAmount,x,y,244,404,266,420) or (TimeFromMark(Mark)>(10000)));
Wait(PCSpeed*4);
TypeSend(inttostr(Amount));
Wait(PCSpeed*4);
end
Result:=True;
end
else Result:=False;
end;

This function will find the Bitmap named 'WhichOre' and withdraw 'amount' (if Bank = open of course) It is easier to withdraw now, the Player is not restricted to ores @ the first & second bankslot.

Other then that, good job!


ooo, BTW,

3. Smithing.scar has a OpenFurnace too

Two actually, but I preferred the one with the Global X and Y coords

inferno

2006-02-17 03:24:12

Thanks for compliments guys. Switching to SRL was actually much easier than I thought it would be and the manual is a real help to see what procedures/functions are at the scripters disposal. I will certainly start working on those suggestions along with the multiple users as soon as possible. :)

Spky

2006-02-17 06:56:57

Hey, nice script. Liking the graphical progress report ;) .

WT-Fakawi

2006-02-17 07:14:33

BTW, look @ Symbol.scar

It has two nice functions GetSymbolColor & FindSymbol….
GetSymbolColor returns the color for a given symbol i.e. GetSymbolColor('bank'), returns the color of the BankSymbol, and GetSymbolColor('furnace'), returns the color of the FurnaceSymbol. You might need to experiement with the Global var SymbolAccuracy (0.4 - 0.9) Default = 0.6, but the higher the number, the higher the tolerance andthus the accuracy….
FindSymbol searches for the Symbol Bitmap and returns its coords when found.

inferno

2006-02-17 07:46:46

Thx Spky.

I tried the GetSymbolColor thing in some scripts a while ago while I was using SSI2, the only problem with it was about 10% of the time it returned the wrong colour. I will try it though. ;)

Edit: Hmm, may be a few days till I can test everything works JageX have gone mad on me, I mean literally mad, all my accounts except one have been banned for offensive language… I never use offensive language.

Starblaster100

2006-02-17 07:55:05

From: inferno

  • Scar Resource Library rev 222+
  • NAME : Al'Kharid Smelter.
  • WRITER : Inferno.
  • CATEGORY : Smelting.
  • DESCRIPTION : Smelts any bar at Al'Kharid.
  • USAGE : Start Al'Kharid bank.
  • AUTOCOLOR : No, there two colours to pick.
  • NOTES : First SRL script to be published that isn't written by Fakawi.


Lies!
My ess Miner was the first :D
next version you will see :p

Nice script

WT-Fakawi

2006-02-17 08:30:28

From: inferno
Thx Spky.

I tried the GetSymbolColor thing in some scripts a while ago while I was using SSI2, the only problem with it was about 10% of the time it returned the wrong colour. I will try it though. ;)
That is where the Global Var SymbolAccuracy comes in…. Just increase it to 0.8 and it will work.

BraK

2006-03-13 10:08:14

nice script but was looking for away around my bank problem sadly still looking. good job any who? also learned a lil bit about bmp in the process thats to Fakawi;)

WT-Fakawi

2006-03-13 10:51:18

I have an old routine DTM3Flag (in SRL), that inputs three DTM's (i.e. row of yellow dots of the bankers at different angles (-10', 0', +10')) and plants the flag @ hotspot. I still use it in combination with FindBank…

Black Hat

2006-05-23 17:27:50

It doesnt open the bank???

mike2055

2006-05-23 19:33:29

Thats to be expected seeing as this thread is a couple of months old. Its out of date.

SubiN

2006-05-23 23:34:08

can you update the zscript plz, i ned it bad

inferno

2006-05-24 04:40:58

Hmm… I have recently updated the script but havn't really used it yet so I don't know if it works .:rolleyes: I guess I'll test it soon.

[Edit] I've uploaded the updated version, tell me if anything is wrong with it ;) [/Edit]

_ChArMz

2006-05-24 18:43:11

___________________________________
|Inferno`s Scripts - Smelter
|Worked for 5 Minutes and 23 Seconds
|Smelting Steel bars
|Banked 18 bars
|___________________________________

Nice Script, worked very well, except when it was time to bank, had trouble opening the bank, I had to help it a bit.

WT-Fakawi

2006-05-24 18:48:32

OpenBankQuiet is a very slow, yet highly undetectable BankOpener. It opens the bank in usually no more than 3 mousemovements. Maybe try setting the Face to North, like this:

[php]
Face('N');
OpenBankQuiet('akb');
[/php]

mike2055

2006-05-24 19:07:29

I thought it worked from almost any direction Fakawi.

reckon

2006-05-27 10:04:40

its all right for me id rather have a slow unditectable bankopener rather than the other way round . cheers inderno great script!!

Cheesehunk

2006-05-27 15:23:40

I mgiht update this for personal use, if it already isn't. Is that ok inferno?

I probably won't post it either.

inferno

2006-06-14 10:57:16

Updated. Please tell me of any bugs you encounter.

w4ffl3z

2006-06-16 12:16:22

This script works really well. I smelted over 400 bronze bars with it. Only problem I had was that sometimes when it clicked the smelt symbol it would run behind the place. Banking is fairly slow but none of the less very accurate. Well done on the script and I look forward to testing future updates!

-w4ffl3z

da_professa

2007-03-13 22:54:01

From: inferno
Thanks for compliments guys. Switching to SRL was actually much easier than I thought it would be and the manual is a real help to see what procedures/functions are at the scripters disposal. I will certainly start working on those suggestions along with the multiple users as soon as possible. :)

That is the best thing about srl.. I just loove the manual way too much.. Also about script, I first need to get some new accounts train 'em up.. Then get some ores, and smelt them.. So I'll let u know when I am smelting.. Will be a while tho, I hardly auto..

Mjordan

2007-03-15 22:15:46

this script might not even work/ be really sketchy now da_professa. its pretty old if you didnt notice