sleziak
2009-04-20 07:28:18
How Long have You Played Runescape?
5 Year(s)
Are you affilated in anyway with Jagex LTD?
No.
Were you Referred to SRL?
/
What is your general programming knowledge?
Html, Pascal, Java and PhP
Are you a member of any other communities?
To many to name them
Tell us about yourself…
Please give show us one of your scripts.
5 Year(s)
Are you affilated in anyway with Jagex LTD?
No.
Were you Referred to SRL?
/
What is your general programming knowledge?
Html, Pascal, Java and PhP
Are you a member of any other communities?
To many to name them
Tell us about yourself…
From: sleziak
Hello,
My name is Marcin Sleziak and i'm from Belgium
I'm 16 yrs old and i've been awhile here on SRL:)
I've played RuneScape for +- 4 years now
A few motnhs ago i decided to learn scripting so i gave it a go :)
Currently i have made 4 scripts (2 public and 2 private)
Please give show us one of your scripts.
This one alches Rings in zannaris:
program new;
{.Include SRL\SRL.SCAR}
{.include SRL/SRL/Skill/Magic.scar}
const
Username = ''; //Your Runescape username
Password = ''; //Your Runescape password
Nickname = ''; //Few letters from your name Example: Username = 'Zezima' then the nickname would be 'Zez'
ToDo = 1000; //How many rings do you want to alch
logo = false; //Log out after doing the desired ammount of alches/Using all your nature runes?
var
x,y,a,b,counter,exp : integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := Username;
Players[0].Pass := Password;
Players[0].Nick := Nickname;
Players[0].Active:= true;
end;
procedure FindIrksol;
var
TMT, Times: Integer;
begin
TMT := 0;
if not ShopScreen then
begin
wait(2000+random(3000))
if(FindSymbolIn(x, y, 'gem stall', MMX1, MMY1, MMX2, MMY2)) then
begin
writeln('Walking to gem stall');
flag;
Mouse(x + 12, y, 0, 0, true)
Flag;
end;
repeat
Times:=0;
TMT := TMT + 1
if FindObjCustom(x, y, ['Talk-to Irk'], [2965826, 2965826], 4) then
begin
Wait(50 + Random(20));
Mouse(X, Y, 1, 1, false);
Wait(50 + Random(20));
if ChooseOption('rade') then
begin
repeat
Times:= Times + 1
wait(100);
until (ShopScreen) or (Times > 20);
if shopscreen then
begin
writeln('Trading Irksol');
exit;
end;
end;
end;
until (TMT > 5);
if (not(ShopScreen)) then
begin
if(FindSymbolIn(x, y, 'gem stall', MMX1, MMY1, MMX2, MMY2)) then
begin
Mouse(x + 12, y, 0, 0, true)
Players[CurrentPlayer].loc := 'gem stall';
FindIrksol;
end;
end
else
Writeln('Could Not Find Irksol.');
end
else
Logout;
end;
Procedure BuyRings;
begin
FindIrksol;
begin
wait(random(2000));
MouseBox(74,101,85,111, 3)
if(IsUpText('Ruby'))then
begin
writeln('Buying rings');
getmousepos(x, y)
wait(100)
Mouse(x,y,0,0,false)
ChooseOption('Buy X')
Wait(1000)
case Random(8) of
0: SendKeys('28'+chr(13));
1: SendKeys('32'+chr(13));
2: SendKeys('54'+chr(13));
3: SendKeys('55'+chr(13));
4: SendKeys('65'+chr(13));
5: SendKeys('65'+chr(13));
6: SendKeys('98'+chr(13));
7: SendKeys('87'+chr(13));
end;
CloseWindow;
end
else
begin
MouseBox(50, 70, 116, 79, 1)
wait(random(600))
BuyRings;
end;
Wait(400)
end;
end;
procedure Progress;
begin
Cleardebug;
if (loggedin=false) or (Counter > ToDo) then
begin
Writeln('----------------------------------------------');
Writeln(' _____________________________________________');
Writeln('- Sleziak''s Zanaris alcher ');
Writeln('- Ran for: ' + (TimeRunning) + ' ');
Writeln('- Alched ' +IntToStr(Counter)+ ' rings ');
writeln('- You have gained ' + IntToStr(exp) + ' Exp!' );
Writeln('- Succesfully alched all requested rings ');
Writeln('- Post this proggy please ;) ');
Writeln('-_____________________________________________');
Writeln('----------------------------------------------');
terminatescript;
end
else
begin
Cleardebug;
if(Counter < ToDo) then
begin
Writeln('----------------------------------------------');
Writeln(' _____________________________________________');
Writeln('- Sleziak''s Zanaris alcher ');
Writeln('- Ran for: ' + (TimeRunning) + ' ');
Writeln('- Alched ' +IntToStr(Counter)+ ' rings ');
Writeln('- You have gained ' + IntToStr(exp) + ' Exp! ');
Writeln('- Still running! ');
Writeln('- Post this proggy please ;) ');
Writeln('-_____________________________________________');
Writeln('----------------------------------------------');
end
end
end;
procedure Checkrunes;
begin
if (FindBlackChatMessage('ature')) then
TerminateScript;
end;
Procedure Alch;
begin
repeat
if (not(LoggedIn)) then
LoginPlayer;
FindNonInventoryRandoms;
wait(400+random(100));
Cast('high level alchemy');
findcolortolerance(a,b,1749707,555,213,722,453,2);
mmouse(a+random(5),b+random(5),0,0)
wait(1600+random(100));
if not findcolortolerance(a,b,1749707,555,213,722,453,2) then
begin
buyrings;
end
else
mouse(a,b,0,0,true);
checkrunes;
exp:= exp + 65;
counter:= counter + 1;
progress;
until(false);
end;
Procedure ScriptTerminate;
Begin
progress;
WriteLn('Out of runes!');
if logo = true then logout
else
WriteLn('Finished script/Out of runes!');
end;
begin
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
repeat
SetAngle(True);
MakeCompass('N');
SetRun(True);
BuyRings
alch;
findnormalrandoms;
checkrunes;
progress;
wait(2000);
until(loggedin=false)
end.
and this one enchantes bolts (any of em)
program BoltenchanterV1;
{.Include SRL\SRL.SCAR}
{.include SRL/SRL/Skill/Magic.scar}
const
Username = ''; //Your Runescape username
Password = ''; //Your Runescape password
Nickname = ''; //Few letters from your name Example: Username = 'Zezima' then the nickname would be 'Zez'
Bolttype = ''; //Choice: opal, sapphire, jade, pearl, emerald, red topaz, ruby, diamond, dragonstone and onyx
ToDo = 3000; //how many bolts do you want to enchant?
logo = false; //Log out after doing the desired ammount of bolts or if you run out of bolts/runes?
var
TotCasted :integer;
x,y: Integer;
exp: integer;
counter: Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := Username; //Youe Rs username
Players[0].Pass := Password; //Your RS password
Players[0].Nick := Nickname; //3-4 letters from name
Players[0].Active:= true;
end;
procedure setch;
begin
if not FindColor(x,y,16776960,139,496,144,499)
then
Mouse(150+random(10),489+random(10),1,1,false);
if not FindColor(x,y,16776960,139,496,144,499)
then
wait(400+random(50));
if not FindColor(x,y,16776960,139,496,144,499)
then
Mouse(129,478,1,1,true);
if not FindColor(x,y,16776960,139,496,144,499)
then
wait(50+random(100));
end;
procedure settab;
begin
Gametab(7);
end;
procedure diamond;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,229,194,240,200)
then
Mouse(250+random(13),250-random(13),1,1,true)
else
Terminatescript;
Inc(Counter);
exp:= exp + 67;
end;
procedure sapphire;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,137,66,142,73)
then
Mouse(154+random(13),117-random(13),1,1,true)
else
Terminatescript;
exp:= exp + 18;
Inc(Counter);
end;
procedure jade;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,246,67,252,72)
then
Mouse(255+random(13),120-random(13),1,1,true)
else
Terminatescript;
exp:= exp + 19;
Inc(Counter);
end;
procedure pearl;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,347,69,355,74)
then
Mouse(352+random(13),114-random(13),1,1,true)
else
terminatescript;
exp:= exp + 30;
Inc(Counter);
end;
procedure emerald;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,423,66,431,72)
then
Mouse(444+random(13),117-random(13),1,1,true)
else
terminatescript;
exp:= exp + 37;
Inc(Counter)
end;
procedure redtopaz;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,49,199,56,204)
then
Mouse(73+random(13),248-random(13),1,1,true)
else
terminatescript;
exp:= exp + 34;
Inc(Counter)
end;
procedure ruby;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,148,194,153,201)
then
Mouse(158+random(13),248-random(13),1,1,true)
else
terminatescript;
exp:= exp + 59;
Inc(Counter)
end;
procedure dragonstone;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,316,193,336,201)
then
Mouse(346+random(13),250-random(13),1,1,true)
else
terminatescript;
exp:= exp + 78;
Inc(Counter)
end;
procedure onyx;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,432,196,439,201)
then
Mouse(445+random(13),246-random(13),1,1,true)
else
terminatescript;
exp:= exp + 97;
Inc(Counter)
end;
procedure opal;
begin
Cast('bolt enchantment');
repeat
wait(50+random(50));
until(GetColor(185, 37)=2070783);
if FindColor(x,y,52224,48,69,55,76)
then
Mouse(62+random(13),118-random(13),1,1,true)
else
terminatescript;
exp:= exp + 67;
inc(Counter)
end;
procedure progress;
begin
Cleardebug;
if(Counter * 10>= ToDo) or (loggedin=false) then
begin
Writeln('----------------------------------------------');
Writeln(' _____________________________________________');
Writeln('- Sleziak''s Bolt enchanter V1 ');
Writeln('- Ran for: ' + (TimeRunning) + ' ');
Writeln('- Enchanted ' +IntToStr(Counter * 10)+ ' bolts ');
writeln('- You have gained ' + IntToStr(exp) + ' Exp!' );
Writeln('- Succesfully Enchanted all requested bolts ');
Writeln('- Post this proggy please ;) ');
Writeln('-_____________________________________________');
Writeln('----------------------------------------------');
terminatescript;
end;
Cleardebug;
if(Counter < ToDo) then
begin
Writeln('----------------------------------------------');
Writeln(' _____________________________________________');
Writeln('- Sleziak''s Bolt enchanter V1 ');
Writeln('- Ran for: ' + (TimeRunning) + ' ');
Writeln('- Enchanted ' +IntToStr(Counter * 10)+ ' bolts ');
writeln('-You have gained ' + IntToStr(exp) + ' Exp! ');
Writeln('- Still running! ');
Writeln('-_____________________________________________');
Writeln('-----------------------------------------------');
end;
end;
procedure checkrunes;
begin
if (FindBlackChatMessage('have enough')) then
TerminateScript;
end;
Procedure ScriptTerminate;
Begin
progress;
WriteLn('Out of runes/bolts!');
if logo = true then logout
else
WriteLn('Out of runes/bolts!');
end;
procedure whatbolts;
begin
case(LowerCase(Bolttype))of
'diamond' : diamond;
'opal' : opal;
'sapphire' : sapphire;
'jade' : jade;
'pearl' : pearl;
'emerald' : emerald;
'red topaz' : redtopaz;
'ruby' : ruby;
'dragonstone' : dragonstone;
'onyx' : onyx;
end;
end;
procedure failsafe;
begin
repeat
wait(50+random(50));
until not (GetColor(78, 290)=1187725);
end;
begin
SetUpSRL;
DeclarePlayers;
LogInPlayer;
Wait(2000);
setch;
settab;
TotCasted:=0;
repeat
progress;
whatbolts;
failsafe;
checkrunes;
until(false)
end.
Greetz, Marcin Sleziak