SRL Archive - RS3 Outdated / Broken Scripts

[SRL] Al-Kharid smelter


Sumilion

2006-08-14 06:30:08

Sub Zero's Al-Kharid Smelter
Version 1.10


Yeaheah!!! My very first script. Ive started from scratch since 0.55, and now i present to you, 1.10 :)

Still won't be suitable for an overnight run i think, but you can try.

Things that need to be done :
-Anti-randoms
-Logging In - Must be done in a jippie, right?
-Auto-color
-Progress report
-More stability ( even more added now)
-Perhaps more players

Hey, that's nothing

Green = done
Red = screw it

For a very first script, i don't think this is too shaggy :D , but please post your comments and bugs here.

v0.55 - Fixed some bugs
v1.0 - Started from scratch, WAY better procedures, good progress report, fine stability
v1.05 - Fixed some more bugs.
v1.10 - The new srl caused some problems, fixed now

Sumilion

2006-08-14 06:33:36

Because of a silly misunderstanding, my previous thread about the smelter here was destroyed. It's still the same script. As for Original Daniel, who posted a question in that thread, i think its fixed now, i'm guessing you had SRL 3.0 :)

Wizzup?

2006-08-14 06:37:29

My mistake, sorry peeps, a mis-understanding took place here.

Original Daniel

2006-08-16 04:58:22

Yeah the script compiles and runs now. But i have the same problem as that other guy, when i run it its really laggy, and sometimes it stops because its lagging so much. And my computer isnt slow, i have broadband, and ive never had a problem with lag using scar before. I randomly guessed it was the autocolour, same lag with ac and not. Do you know what the problem is? Maybe its something to do with bitmaps.

Sumilion

2006-08-16 05:24:32

yeah, i think i do. Lemme gues, you are getting this lag everytime it tries to open the bank? Well if it is the case, then here is your answer : I used OpenBankQuiet(); to open the bank, and it lags a lot! So if its not working for you, then do a Ctrl+f on the script, and then change the line that has OpenBankQuiet('akb'); to OpenBank3; That one lags less…

Original Daniel

2006-08-16 06:21:45

Seems like it worked, i don't know for sure though because I ended up smelting all my iron except 2 legitly. When I get more (probably in the next couple days) then ill try again and let you know if it works.

Sumilion

2006-08-16 06:51:56

k, im off for a few days of vacation for now, but when i get back, im planning on redoing this script, cause it uses some silly ways some times :D

Kronos

2006-10-14 17:59:15

Hey Sumilion, sorry for posting so long after the previous post, but (if you're still watching this) does this work any more?

I won't be surprised if I don't get a response, but if you get a chance, could you let me know? I'm interested in smelters, and there aren't really many out there (at least that I could find).

Sumilion

2006-10-14 18:57:39

Hah! If it still works ill give you 500k ^^. Fakawi made a smelter just a few days ago, although it has a long walking procedure it looks very promising, i would advise using that one :). Im busy getting all my accs combat lvl up so i won't attract so much attention in the guild, after that i can mine LOADS of coal ^^, thus test a smelter :)

the scar noob

2006-10-15 10:33:11

it doesn't work it withraws nothing! plz send also private message!
ty :p

SoupyBastrd

2006-10-15 10:39:23

Sub Zero Do u by chance play EE2?

Sumilion

2006-10-15 12:21:40

Changed my name to Sumilion, for that exact reason ;), Sub Zero is just not original and i don't think i play EE2 …

@ The scar noob, what do you mean :confused:

legendaryhero90

2006-10-16 20:46:06

you know…
i tested the previous smelter a loooooooooooong time ago and it didnt work
i.e. didnt smelt at all…

i hope this works better than the last one since im not too fond of walking back and forth between draynor and lumbridge just to smelt iron.:(h):

Sumilion

2006-10-17 01:24:17

Please stop diggin this thread out of it's grave, it doesnt work, it was my first script and had a million flaws, sorry.

Kronos

2006-10-19 20:33:11

Sorry Sumilion, didn't mean to resurrect this thread. Just wanted to ask a stupid question…..:duh:

