Vinyl Scratch
2012-12-17 20:14:12
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Pascal, Java, Visual Basic(A little), C#(a little, mostly refer to a book.)
Are you a member of any other communities?
Stickpage, Darkdemon
Tell us about yourself…
From: Vinyl Scratch
Alright, so. I'm back. I've got a script that is actually coded by me. I know, I said that before, and it wasn't true. But this time I've learned. I've taken the time to learn more, and not think that I know everything. I know some of you said that you will never say yes to any of my applications ever. I'm sorry that I made you feel like that, and it's not without reason why. I've not come here to mope, but to try again. (Third time's a charm, eh?)
Anywhom, Maybe I can have another shot at SRL Members?
Please show us one (or multiple) of your scripts.
program VinylRunespan;
{$DEFINE SMART}
{$i SRL/SRL.simba}
{$IFDEF SMART}
{$i SRL/SRL/misc/smartgraphics.Simba}
{$ENDIF}
{BIG NOTE!!}
{You need to capitalize the Element, or it will not work!}
const
Version = '10.0A'; // Don't Touch.
NumbOfPlayers = 1; //Number of Players That You Will Be using.
StartPlayer = 0; //Start Which Player?
Forcenew = False; //Force a New Client When Starting or not?
Element = 'Blood'; {Esslings: Air, Water, Fire, Earth.
Esshound: Body, Law, Cosmic, Nature.
Esswraith: Blood, Death, Soul.
}
var
StartEXP:integer;
Exp, EXPH: Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := ''; // Your Username.
Pass := ''; // Your Password.
WorldInfo := [27, 42, 45, 46, 48, 52, 59, 70, 72, 78, 79, 87, 104, 115, 117];
BoxRewards := ['XP','xp','lamp'];
LampSkill := Skill_Runecrafting;
Active := True;
end;
end;
procedure FindRandoms;
begin
FindNormalRandoms;
Wait(3000);
end;
procedure Proggy;
var
i1, i3, i4: string;
EXPGained: Integer;
begin
SMART_ClearCanvas;
EXP:= GetXPBar(1);
EXPGained:= (EXP - StartEXP);
EXPH:= Round((3600*EXPGained)/(GetTimeRunning/1000));
i1:= 'Time Running:'+ TimeRunning;
i3:= 'EXP Gained:'+inttostr(EXPGained);
i4:= 'EXP P/Hr:'+inttostr(EXPH);
Smart_DrawText(0, 0, StatChars, i1, ClWhite);
SMART_DrawText(0, 10, Statchars, i3, clwhite);
Smart_DrawText(0, 20, StatChars, i4, clwhite);
end;
procedure proggy2;
var
EXPGained: integer;
begin
ClearDebug;
EXP:= GetXPBar(1);
EXPGained:= (EXP - StartEXP);
EXPH:= Round((3600*EXPGained)/(GetTimeRunning/1000));
writeln('Time Running:'+ TimeRunning);
writeln('EXP Gained:'+inttostr(EXPGained));
writeln('EXP P/Hr:'+inttostr(EXPH));
end;
//credit to CynicRus for this part.\\
type TRune = record
DTM: integer;
name: string;
end;
type TRuneArray = array of TRune;
var
Air,Water,Fire,Earth,Law,Blood,Death: TRune;
Runes: TRuneArray;
Procedure FillDTMs;
begin
//intialise array
SetLength(Runes, 7);
//Air
Air.DTM:= DTMFromString('m1gAAAHic42JgYNjJzMCwB4i3APFqIF4FxOuAeDcQHwHi40B8EIhLGRkY0qE4G4jLgLgJiFuAuA6Ii4A4B4hv3rwJNJUJihmR2OiYOMBIJEYAAIiCDpI=');
Air.Name:='airs';
//Water
Water.DTM:=DTMFromString('mAAEAAHic42FgYNjOzMCwjxlCbwDiVVC8Doi3AfEhID4KxMeA+CAQz2BkYOgF4i4g7gPi6UA8B4iXAfEKIF4KxHOBeAoQ9wOxfP0uoC1MDHzSCmAaGXt7eTCYmhgxqKmpMoiKijDwScoxkAoYScTIAAAswxQl');
Water.name:='waters';
//Fire
Fire.DTM:=DTMFromString('m6wAAAHic42ZgYOBhYWAQBWJeIGYF4v/MEMwMZPMBsTgQSwOxFBDPYmRgmADE3UDcB8STgXgOEC8D4hVQei4QTwXib4ssgaYzgbGVpTkDn7QCQ3hoMENIcCBc3EBBgUFUVISBFMBIAkYCAFF0DuM=');
Fire.Name:='fires';
//Earth
Earth.DTM:=DTMFromString('mKgEAAHic42NgYHjEzMDwDIjfAvErIP4IxO+A+DUQPwHiO0B8DYivQPEtIH4AxCWMDAzpQJwHxNmMEH4NEDcBcQsQtwJxAxBXAnExVA1IfW+XI9BWJqKxrY0VlE0eYCQTowIA9/UVRg==');
Earth.Name:='earths';
//Law rune
Law.DTM:=DTMFromString('');
Law.Name:='laws';
//Blood rune
Blood.DTM:=DTMFromString('maQEAAHicE2RgYOhjZmCYDcRTgXgCEHcBcRsQ1wNxExA3QOlOqPwMIJ4C1TMHiOcC8SNGBoabQHwFiC9D8TUgvgvET4D4JRC/A+L3QPwRiN9A+S+h8g+A+JBmMgOftAIYMzAwwTGfpByDt5cHnB0ZHspgoKDA4ORgD8YgNkI95YCRChgDAAB+8x+l');
Blood.Name:='bloods';
//Death rune
Death.DTM:=DTMFromString('mqAEAAHicrc7fCwFBEAfw73Kl/Lg8nNx00b643Ju/Q1KiJH8kItJdKS8U/xPfXSMvHm/q0+7OzE4TAWgFQJvqFNCr+uPeDYooVgn1lFBX6zX9fzHAjrZ0oJP55G70oKe601VrBZ3pSHu10RlFnkMkRpYNsZjPEEof69WSm1e86WSMkbX+nqYDf7qeZkcQJtb79rp82WFK9i/eG8Abuw==');
Death.Name:='deaths';
Runes:=[Air, Water, Fire, Earth, Law, Blood, Death];
end;
procedure FreeRune(r: TRune);
begin
FreeDTM(r.DTM);
end;
procedure FreeDmt;
var
i: integer;
begin
for i:=0 to Length(runes) -1 do
begin
FreeRune(runes[i]);
end;
end;
function RunesCounter(RuneDTM: integer): Integer;
var
Count, x, y:Integer;
begin
If FindDTM(RuneDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Count := GetAmount(x, y);
Result:= Count;
end;
end;
procedure PrintRuneCount(const r: TRune; count: integer);
begin
WriteLn('You have'+#32+toStr(count)+#32+r.name+#32+'runes');
end;
function CheckInventory(): boolean;
var
i, x, y : integer;
begin
result:=false;
FillDTMs;
for i:=0 to Length(runes)-1 do
begin
If FindDTM(runes[i].DTM, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
PrintRuneCount(runes[i],RunesCounter(runes[i].DTM));
result:=true;
end;
end;
FreeDmt;
end;
////////\\\\\\\\
function isSiphoning: Boolean;
var
SBox: TBox;
begin
SBox:= IntToBox(408, 336, 425, 292);
SMART_DrawBoxEx(false, false, SBox, CLBlue);
Result:= (AveragePixelShift(SBox, 300, 700) > 2000);
end;
procedure antiban;
var
w, h: integer;
begin
case Random(5) of
1: begin
GetClientDimensions(w, h);
MMouse(Random(w), Random(h), 0, 0);
end;
2: begin
MMouse(300, 0, 0, 0);
Wait(RandomRange(30000, 50000));
end;
3: begin
Typesend('Gahh.. so boring.');
end;
4: begin
MMouse(RandomRange(500, 600), 0, 0, 0);
Wait(RandomRange(10000, 60000));
MMouse(RandomRange(100, 700), RandomRange(100, 700), RandomRange(100, 500), RandomRange(100, 500));
MMouse(Random(w), Random(h), 30, 30);
end;
end;
end;
function Siphon(UpText: TStringArray; Color, Tol: Integer; HMod, SMod: Extended): Boolean;
var
TPA: TPointArray;
ATPA: T2DPointArray;
CTS, i, x, y: Integer;
begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(HMod, SMod);
if FindColorsSpiralTolerance(x, y, TPA, Color, MSX1, MSY1, MSX2, MSY2, Tol) then
begin
ATPA := SplitTPA(TPA, 30);
SortATPASize(ATPA,True);
for i := 0 to High(ATPA) do
begin
if length(atpa[i]) < 50 then
begin
MMouse(x, y, RandomRange( - 2, 2), RandomRange( - 2, 2));
if WaitUpTextMulti(UpText, 1500) then
begin
case Random(2) of
0:
begin
ClickMouse2(True);
if (DidRedClick()) then
begin
Result := True;
Wait(RandomRange(28000, 32000));
if isSiphoning then
begin
wait(RandomRange(20000, 40000));
end;
Antiban;
Break;
end
else
begin
FindNormalRandoms;
Result := False;
end;
end;
1:
begin
ClickMouse2(False);
if WaitOption('ipho', 1500) then
begin
Result := True;
if isSiphoning then
begin
wait(RandomRange(20000, 40000));
end;
AntiBan;
Break;
end
else
begin
FindNormalRandoms;
AntiBan;
Result := False;
end;
end;
end;
end;
end;
end;
end;
ColorToleranceSpeed(CTS);
SetColorSpeed2Modifiers(0.2, 0.2);
proggy;
proggy2;
end;
procedure SetupArguments;
begin
case Element of
'Air': Siphon(['iphon Air', 'hon Air', 'hon Air essling'], 11571554, 7, 3.47, 1.75);
'Fire': Siphon(['iphon Fire', 'hon fire', 'hon Fire Essling'], 5401236, 7, 0.10, 0.75);
'Earth': Siphon(['iphon earth', 'hon earth', 'hon earth Essling'], 6718649, 7, 0.09, 0.68);
'Water': Siphon(['iphon Water', 'hon Water', 'hon Water Essling'], 5194866, 7, 0.10, 0.75);
'body': Siphon(['iphon body', 'body', 'hon body Esshound'], 7093602, 7, 2.40, 0.83);
'law': Siphon(['iphon law', 'hon law', 'hon law Esshound'], 16771982, 7, 0.68, 1.2);
'astral': Siphon(['iphon astral', 'hon astral', 'hon astral Esshound'], 13346751, 7, 1.07, 0.35);
'blood': Siphon(['iphon blood', 'hon blood', 'hon blood Esswraith'], 3826285, 7, 0.39, 0.93);
'soul': Siphon(['iphon soul', 'hon soul', 'hon soul esswraith'], 8026467, 7, 4.16, 0.24);
'death': Siphon(['iphon death', 'hon death', 'hon death Esswraith'], 7692132, 7, 1.69, 0.24);
end;
end;
var
x, y: integer;
begin
{$IFDEF SMART}
SRL_SixHourFix := True;
Smart_FixSpeed := True;
{$ENDIF}
DeclarePlayers;
SetupSRL;
Proggy;
mousespeed:= 25 + random (5);
if(not(Loggedin))then
begin
LoginPlayerToLob;
ChangeWorld(RandomWorld(True, False));
sleep(4000 + Random(3000));
Setangle(0);
if(FindColorTolerance(x, y, 3978996, 485, 58, 506, 79, 5))then
begin
Mmouse(x, y, 3, 3);
Sleep(100+Random(100));
Clickmouse2(True);
Sleep(100+Random(100));
end;
end;
SetupArguments;
Antiban;
repeat
SetupArguments;
StartEXP := GetXPBarTotal;
FindNormalRandoms;
proggy;
proggy2;
until not LoggedIn;
end.
{Only script I'm posting, because it's the only script that I've finished after starting over.}Here's an updated version of the script
program VinylRunespan;
{$DEFINE SMART}
{$i SRL/SRL.simba}
{$IFDEF SMART}
{$i SRL/SRL/misc/smartgraphics.Simba}
{$ENDIF}
const
Version = '10.0A'; // Don't Touch.
var
StartEXP:integer;
Exp, EXPH: Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := '*********'; // Your Username.
Pass := '*********'; // Your Password.
BoxRewards := ['XP','xp','lamp'];
LampSkill := Skill_Runecrafting;
Active := True;
Strings[0] := 'air'; {Esslings: air, water, fire, earth.
Esshound: body, law, cosmic, nature.
Esswraith: blood, death, soul.}
end;
end;
procedure FindRandoms;
begin
FindNormalRandoms;
Wait(300);
end;
procedure proggy;
var
i1, i2, i3, i4: string;
EXPGained: integer;
begin
SMART_ClearCanvas;
ClearDebug;
EXP:= GetXPBar(1);
EXPGained:= (EXP - StartEXP);
EXPH:= Round((3600*EXPGained)/(GetTimeRunning/1000));
i1:= 'Time Running:'+ TimeRunning;
i2:= 'You are using version:' + Version;
i3:= 'EXP Gained:'+inttostr(EXPGained);
i4:= 'EXP P/Hr:'+inttostr(EXPH);
writeln('You are using Version:' + Version);
Smart_DrawText(0, 0, StatChars, i2, ClGreen);
writeln('Time Running:'+ TimeRunning);
Smart_DrawText(0, 10, StatChars, i1, ClWhite);
writeln('EXP Gained:'+inttostr(EXPGained));
SMART_DrawText(0, 20, Statchars, i3, clwhite);
writeln('EXP P/Hr:'+inttostr(EXPH));
Smart_DrawText(0, 30, StatChars, i4, clwhite);
end;
//credit to CynicRus for this part.\\
type TRune = record
DTM: integer;
name: string;
end;
type TRuneArray = array of TRune;
var
Air, Water, Fire, Earth, Blood, Death: TRune;
Runes: TRuneArray;
Procedure FillDTMs;
begin
//intialise array
SetLength(Runes, 6);
//Air
Air.DTM:= DTMFromString('m1gAAAHic42JgYNjJzMCwB4i3APFqIF4FxOuAeDcQHwHi40B8EIhLGRkY0qE4G4jLgLgJiFuAuA6Ii4A4B4hv3rwJNJUJihmR2OiYOMBIJEYAAIiCDpI=');
SetDTMName(Air.DTM, 'airDTM');
//Water
Water.DTM:=DTMFromString('mAAEAAHic42FgYNjOzMCwjxlCbwDiVVC8Doi3AfEhID4KxMeA+CAQz2BkYOgF4i4g7gPi6UA8B4iXAfEKIF4KxHOBeAoQ9wOxfP0uoC1MDHzSCmAaGXt7eTCYmhgxqKmpMoiKijDwScoxkAoYScTIAAAswxQl');
SetDTMName(Water.DTM, 'waterDTM');
//Fire
Fire.DTM:=DTMFromString('m6wAAAHic42ZgYOBhYWAQBWJeIGYF4v/MEMwMZPMBsTgQSwOxFBDPYmRgmADE3UDcB8STgXgOEC8D4hVQei4QTwXib4ssgaYzgbGVpTkDn7QCQ3hoMENIcCBc3EBBgUFUVISBFMBIAkYCAFF0DuM=');
SetDTMName(Fire.DTM, 'fireDTM');
//Earth
Earth.DTM:=DTMFromString('mKgEAAHic42NgYHjEzMDwDIjfAvErIP4IxO+A+DUQPwHiO0B8DYivQPEtIH4AxCWMDAzpQJwHxNmMEH4NEDcBcQsQtwJxAxBXAnExVA1IfW+XI9BWJqKxrY0VlE0eYCQTowIA9/UVRg==');
SetDTMName(Earth.DTM, 'earthDTM');
//Blood rune
Blood.DTM:=DTMFromString('maQEAAHicE2RgYOhjZmCYDcRTgXgCEHcBcRsQ1wNxExA3QOlOqPwMIJ4C1TMHiOcC8SNGBoabQHwFiC9D8TUgvgvET4D4JRC/A+L3QPwRiN9A+S+h8g+A+JBmMgOftAIYMzAwwTGfpByDt5cHnB0ZHspgoKDA4ORgD8YgNkI95YCRChgDAAB+8x+l');
SetDTMName(Blood.DTM, 'bloodDTM');
//Death rune
Death.DTM:=DTMFromString('mqAEAAHicrc7fCwFBEAfw73Kl/Lg8nNx00b643Ju/Q1KiJH8kItJdKS8U/xPfXSMvHm/q0+7OzE4TAWgFQJvqFNCr+uPeDYooVgn1lFBX6zX9fzHAjrZ0oJP55G70oKe601VrBZ3pSHu10RlFnkMkRpYNsZjPEEof69WSm1e86WSMkbX+nqYDf7qeZkcQJtb79rp82WFK9i/eG8Abuw==');
SetDTMName(Death.DTM, 'deathDTM');
Runes:=[Air, Water, Fire, Earth, Blood, Death];
end;
procedure FreeRune(r: TRune);
begin
FreeDTM(r.DTM);
end;
procedure FreeDmt;
var
i: integer;
begin
for i:=0 to Length(runes) -1 do
begin
FreeRune(runes[i]);
end;
end;
function RunesCounter(RuneDTM: integer): Integer;
var
Count, x, y:Integer;
begin
If FindDTM(RuneDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Count := GetAmount(x, y);
Result:= Count;
end;
end;
procedure PrintRuneCount(const r: TRune; count: integer);
begin
WriteLn('You have'+#32+toStr(count)+#32+r.name+#32+'runes');
end;
function CheckInventory(): boolean;
var
i, x, y : integer;
begin
result:=false;
FillDTMs;
for i:=0 to Length(runes)-1 do
begin
If FindDTM(runes[i].DTM, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
PrintRuneCount(runes[i],RunesCounter(runes[i].DTM));
result:=true;
end;
end;
FreeDmt;
end;
////////\\\\\\\\
function isSiphoning: Boolean;
var
SBox: TBox;
begin
SBox:= IntToBox(408, 336, 425, 292);
SMART_DrawBoxEx(false, false, SBox, CLBlue);
Result:= (AveragePixelShift(SBox, 300, 700) > 2000);
end;
procedure antiban;
var
w, h: integer;
begin
case Random(3) of
0: begin
GetClientDimensions(w, h);
MMouse(Random(w), Random(h), 0, 0);
end;
1: begin
MMouse(300, 0, 0, 0);
Wait(RandomRange(30000, 50000));
end;
2: begin
MMouse(RandomRange(500, 600), 0, 0, 0);
Wait(RandomRange(10000, 60000));
MMouse(RandomRange(100, 700), RandomRange(100, 700), RandomRange(100, 500), RandomRange(100, 500));
MMouse(Random(w), Random(h), 30, 30);
end;
end;
end;
function Siphon(UpText: TStringArray; Color, Tol: Integer; HMod, SMod: Extended): Boolean;
var
TPA: TPointArray;
ATPA: T2DPointArray;
CTS, i, x, y: Integer;
begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(HMod, SMod);
if FindColorsSpiralTolerance(x, y, TPA, Color, MSX1, MSY1, MSX2, MSY2, Tol) then
begin
ATPA := SplitTPA(TPA, 30);
SortATPASize(ATPA,True);
for i := 0 to High(ATPA) do
begin
if length(atpa[i]) < 50 then
begin
MMouse(x, y, RandomRange( - 2, 2), RandomRange( - 2, 2));
if WaitUpTextMulti(UpText, 1500) then
begin
case Random(2) of
0:
begin
ClickMouse2(True);
if (DidRedClick()) then
begin
Result := True;
Wait(RandomRange(28000, 32000));
if isSiphoning then
wait(RandomRange(20000, 40000));
Antiban;
Break;
end
else
begin
FindNormalRandoms;
Result := False;
end;
end;
1:
begin
ClickMouse2(False);
if WaitOption('ipho', 1500) then
begin
Result := True;
if isSiphoning then
wait(RandomRange(20000, 40000));
AntiBan;
Break;
end
else
begin
FindNormalRandoms;
AntiBan;
Result := False;
end;
end;
end;
end;
end;
end;
end;
ColorToleranceSpeed(CTS);
SetColorSpeed2Modifiers(0.2, 0.2);
proggy;
end;
procedure SetupArguments;
begin
case Lowercase(Players[currentplayer].Strings[0]) of
'air': Siphon(['iphon Air', 'hon Air', 'hon Air essling'], 11571554, 7, 3.47, 1.75);
'fire': Siphon(['iphon Fire', 'hon fire', 'hon Fire Essling'], 5401236, 7, 0.10, 0.75);
'earth': Siphon(['iphon earth', 'hon earth', 'hon earth Essling'], 6718649, 7, 0.09, 0.68);
'water': Siphon(['iphon Water', 'hon Water', 'hon Water Essling'], 5194866, 7, 0.10, 0.75);
'body': Siphon(['iphon body', 'body', 'hon body Esshound'], 7093602, 7, 2.40, 0.83);
'law': Siphon(['iphon law', 'hon law', 'hon law Esshound'], 16771982, 7, 0.68, 1.2);
'astral': Siphon(['iphon astral', 'hon astral', 'hon astral Esshound'], 13346751, 7, 1.07, 0.35);
'blood': Siphon(['iphon blood', 'hon blood', 'hon blood Esswraith'], 3826285, 7, 0.39, 0.93);
'soul': Siphon(['iphon soul', 'hon soul', 'hon soul esswraith'], 8026467, 7, 4.16, 0.24);
'death': Siphon(['iphon death', 'hon death', 'hon death Esswraith'], 7692132, 7, 1.69, 0.24);
end;
end;
begin
{$IFDEF SMART}
SRL_SixHourFix := True;
Smart_FixSpeed := True;
{$ENDIF}
DeclarePlayers;
SetupSRL;
Proggy;
mousespeed:= 25 + random (5);
if(not(Loggedin))then
begin
LoginPlayerToLob;
ChangeWorld(RandomWorld(True, False));
sleep(4000 + Random(3000));
Setangle(0);
end;
repeat
SetupArguments;
StartEXP := GetXPBarTotal;
FindNormalRandoms;
proggy;
until not LoggedIn;
end.

Mat

