Lancelot074
2008-03-27 12:47:30
<!– BEGIN TEMPLATE: formanswers –>
lancelot074 - SRL Member Application Form
lancelot074
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Nope
Other Communitys
Some game websites
How Long have You Played Runescape
like 4 years or so
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
I like to script and I am dedicated, that is why I keep applying. I always work hard to reach my goals. I like to learn new things and make new friends. I also don't mind helping others out. I like to script because it is relaxing and it gives me something to do.
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
——————————————————
<!– END TEMPLATE: formanswers –>
lancelot074 - SRL Member Application Form
lancelot074
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Nope
Other Communitys
Some game websites
How Long have You Played Runescape
like 4 years or so
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
I like to script and I am dedicated, that is why I keep applying. I always work hard to reach my goals. I like to learn new things and make new friends. I also don't mind helping others out. I like to script because it is relaxing and it gives me something to do.
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
{//////////////////////////////////////////////////////////////
[ Script by : Lancelot074 ]
[ Version : 0.5 ]
---------------------------------------------------------------
Description : Tans cowhides in al-kharid and banks.
---------------------------------------------------------------
-SETUP-
1.Place char(s) at al-kharid bank.
2.Place hides and cash near the top of the bank.
3.Declare players, and run!
4.Post progress reports please.
History:
v.01 - first release
v.02 - better Ellis finding
- better bank finding
- better walking
- added more antiban
v.03 - fixed some error
v.04 - Added a lot of failsafes
- Better progress report
v.05 - Added BankPin support
V.06 - Fixed up script some more
Credits:
Drizzt - teaching me about TPA's and other stuff - great guy
///////////////////////////////////////////////////////////////}
program TannerPlz;
{.include srl/srl/misc/smart.scar}
{.include SRL/SRL.scar}
Const
Cashtodraw = 30000;//Cash to withdraw, adds a randoms amount on
SmartWorld = 111;//World to run SMART on
var
x, y, i, LoadNum, Tanned, HideDTM, CoinsDTM, BuyDTM, BankDTM, RockColor, CactusColor:integer;
procedure DeclarePlayers;
begin
SRLId:= ''; //Fill these in, or get one from
SRLPassword:= ''; //Stats.srl-forums.com
HowManyPlayers :=2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;
Players[0].Name :='';//username
Players[0].Pass :='';//password
Players[0].Nick :='';//2-4 letters of username
Players[0].Active:=True;//Want to use player?
Players[0].Integers[1]:= 10;//Loads to do
Players[0].Pin := 0000;//bankpin, leave if have none
Players[1].Name :='';//username
Players[1].Pass :='';//password
Players[1].Nick :='';//2-4 letters of username
Players[1].Active:=True;//Want to use player?
Players[1].Integers[1]:= 5;//Loads to do
Players[0].Pin := 0000;//bankpin
end;
procedure FindRockyColor;
var
Rocky: integer;
begin
if not loggedin then exit;
Rocky := BitmapFromString(11, 10, 'beNpjYKAiyLeQB6JJfjptr' +
'qpYFXirCwGlIAqAKtFkY7WEgIJAKWQ1yMogXLgCCMKlAK4G2TFAB6' +
'AZgukSoBqIS+AIq1+AaiAIygcA/OQp8g==');
RockColor := AutoColorThis(Rocky, 20, MMX1, MMY1, MMX2, MMY2);
FreeBitMap(Rocky);
Writeln('Rock Color = ' + inttostr(rockColor));
findcolor(x,y,RockColor,MMX1, MMY1, MMX2, MMY2);
Writeln('x = ' + inttostr(x) + ' and y = ' + inttostr(y));
end;
procedure FindCactusColor;
var
Cactus: integer;
begin
if not loggedin then exit;
cactus := BitmapFromString(11, 11, 'beNpjYCADRBQYoTGQQWC8AV' +
'YFGV6aaAqAJJoJQCkgurCpAiIFRL7R4shqIAogJsAVYDoArgCPL5D' +
'dSZ4C0gAAcOEfiA==');
CactusColor := AutoColorThis(Cactus, 20, MMX1, MMY1, MMX2, MMY2);
FreeBitMap(cactus);
Writeln('CactusColor = ' + inttostr(rockColor));
findcolor(x,y,CactusColor,MMX1, MMY1, MMX2, MMY2);
Writeln('x = ' + inttostr(x) + ' and y = ' + inttostr(y));
end;
Procedure randoms;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
FindLamp('Crafting');
If(FindFight)Then
begin
MakeCompass('N');
RunTo('N', True);
Wait(7000 +Random(3000));
RunTo('S', True);
end;
if NoGameTab xor InBlack then
begin
Logout;
NextPlayer(False);
LoadNum:=0;
MakeCompass('N');
end;
end;
procedure AntiBanz;
begin
if not LoggedIn then Exit;
case Random(40) of
0: begin
HoverSkill('Attack', false);
wait(2000+random(1000));
GameTab(4);
end;
1: PickUpMouse;
2: begin
HoverSkill('Crafting', false);
wait(2000+random(1000));
GameTab(4);
end;
3: RandomRClick;
4: BoredHuman;
5: AlmostLogout;
end;
end;
procedure LoadDTms;
begin
HideDTM := DTMFromString('78DA631464646038C7800276AD5FCFF01F480' +
'36518FE0301A31C907592010D302291405A1CC8BA43400D0B9075' +
'85801A3622EC9204B28E1050C30764DD26A04606C8BA845F0D009' +
'62C0E47');
CoinsDTM := DTMFromString('78DA63BCC7C0C0709001051C5920C1F01F483' +
'302F17F20607C05641C6640038C4824907E08244E1050730D481C' +
'23A0E62C11763D0712C7F1AB01007A381058');
BuyDTM := DTMFromString('78DA633CCBC0C0B09001159CF8C1F01F48310' +
'2F17F2060BC0F642C66C00A18613448CD32026A4E12A16607116A' +
'5E00892504D4AC2342CD2620319F801A50F86C26A0E63690D8484' +
'0CD7E20B19E809ABD40622B7E350065531831');
BankDTM := DTMFromString('78DA63BCCDC4C0B0890105BC79F386E13F906' +
'604E2FF40C07809A8661DAA9AB76F213423940F56B3890835DB88' +
'50B31BBF1A00C9D316E2');
end;
Procedure Startbank;
var
time: Integer;
begin
if not Loggedin then exit;
MakeCompass('N');
MarkTime(time);
repeat
if bankscreen then break;
OpenBank('akb',true,true);
until(BankScreen or (TimeFromMark(time) > 120000));
if Bankscreen then
begin
Fixbank;
Wait(1000);
begin
if FindDTM(HideDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
mouse(x, y, 0, 0, false);
Wait(500);
if ChooseOption('Withdraw X')then
begin
wait(1000 + Random(500));
Typesend(inttostr(27 + random(1000)));
wait(1500 + random(300));
Closebank;
randoms;
AntiBanz;
end else
Writeln('Could not find cowhides!');
end;
end;
end;
Procedure Checkcash;
var
time: Integer;
begin
if not Loggedin then exit;
MakeCompass('N');
MarkTime(time);
repeat
OpenBankQuiet('akb')
if pinscreen then inpin(inttostr(Players[currentplayer].pin));
until(BankScreen or (TimeFromMark(time) > 120000));
if Bankscreen then
begin
if not FindDTM (CoinsDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
if FindDTM(CoinsDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
mouse(x, y, 0, 0, false);
Wait(500);
if ChooseOption('Withdraw X')then
begin
wait(1000 + Random(500));
Typesend(inttostr(Cashtodraw+ random(15000)));
wait(2500 + random(300));
CloseBank;
randoms;
end else
Writeln('Couldnt find any coins, exiting');
end;
end;
FreeDTM(CoinsDTM);
end;
procedure ToTanner;
begin
if not loggedin then exit;
if not RadialWalk(RockColor , 336, 359, 66, 0, 0) or
RadialWalk(CactusColor , 40, 80, 66, 0, 0) or
RadialWalk(CactusColor , 40, 90, 70, 0, 0) then
exit;
writeln('Walking failed!');
FFlag(5);
SymbolAccuracy := 0.85;
repeat
symbolaccuracy := symbolaccuracy - 0.05;
wait(1000);
randoms;
until (FindSymbol(x,y,'tanner'));
if(FindSymbol(x,y,'tanner'))then
Mouse(x, y, 2, 2,true);
FFlag(5);
symbolaccuracy := 0.8
end;
Function Talkandbuy:boolean;
var
x,y,i,m,s: integer;
q: tpoint;
tt : tpointarray;
rr : t2dpointarray;
Color1: array [0..4] of Integer;
begin
m := 0;
Color1[0] := 3235209;
Color1[1] := 4087723;
Color1[2] := 5208796;
Color1[3] := 2703218;
Color1[4] := 2966909;
SetAngle(true);
wait(1000);
Marktime(s);
for i := 0 to 4 do
repeat
Findcolorstolerance(tt,Color1[i],MSx1,MSy1,MSx2,MSy2,4);
rr := TpaToATPAex(tt,5,5);
for i:= 0 to high(rr) do
begin
if not loggedin then exit;
if length(rr[i]) > 1 then
begin
q := MiddleTPA(rr[i]);
if (q.x <> 0) and (q.y <> 0) then
begin
Mouse(q.x,q.y,5,5,False);
wait(500);
if ChooseOption('rade') then
begin
Wait(5000+random(225));
if finddtm(buydtm, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
mouse(x, y, 2, 2, false);
Wait(500);
ChooseOption('All');
Wait(1000);
result := true
Closebank;
randoms;
AntiBanz;
if findBlackChatMessage('anner') then exit;
end;
end;
end;
wait(500);
end;
end;
until(result) or (TimeFromMark(s)>100000);
end;
procedure Tobank;
begin
if not loggedin then exit;
if not RadialWalk(RockColor , 170, 204, 72, 0, 0) then
begin
if findsymbol(x,y,'cookery') then
Mouse(x, y + 10, 2, 2, true);
FFlag(5);
end else
Writeln('Walking has failed');
begin
SymbolAccuracy := 0.85;
repeat
symbolaccuracy := symbolaccuracy - 0.05;
wait(1000);
randoms;
until (FindSymbol(x,y,'bank'));
if(FindSymbol(x,y,'bank'))then
Mouse(x, y, 0, 0,true);
FFlag(5);
symbolaccuracy := 0.8
end;
end;
Procedure Banko;
var
time: Integer;
begin
MarkTime(time);
repeat
if (not(Loggedin)) then break;
OpenBankQuiet('akb')
until(BankScreen or (TimeFromMark(time) > 120000));
if Bankscreen then
begin
Deposit(2, 28, 2);
Tanned := Tanned + 27;
LoadNum := LoadNum + 1;
Players[currentplayer].integers[2] := Players[currentplayer].integers[2] + 27;
ReportVars[0]:= ReportVars[0] + 27;
SendSRLReport;
CloseBank;
randoms;
end;
end;
procedure Proggz;
begin
ClearDebug;
WriteLn(' _____ ___ _ ');
WriteLn('/__ \__ _ _ __ _ __ ___ _ __ / _ \ |____ ');
WriteLn(' / /\/ _` | _ \| _ \ / _ \ __/ /_)/ |_ / ');
WriteLn(' / / | (_| | | | | | | | __/ | / ___/| |/ / ');
WriteLn(' \/ \__,_|_| |_|_| |_|\___|_| \/ |_/___| ');
WriteLn('TannerPlz has been running for ' + Timerunning);
WriteLn('We have tanned ' + inttostr(Tanned) + ' hides altogether.');
for i := 0 to (HowManyPlayers - 1) do
begin
if players[i].integers[2] > 0 then
begin
Writeln('"' +Players[i].nick + '"' + '(' + BooltoStr(players[i].Active) + ')' +' has tanned ' + inttostr(players[i].integers[2]) + ' hides');
end;
end;
WriteLn('==============================================');
end;
begin
smartsetupEx(Smartworld,false,true);
SetTargetDC(smartGetDC);
SetupSRL;
ScriptId:= '724';
DeclarePlayers;
LoginPlayer;
LoadDTMs;
Checkcash;
repeat
Startbank;
ToTanner;
Talkandbuy;
Tobank;
Banko;
Proggz;
if (Players[CurrentPlayer].Integers[1]) = Loadnum then
begin
Logout;
NextPlayer(True);
LoadNum:=0;
MakeCompass('N');
end;
until(false);
end.——————————————————
<!– END TEMPLATE: formanswers –>