Thanks anyway.

Czepa

2006-12-14 05:06:09

can i have my 500k? it still works well except for one thing. when it clicks on the furnace… it wait 5 seconds before right clicking on the steel option

my rs username is zezima pm me in-game

Sumilion

2006-12-14 08:39:08

From: Czepa
can i have my 500k? it still works well except for one thing. when it clicks on the furnace… it wait 5 seconds before right clicking on the steel option

my rs username is zezima pm me in-game


Riiighht… :p

Czepa

2006-12-14 09:08:33

im not zezima… but really the script works, only prob is that it wait for like 10 seconds before it right clicks the steel option in the furnace could you tell me which line it is that i have to change the wait time for?

Sumilion

2006-12-14 09:30:06

Ill tell you if i dont have to pay XD

anandacote

2006-12-14 11:50:03

Cool…I'll try that

Czepa

2006-12-14 21:10:00

yeh, thats cool i didnt expect you to pay 500k lol. i need to change the wait time for what i mentioned above.. and the wait time before it opens the bank… or do i just not use openbankquite or whateva it is i use the other one? is there any chance u could change some of the wait times so that it runs at a more steady speed and then repost? if ur gonna come back at me with something about it being more detectable. i dont care bout being banned, ive found that after getting my 85 mining. it isnt really that special. mining rune on f2p sucks ass

Wool

2006-12-14 22:04:31

Wish I could test this out, I got 5000 coal lying around and nothinn else lol
Ill get back to you once I do though :D

Sumilion

2006-12-15 09:08:40

I looked through it but i can't see why it would take long near the furnace.

Czepa

2006-12-15 10:45:27

From: Sumilion
I looked through it but i can't see why it would take long near the furnace.

it takes long between the time it clicks on the furnace and right clicks steel bars

and when it walks into the bank it takes ageas before it moves the mouse over to the bank

id be saying that the time for these would be in srl? if your above statement it correct

Czepa

2006-12-17 03:30:06

BUMP

reply sumilian

Sumilion

2006-12-17 04:46:37

From: Czepa
BUMP

reply sumilian


Lawl, if you give me some ores to test on ;)

Czepa

2006-12-17 07:17:18

From: Sumilion
Lawl, if you give me some ores to test on ;)

mate… i have 4k of steel bars to smelt… gimme the fix and ill use ur script to do the lot

Sumilion

2006-12-17 07:55:33

I meant like 100 coal en 50 iron or just 50 iron, i dunno, so i can make a small update to the script.

rachelishot0

2006-12-17 08:12:23

From: Wool
Wish I could test this out, I got 5000 coal lying around and nothinn else lol
Ill get back to you once I do though :D


You wanna buy 2.5k iron?

Czepa

2006-12-17 09:57:31

From: Sumilion
I meant like 100 coal en 50 iron or just 50 iron, i dunno, so i can make a small update to the script.
oooh woops i didnt know u meant.. for tweaking yourself.. well.. contact me through msn or pm and ill eather borrow you my account or give you some ore

Czepa

2006-12-17 23:06:28

sumilian edited the script for me last night… hes a fucking legend… it works alot faster now and its great:

//---------------------Al-Kharid Auto Smelter by Sub Zero-----------------\\
{ Version 1.10 ]
[ Powered by PhantomBMX, WhiteShadow, c0de, Jagex_Fagex(<-they helped me)]
[ and ofcourse, Sub Zero. ]
[ ]
[ What does it do? It will first of all store everything you have, ]
[ then withdraws all the needed ores (with thnx to WT-Fakawi), then ]
[ it smelts them and banks them again (in a loop). ]
[ ]
[--------------------------------------------------------------------------]
[ ]
[ Setup: ]
[ 1. Set the settings correctly from line 33-61 ]
[ 2. If you want the script to gamble the Box, go to ]
[ C:\Program Files\SCAR 2.03\includes\SRL\SRL\core\AntiRandoms.scar ]
[ then to line 35 and change true to false. ]
[ 3. Drag the crosshair to RS. ]
[ 4. Press the green play button or ctrl+alt+r and have fun! ]
[ ]
[--------------------------------------------------------------------------}
program AlKharidSmelter;
{.include SRL\SRL.scar}
{.include SRL\SRL\skill\Smithing.scar}
var
BarsSmelted, OresNeeded : Integer;
ExpPerBar : Extended;
MMBank, MMFurnace : Integer;
SmeltX, TextStar : Integer;
WX, WY : Integer;

