SRL Archive - First Scripts

[RS2][AutoAlcher] v1.2


r4z0rlike

2008-01-14 12:08:20

No anti randoms yet :(.

{==============================================================|
|==============================================================|
* *
* *SCRIPT INFO* *
* *
* # MADE BY : Razorlike *
* # NAME OF SCRIPT : Razors Alcher *
* # DATE STARTED : 12 Jan 2008 *
* # VERSION : 1.3 *
* *
|==============================================================|
* *
* *SCRIPT USAGE* *
* # USAGE : Auto alchs whatever you want *
* # SETUP : The item that you want to alch *
in the 14th spot. *
Enough runes to cast High Alchemy*
* # OTHER : Setup on line 32. *
* # INSTRUCTIONS : *
* 1. Set brightness to VB [Very Bright] *
* 2. Leave your chats how you want. *
*
*==============================================================}

program AutoAlcher;
{.include SRL\SRL.scar}
var
x1,y1: Integer;
AlchTimes: Integer;
HighAlch: Integer;

const
RunDirection = 'N';//What direction do you want to run incase of a fight.
AlchsToDo = 200;//How many items you want to alch
AntiBan = true;//Anti Ban? (true = reccomended)

procedure DeclarePlayers;
begin
HowManyPlayers := 1; //Number of PLAYERS. active or not.
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; //Player to start on.

Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'user';
Players[0].Active := True;

NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
end;

Procedure ProgressReport;
begin
cleardebug;
Writeln('++++++++++++++++++++++');
Writeln('Worked for '+ TimeRunning );
Writeln('You have alched '+ IntToStr(AlchTimes) +' items.');
Writeln('You gained '+ IntToStr(AlchTimes*65) +' magic experience.');
Writeln('++++++++++++++++++++++');
end;

Procedure Navigation;
begin
Gametab(7);
HighAlch := DTMFromString('78DA63CC65626058C0C8800C7E7DE3614801D' +
'220D1FF40C05808543309550D44164602E922A09A9904D49401D5' +
'CC27A00664D762026A5288543397809A1CA09A3904D4E403D54CC' +
'3AF0600F3F80FEB');
if FindDTM(HighAlch, x1, y1, 705, 319, 729, 347)
then Writeln('HighAlch Found') else
begin
writeln('HighAlch not found')
TerminateScript;
end;
end;

procedure AntiBan1;
begin
if(AntiBan=true)then
begin
if(not(LoggedIn))then
Exit;
case Random(5) of
1: begin
HoverSkill('Magic', false);
wait(500+random(500));
Navigation;
end;
2: begin
PickUpMouse;
Navigation;
end;
3: begin
case random(5) of
0: TypeSend('Mage lvls?');
1: Begin
TypeSend('Im bored -.-');
Wait(500+random(100))
TypeSend('Ive been alching for '+ TimeRunning +'Minutes');
end;
2: TypeSend('Only '+ IntToStr(AlchsToDo-Alchtimes) +' alchs left');
3: TypeSend('Hai');
4: TypeSend('Im lagging really bad here');
5: TypeSend('Ooh! its shiny')
6: begin
TypeSend('Dumdiedumdiedum. lalalala');
wait(300+random(200))
TypeSend('Yes, alching is driving me crazy :P');
end;
end;
end;
4: begin;
SleepAndMoveMouse(1000+random(1000));
Navigation;
end;
5: case Random(5) of
1: begin
TypeSend('Logging off for a min. Cya');
LogOut;
wait(50000+random(10000));
Loginplayer;
Navigation;
end;
end;
end;
end;
end;

Procedure Alching;
begin
Mouse(x1, y1, 0, 0, true);
wait(3000+random(200));
Mouse(x1, y1, 0, 0,true);
wait(1000+random(100));
AlchTimes:=AlchTimes + 1
end;

begin
SetupSrl;
DeclarePlayers;
if FindRs then
begin
ActivateClient;
end else
begin
Writeln('No Runescape!!');
TerminateScript;
end;
if(not(loggedin))then loginplayer;
Navigation;
repeat
Alching;
If(AntiBan=true)then
begin
case random(5) of
1: AntiBan1;
end;
end;
until AlchTimes=AlchsToDo;
ProgressReport;
end.

Melvin12

2008-01-14 15:13:37

nice for first Script.

r4z0rlike

2008-01-17 01:54:37

Thanks :). Could I get some more feedback on how to improve? Perhaps I should use Bitmaps?

Sir R. M8gic1an

2008-01-17 11:00:56

use mouse(x, y, Randx, Randy, Leftclick) instead of clickmouse. clickmouse will get u banned. also i suggest you look up SRL functions like CastSpell and MouseItem.

~RM

P1nky

2008-01-17 12:32:01

its good for a 1st beginner script

YES clickmouse will get you banned…. and i dont like your typesend anti ban procedure since its only 3-4 lines sounds a bit fishy to jagex heh?

so yeah keep reading tuts and keep SCRIPTING
goodluck

BTW use BITMAPS/DTMS for the clicking to alch in the future =p

r4z0rlike

2008-01-18 08:05:17

Thanks :).
I redid my version after I posted this one with MMouse and Mouse, but I forgot to post it.
Im going to start working on BitMaps, and looking into "CastSpell" and "MouseItem"

sum41rocks

2008-03-11 21:11:30

Line 59: [Error] (231:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/Math.scar

thats what i get
what am i missing?

Hurgymcgurgygurg

2008-03-11 22:05:43

This is out of date, it is made for an older version of SRL, check the last time it was posted on, close to two months ago. Don't grave dig an old thread, odds are the owner of it is long gone and won't help.

Mistri_Soulja

2008-03-13 07:56:28

very nice script r4s0rlike have not tryed it yet but it looks good and is on my 2 do list will let u know how it is once i try it.

Naum

2008-03-14 08:49:09

Pretty Good first script.

Torrent of Flame

2008-03-14 14:28:45

01-18-2008, 12:05 PM

Next post:

03-12-2008, 01:11 AM

Its out of date. Dont Gravedig.