const
//----------------Be sure to check the settings below!----------------\\
BarsPerPlayer = 0; //How many bars per player (0 is no logout at all)
NumberOfUsers = 1; //How many players you want to use.
StartPlayer = 0; //With which player you want to start with.
MMBankColor = 1277574; //Fill in if wanted (0 is auto-color)
MMFurnaceColor = 3118079; //Fill in if wanted (0 is auto-color)

//-------------------------Player settings----------------------------\\
procedure DeclarePlayers; //thnx to c0de, but made by me
Begin //If you want more players, just copy paste
//one of these lists, and change [(number)] to
//[4] or more.
HowManyPlayers := NumberOfUsers;
NumberOfPlayers( HowManyPlayers );
CurrentPlayer := StartPlayer;

Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'sern';
Players[0].Skill := 'Steel';
Players[0].Active := True;
End;

//------------------------Setup/Data----------------------------\\
Procedure LoadBitmaps;
Begin
SmeltX := BitmapFromString(9, 13, 'z78DA3330201FB82101' +
'62C429D185A98618F594E822DE55F477213D439E92F8A2350000E' +
'0599739');
TextStar := BitmapFromString(8, 6, 'z78DA3330C0062C90486' +
'2007EF516249294B887723351C501D8B236B1');
End;

Procedure UnloadBitmaps;
Begin
FreeBitmap(SmeltX);
End;

Procedure SetupClient;
Begin
SetupSRL;
SetupSRLSmithing;
ClearDebug;
DeclarePlayers;
LoadBitmaps;
If (MMBankColor > 0) then
MMBank := MMBankColor;
If (MMFurnaceColor > 0) then
MMFurnace := MMFurnaceColor;
End;

Procedure SetupUser;
Begin
ActivateClient;
wait(500);
If (not (LoggedIn)) then LoginPlayer;
PerfectNorth;
SetRun(true);
End;

Procedure BarsInfo;
Begin
Case Players[CurrentPlayer].Skill of
'Bronze' :
Begin
ExpPerBar :=6.5;
OresNeeded := 28;
End;
'Iron' :
Begin
ExpPerBar :=12.5;
OresNeeded := 28;
End;
'Silver' :
Begin
ExpPerBar :=13.5;
OresNeeded := 28;
End;
'Steel' :
Begin
ExpPerBar :=17.5;
OresNeeded := 27;
End;
'Gold' :
Begin
ExpPerBar :=22.5;
OresNeeded := 28;
End;
'Mithril' :
Begin
ExpPerBar :=30;
OresNeeded := 25;
End;
'Adamantite':
Begin
ExpPerBar :=37.5;
OresNeeded := 28;
End;
'Rune' :
Begin
ExpPerBar :=50;
OresNeeded := 27;
End;
End;
End;

Procedure MultiPlayer;
Begin
If (BarsPerPlayer > 0)Then
Begin
If(BarsPerPlayer<BarsSmelted)Then
Begin
Logout;
wait(5000);
RandomNextPlayer(true);
SetupUser;
End;
End;
End;

Procedure WithdrawBmpAmmount(Bitmap, Amount : Integer); // Thanks to fawki =)
var
TimesChecked : Integer;
Begin
BarsInfo;
if(BankScreen)and(TimesChecked < 4)then
Begin
TimesChecked := TimesChecked+1;
if(FindBitMapToleranceIn(Bitmap, X, Y, 5, 5, 498, 323, 10))then
Begin
Wait(200+Random(300));
MMouse(X, Y, 8, 8);
wait(200);
Mouse(X, Y, 8, 8, False);
repeat
Wait(200);
until(FindBitmapToleranceIn(SmeltX, X, Y, 5, 5, 498, 323, 5));
if(FindBitMapToleranceIn(SmeltX, X, Y, 5, 5, 498, 323, 5))then
Begin
Wait(400);
Mouse(X, Y, 0, 0, True);
repeat
Wait(400);
until(FindBitMapToleranceIn(TextStar, X, Y, 247, 402, 264, 417, 5));
Wait(400);
TypeSEnd(IntToStr(Amount));
Wait(400);
End;
End else
if(GetColor(474, 75) = 5531254)then
Begin
MMouse(474, 278, 0, 0);
Wait(200+Random(100));
Holdmouse(474, 278, True);
repeat
Wait(10);
until(GetColor(473, 99) = 1777699);
ReleaseMouse(474, 278, True);
Wait(300+Random(200));
WithdrawBmpAmmount(Bitmap, Amount);
End else
if(GetColor(472, 75) = 1777699)then
Begin
FixBank;
Wait(300+Random(200));
WithdrawBmpAmmount(Bitmap, Amount);
End;
End;
Wait(500 + Random(300));
End;

Procedure ProgressReport; //Created by PhantomBMX, thnx, thnx, thnx!
var MyHours, MyMinutes, MySeconds, TSeconds, Rate, Spaces, nn, ii, ee, TotalSpace,
Messages, ItemVar :Integer; space :String; s, p : array of String;
Begin
BarsSmelted := BarsSmelted + InvCount;
ItemVar:= BarsSmelted;
MyHours:= ScriptTime(1);
MyMinutes:= ScriptTime(2);
MySeconds:= ScriptTime(3);
if(MyHours>0)then TSeconds:=TSeconds + (MyHours*3600);
if(MyMinutes>0)then TSeconds:=TSeconds + (MyMinutes*60);
if(MySeconds>0)then TSeconds:=TSeconds + MySeconds;
if(ItemVar <> 0)then
Rate:= Round((ItemVar / TSeconds)*3600);
ee:= Round(ExpPerBar);
Messages:= 5;
TotalSpace:= 54;
setarraylength(s, Messages);
setarraylength(p, Messages);
s[0]:= 'Worked For ' + ScriptTime2(2);
s[1]:= 'Bars Smelted : ' + inttostr(BarsSmelted);
s[2]:= 'Bars Per Hour : ' + inttostr(Rate);
s[3]:= 'Estimated XP : ' + inttostr(ee * BarsSmelted);
s[4]:= 'Average XP/HR : ' + inttostr(Rate * ee);
for ii:= 0 to Messages - 1 do
Begin
space:= '';
spaces:= TotalSpace - Length(s[ii]);
for nn:= 1 to spaces - 3 do
space:=space + ' ';
p[ii]:= s[ii] + space;
End;
WriteLn('');
WriteLn('/----------------Progress-Report---------------------\');
for ii:= 0 to Messages - 1 do
WriteLn('| ' + p[ii] + '|');
WriteLn('\----------------------------------------------------/');
SRLRandomsReport;
End;

//------------------------Minimap-----------------------------\\

Procedure BankToFurnace; //Most of this is from inferno's script, so thnx
Begin
If (MMBankColor = 0) Then
MMBank := GetSymbolColor(X, Y, 'bank');
Mouse(680, 47, 10, 10, true);
Wait(2000);
FFlag(5);
If (MMFurnaceColor = 0) Then
MMFurnace := GetSymbolColor(X, Y, 'furnace');
If(FindColorSpiral(X, Y, MMFurnace, 569, 10, 728, 160))Then
Begin
Mouse(X+10, Y, 5, 5, true);
FFlag(0);
FindColorSpiral(X, Y, MMFurnace, 569, 10, 728, 160);
Mouse(X+10, Y, 5, 5, true);
End else
Begin
Writeln('Failed to find the furnace, ');
Writeln('please set your own colors and restart');
End;
End;

Procedure FurnaceToBank; // Also a lot from inferno's script, thnx!
Begin
If(FindColorSpiral(X, Y, MMFurnace, 569, 10, 728, 160))Then
Begin
Mouse(X+15, Y+60, 10, 10, true);
Wait(2000);
FFlag(0);
If(FindColorSpiral(X, Y, MMBank, 569, 10, 728, 160))Then
Begin
Mouse(X-10, Y, 5, 5, true);
FFlag(0);
End else
Begin
Writeln('Failed to find the bank, ');
Writeln('please set your own colors and restart');
End;
End else
Begin
Writeln('Failed to find the furnace, ');
Writeln('please set your own colors and restart');
End;
End;

//-------------------------Main Screen------------------------\\
Procedure WithDrawOres;
Begin
Case Players[CurrentPlayer].Skill of
'Bronze' :
Begin
WithdrawBmpAmmount(CopperOre, 14);
WithdrawBmpAmmount(TinOre, 14);
End
'Iron' :
Begin
WithdrawBmpAmmount(IronOre, 28);
End
'Silver' :
Begin
WithdrawBmpAmmount(SilverOre, 28);
End
'Steel' :
Begin
WithdrawBmpAmmount(CoalOre, 18);
WithdrawBmpAmmount(IronOre, 9);
End
'Gold' :
Begin
WithdrawBmpAmmount(GoldOre, 28);
End
'Mithril' :
Begin
WithdrawBmpAmmount(CoalOre, 20);
WithdrawBmpAmmount(MithOre, 5);
End
'Adamantite':
Begin
WithdrawBmpAmmount(CoalOre, 24);
WithdrawBmpAmmount(AdamantOre, 4);
End
'Rune' :
Begin
WithdrawBmpAmmount(CoalOre, 24);
WithdrawBmpAmmount(RuniteOre, 3);
End;
End;
End;

Procedure OpenMyBank;
var I, A : integer;
Begin
I := 0;
Repeat;
If(FindObj(x, y, 'ank bo', 2446441, 10))Then
Mouse(x, y, 0, 0, false);
ChooseOption(x, y, 'uickly');
Wait(1000);
I := I + 1;
Until (GetColor(251, 41) = 2070783) or (I = 2)
If (A = 1) then
Begin
Writeln('Couldnt open the bank, ');
Writeln('please restart me...');
Logout;
TerminateScript;
End;
If (I = 2) then
Begin
If (GetColor(251, 41)<> 2070783) Then
Begin
A := 0;
If(FindColorSpiral(X, Y, MMBank, 569, 10, 728, 160))Then
Begin
Mouse(X-10, Y, 5, 5, true);
A := 1;
OpenMyBank;
End;
End;
End;
If (InvCount > 0) Then
Begin
Repeat;
DepositAll;
Wait(500);
Until(InvCount = 0);
End;
WithDrawOres;
If Not(InvCount=OresNeeded) Then
Begin
Repeat;
DepositAll;
Until(InvCount=0);
WithDrawOres;
End;
CloseBank;
End;

Procedure OpenMyFurnace;
Var FurnMark : integer;
Begin
MakeCompass('W');
MarkTime(FurnMark);
Repeat;
If(FindColorTolerance(x, y, 1594557, MSX1, MSY1, MSX2, MSY2, 15))Then
Mouse(x, y, 5, 5, false);
If(TimeFromMark(FurnMark)>10000)Then Break;
Until(ChooseOption(x, y, 'melt'));
FFlag(0);
Wait(1000);
End;

Procedure SmeltBars;
Begin
Case Players[CurrentPlayer].Skill of
'Bronze' :
Begin
Mouse(50, 407, 10, 10, false);
WX := 700;
WY := 438;
End
'Iron' :
Begin
Mouse(152, 405, 10, 10, false);
WX := 700;
WY := 438;
End
'Silver' :
Begin
Mouse(204, 406, 10, 10, false);
WX := 700;
WY := 438;
End
'Steel' :
Begin
Mouse(257, 406, 10, 10, false);
WX := 658;
WY := 438;
End
'Gold' :
Begin
Mouse(306, 407, 10, 10, false);
WX := 700;
WY := 438;
End
'Mithril' :
Begin
Mouse(360, 408, 10, 10, false);
WX := 574;
WY := 438;
End
'Adamantite':
Begin
Mouse(412, 405, 10, 10, false);
WX := 700;
WY := 438;
End
'Rune' :
Begin
Mouse(464, 404, 10, 10, false);
WX := 658;
WY := 438;
End;
End;
If (FindBitMapTol(x, y, SmeltX,MCX1, MCY1, MCX2, MCY2)) Then
Begin
Mouse(X, Y, 10, 10, true);
Wait(500);
TypeSEnd(inttostr(28+Random(30)));
End Else
Begin
OpenMyFurnace;
SmeltBars;
End;
Repeat;
If ClickToContinue Then
Begin
OpenMyFurnace;
SmeltBars;
Break;
end;
FindNormalRandoms;
Wait(500);
Until (Not(GetColor(WX, WY) = 65536));
PerfectNorth;
End;

//------------------------Main line---------------------------\\
Begin
SetupClient;
SetupUser;
Repeat;
MultiPlayer;
OpenMyBank;
BankToFurnace;
OpenMyFurnace;
SmeltBars;
ProgressReport;
FurnaceToBank;
Until(false);
UnloadBitmaps;
End.
i keep getting 1 problem though… after it does about 5 loads it will just sit at the furnace and do nothing (still running though) and say that theres something wrong with the furnaces colours…. and i need to reset them… ill save the log next time i get it.

EDIT: omfg i left my username and pw on my post… and got hacked 2k steel bars, 10k coal and 5k iron

FUCK!!

IronTeapot

2006-12-18 12:47:29

Ouch. that blows. you still have access to the account though? as long as you have an account, you can get money back. stats = money, no stats no money really (well you can still merchant, but mining or wc levels help to get started). just be sure to do all the normal stuff, change pw, maybe even recoveries?

Sumilion

2006-12-18 13:10:38

Ouch, that does blow ! I've seen his acc and it had pretty nice stuff + stats. Sry to see it go over an update, though it's not entirely my fault :(

XcanadamanX

2006-12-18 17:44:33

ya that does suck…my acc almost got hacked…good thing cause i had like 7 mill worth of addy bars and addy ores and coal.you should get a pin(saved my stuff). sorry for your loss.

Czepa

2006-12-18 19:46:40

From: xcanadamanx
ya that does suck…my acc almost got hacked…good thing cause i had like 7 mill worth of addy bars and addy ores and coal.you should get a pin(saved my stuff). sorry for your loss.

yeh but do smelting scripts get past pins?

IronTeapot

2006-12-18 23:16:37

sure, just at any line that its like ' until ( bankscreen)' change it to 'untill(InPin(yourpin)) or (Bankscreen);'

hobo901

2006-12-19 23:12:55

where do you start it from at the bank?

Boreas

2006-12-19 23:17:03

Yes. BTW that's usually the case for most scripts.

hobo901

2006-12-19 23:31:33

everytime it tries to withdraw some coal and iron (im smelting steel bars) it always clicks on "withdraw all" instead of "withdraw X" so then it just screws up completely. what should i do?

Czepa

2006-12-20 02:37:19

From: hobo901
everytime it tries to withdraw some coal and iron (im smelting steel bars) it always clicks on "withdraw all" instead of "withdraw X" so then it just screws up completely. what should i do?
where do you have the ores? 1st and second bank slot?

thisisme

2006-12-29 16:39:33

thanks works great

Sumilion

2006-12-29 18:23:41

O_o

henchman

2007-03-23 23:16:52

ill let you know how i make out with this later, i will post proggies

bullzeye95

2007-03-24 00:23:43

Let me do it this time.

O_o

Sumilion

2007-03-24 06:31:35

Before you use it have a look at the post date pl0x (my first script)

red eyes 20

2007-11-07 01:32:52

great now to get my mining up
i'll post a proggy when ever i get to using it =p

kushal

2007-11-07 01:44:55

what the hell, how old is this script….grave digging?