XabdullahX
2009-06-06 22:39:58
3 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
I know HTML(lol), php(mysql), vb6 and vb.net - and Scar :)
Are you a member of any other communities?
I've been a member of Gamecheetah.com, mpcforums.com.
Else, a danish phones, computers and stuff forum called mobildebat.dk.
I own Arcadeskillz.com.
Tell us about yourself…
From: xabdullahx
Hello
My name is Abdullah, i am 17 And go in high school (2nd year).
I love computers, Parkour, phones and gadgets.
I've been in love in computers since they came out (i was erhm about 5 i think), my uncle bought my dad a computer and i used it since then ! (Was DOS in the start).
Later on, 12 years old, i started Visual basic 6, it was cool to do stuff in it, when i turned 16 i was good at vb6, so i decided to switch to Vb.Net.
Btw. I live in denmark
Please show us one (or multiple) of your scripts.
I kept a few stuff thats not working, i thought its best to keep them rather than deleting them - just to show u i can.
Stuff like Flag; and radialwalk wasnt working when i made script.
Enjoy
program LumbyCooker;
{.Include SRL\SRL\Misc\SMART.SCAR}
{.Include SRL/SRL.scar}
//**************************************************************************\\
//** **\\
//** .:Instructions:. **\\
//** 1- Start at lumbridge bank, no items in inv **\\
//** 2- Change the constants, as u desire **\\
//** 3- Enter your army’s users and passes (could be single also)**\\
//** 4- Target RS with the crosshair, Hit Play **\\
//** **\\
//** NB! Must have Cooks assistent done **\\
//**************************************************************************\\
//** **\\
//** Created By: **\\
//** XabdullahX @ Villavu.com **\\
//** Author: **\\
//** **\\
//**************************************************************************\\
//** **\\
//** .:Features:. **\\
//** • AutoColor **\\
//** • Updated - lol **\\
//** • Cooks any Raw food **\\
//** **\\
//**************************************************************************\\
//Start at Lumby bank, fix lines 48, 50 (opt), 52 and up to 91:
//Remove the { } if u want to use more players
const
//Smart Settings
UseSmart = True;
Member = False;
World = 120;
var
x, y, angel, farve, //Farve means color in my language :)
XpGained, FishCooked, Food ,Tries,
DDTMTol, theDDTM, CookedYet, lvlups, breakstaken : integer;
angeel : Extended;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Character Name
Players[0].Pass := ''; //Character Pass
Players[0].Nick := ''; //Nickname 3 - 4 Letter's of char name
Players[0].Active := true; //Use player in script?
Players[0].Pin := ''; //Pin for bank, leave blank is none
Players[0].Strings[0] := 'Shrimps'; //Type in the food you want to cook
Players[0].Integers[0] := 100; //How many u want to cook
Players[0].Integers[1] := 1; //After cooking HowMany, it will take a break, then login and cook HowMany again (in minutes)
Players[0].Integers[2] := 250; //How Many fish to cook before going to next character
{
Players[1].Name := ''; //Character Name
Players[1].Pass := ''; //Character Pass
Players[1].Nick := ''; //Nickname 3 - 4 Letter's of char name
Players[1].Active := true; //Use player in script?
Players[1].Pin := ''; //Pin for bank, leave blank is none
Players[1].strings[0] := ''; //Type in the food you want to cook
Players[1].Integers[0] := 10; //How many u want to cook
Players[1].Integers[1] := 1; //After cooking HowMany, it will take a break, then login and cook HowMany again (in minutes)
Players[1].Integers[2] := 30; //How Many fish to cook before going to next character
Players[2].Name := ''; //Character Name
Players[2].Pass := ''; //Character Pass
Players[2].Nick := ''; //Nickname 3 - 4 Letter's of char name
Players[2].Active := true; //Use player in script?
Players[2].Pin := ''; //Pin for bank, leave blank is none
Players[2].strings[0] := ''; //Type in the food you want to cook
Players[2].Integers[0] := 10; //How many u want to cook
Players[2].Integers[1] := 1; //After cooking HowMany, it will take a break, then login and cook HowMany again (in minutes)
Players[2].Integers[2] := 30; //How Many fish to cook before going to next character
Players[3].Name := ''; //Character Name
Players[3].Pass := ''; //Character Pass
Players[3].Nick := ''; //Nickname 3 - 4 Letter's of char name
Players[3].Active := true; //Use player in script?
Players[3].Pin := ''; //Pin for bank, leave blank is none
Players[3].strings[0] := ''; //Type in the food you want to cook
Players[3].Integers[0] := 10; //How many u want to cook
Players[3].Integers[1] := 1; //After cooking HowMany, it will take a break, then login and cook HowMany again (in minutes)
Players[3].Integers[2] := 30; //How Many fish to cook before going to next character
}
CheckUserNicks;
end;
//--------------------FindRange Procedure------------------\\
// _______________________________________________________ \\
//{ Should be in srl :) }\\
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ \\
//--------------------FindRange Procedure------------------\\
function RangeDDTM: Integer;
var
dtmMainPoint: TDTMPointDef;
dtmSubPoints: Array [0..3] of TDTMPointDef;
TempTDTM: TDTM;
begin
dtmMainPoint.x := 430;
dtmMainPoint.y := 335;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 1319837;
dtmMainPoint.Tolerance := DDTMTol;
dtmSubPoints[0].x := 430;
dtmSubPoints[0].y := 335;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 1319837;
dtmSubPoints[0].Tolerance := DDTMTol;
dtmSubPoints[1].x := 428;
dtmSubPoints[1].y := 337;
dtmSubPoints[1].AreaSize := 0;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := 1319837;
dtmSubPoints[1].Tolerance := DDTMTol;
dtmSubPoints[2].x := 429;
dtmSubPoints[2].y := 337;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 1319837;
dtmSubPoints[2].Tolerance := DDTMTol;
dtmSubPoints[3].x := 426;
dtmSubPoints[3].y := 335;
dtmSubPoints[3].AreaSize := 0;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := 1319837;
dtmSubPoints[3].Tolerance := DDTMTol;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
Function FindRangez: Boolean;
begin
if not LoggedIn then Exit;
DDTMTol := 5;
theddtm := RangeDDTM;
repeat
if not DtmRotated(theddtm, X, Y, MSX1, MSY1, MSX2, MSY2) then
begin
IncEx(DDTMTol, 5)
FreeDTM(theddtm);
theddtm := RangeDDTM;
end else
begin
Result := True;
Break;
end;
until (DDTMTol >= 100);
DDTMTol := 5;
FreeDtm(theddtm);
end;
//---------------------End of FindRange Procedure-----------------------\\
function LoadingPlzWait: Boolean;
begin
while (GetColor(230, 235) = 1118604) do
Wait(100);
Result := not GetColor(230, 235) = 1118604;
end;
Procedure SAndWItem(Item: String; Amount: Integer; TerminateIfLessThan : Integer); //Search and Withdraw item from bank
var xitems : Boolean;
ite: Integer;
OneLetterOff: String;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
if (BankScreen) then
begin
Mouse(85,307,1,1,True);
Wait(700+Random(500));
TypeSend(item);
Wait(800+Random(800));
If (GetAmount(53,108) < TerminateIfLessThan) then
begin
Writeln('Less Amount than requested..');
WriteLn('Changing Player..');
Nextplayer(False);
end;
MMouse(51,110,5,5);
Wait(500+Random(200));
ite := Length(Item);
OneLetterOff := Right(Item, ite - 1);
If IsUpText(Lowercase(OneLetterOff)) then
begin
MMouse(50,110,2,2);
GetMousePos(x,y);
Mouse(x,y,2,2,False);
Wait(300+Random(300));
Case Amount of
1, 5, 10 : ChooseOption('Withdraw-'+IntToStr(Amount));
else
begin
Chooseoption('Withdraw-X');
xitems := true;
end;
end;
end;
if (xitems) then
begin
Wait(600+Random(200));
TypeSend(Inttostr(amount));
end;
end else
Writeln('Its not open?');
end;
Function CheckLevelUp : Boolean;
Var lvlup:Integer;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
lvlup := DTMFromString('78DA63D46764602863624006337BF5C034239' +
'4CF680164E5A3AAA98E4353A3016415A2AAD9B43016558D1E9055' +
'40C02E9039E5A86AD6CF764751030095450A2C');
if (FindDTM(lvlup,x,y, MCX1,MCY1,MCX2,MCY2)) then
begin
result := True;
Writeln('Gratz! Lvl up');
Wait(2000+Random(500));
ClickToContinue;
lvlups := lvlups + 1
end else
begin
result := False;
end;
end;
Procedure AlternativeDown1;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
Tries := 0
MakeCompass('S');
Setangle(False);
Wait(500+Random(200));
MMouse(369,142,5,6);
if (IsUpText('case')) then
Begin
GetMousePos(x,y);
Mouse(x,y,1,1,True);
End else
MMouse(365,137,1,1);
repeat
begin
MMouse(x-10,y-3,1,1);
Inc(Tries);
end;
Until ((Tries = 20) Or (IsUpText('case')));
end;
Procedure BankAndWithdraw;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
OpenBankFast('lb');
Wait(700+Random(100));
Mouse(395,306,2,2,True); //Deposit all items, DepostAll; Seemed slow
if (MakeCompass('S')) then
begin
SAndWItem('raw '+LowerCase(Players[CurrentPlayer].Strings[0]), 99, 27);
end else
begin
SAndWItem('raw '+LowerCase(Players[CurrentPlayer].Strings[0]), 99, 27);
CloseBank;
MakeCompass('S');
end;
end;
Function Down: Boolean;
Begin
if not LoggedIn then Exit;
FindNormalRandoms;
Result := False
if (FindObjCustom(x,y,['case'], [4606796,7897218],10)) then
begin
Mouse(x,y,3,3,True);
Wait(2000+Random(300));
if (FindObjCustom(x,y,['case'], [3685437,6054499],10)) then
begin
Mouse(x,y,3,3,False);
Wait(300);
ChooseOption('down');
end;
end;
End;
Procedure Setup;
begin
SetupSRL;
Wait(1000);
DeclarePlayers;
if not LoggedIn then LoginPlayer;
end;
Procedure GetDown;
Begin;
if not LoggedIn then Exit;
FindNormalRandoms;
MakeCompass('S');
SetAngle(False);
Mouse(640,18,6,6,True); //RadialWalking aint working either
Case random(5) of
1: SetRun(True);
end;
Wait(5000); //Flag Doesnt seem to work
Down;
end;
Procedure GotoSymbol;
Begin
if not LoggedIn then Exit;
FindNormalRandoms;
Wait(2000);
if (FindSymbol(x,y, 'cook')) then
begin
Mouse(x,y,2,2,true);
Flag;
end else
begin
MakeCompass('N');
Wait(500+Random(300));
SetAngle(True);
Wait(200+Random(300));
Mouse(648,57,2,2,True);
End;
Mouse(701,447,1,1,true);
MakeCompass('N');
SetAngle(True);
Wait(1000+Random(200));
if not (Isuptext('Use')) then
begin
Mouse(617,376,2,2,True);
Flag;
end;
End;
Procedure ClickRawAndCook;
var trys : Integer;
Begin
if not LoggedIn then Exit;
FindNormalRandoms;
MMouse(255,415,1,1);
farve := GetColor(147,356)
if not (farve=128) then
repeat
Wait(1000);
farve := GetColor(147,356);
Inc(Trys);
until ((farve=128) or (trys = 20));
Mouse(254,413,1,1,false);
Wait(300);
ChooseOption('ll');
End;
Procedure WaitTillFinished;
var uncooked : Integer;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
Uncooked := GetColor(705,445);
repeat
Wait(1000);
Wait(300);
Case Random(20) of
1: MMouse(1,1,300,450); //Antiban
3: Begin GameTab(2); Wait(1000+Random(1000)); GameTab(4); end;
11: MMouse(1,1,700,750);
end;
if (Checklevelup) then
begin
Wait(1000+Random(200));
FindRangez;
Wait(700+Random(600));
Mouse(705,445,2,2,True);
Mouse(x,y,2,2,True);
Wait(700);
//Cook All again
Mouse(254,413,1,1,false)
Wait(300);
ChooseOption('ll');
end;
until not ((GetColor(705,445) = Uncooked) Or not (LoggedIn));
writeln('All Cooked! ..Returning..');
Food := Food + 28
FishCooked := FishCooked + 28
end;
Procedure Return_GoToLadder;
var DTM1, DTM2, DTM3, DTM4, DTM5, Bank : Integer;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
//Wow - This aint working, but kept it to show u i can
{var trys, CurrentDTM : Integer;
thisdtm : Array [0..4] of integer;
Thing:Boolean;
begin
DTM1 := DTMFromString('78DA632C616260F06640011F3FBF01D38C503' +
'E6315504D38013539403541F8D5000051DF0ACB');
DTM2 := DTMFromString('78DA630C6262602862400171C6DC609A11CA6' +
'70C03AA2920A006644E3E7E3500FF96042C');
DTM3 := DTMFromString('78DA63BCC6C4C0A0C0C8800C2A4AF219B8803' +
'448F43F10309E07AA51465593EEC405A661A28C578854A34640CD' +
'39C26A00F0F00D14');
DTM4 := DTMFromString('78DA630C636260C8614001DE92109A11CA670' +
'C01AAC922A02602A8269B809A70A09A745435EFDEBD435103009B' +
'A10708');
DTM5 := DTMFromString('78DA630C65626028664001DE92109A11CA678' +
'C24424D30116A42806A8AF0AB0100828704C1');
ThisDtm[0] := DTM1;
ThisDtm[1] := DTM2;
ThisDtm[2] := DTM3;
ThisDtm[3] := DTM4;
ThisDtm[4] := DTM5;
if not (FindDTMRotated(ThisDTM[CurrentDTM],x,y, MMX1,MMY1,MMX2,MMY2, 0,0,10,angeel)) then
begin
repeat
begin
case trys of
5: CurrentDTM := 1;
10: CurrentDTM := 2;
15: CurrentDTM := 3;
20: CurrentDTM := 4;
end;
trys := trys + 1
if (FindDTMRotated(ThisDTM[CurrentDTM],x,y, MMX1,MMY1,MMX2,MMY2, 0,0,10,angeel)) then
begin
Thing := True
end;
end;
until ((FindDTMRotated(ThisDTM[CurrentDTM],x,y, MMX1,MMY1,MMX2,MMY2, 0,0,10,angeel) or (trys = 25)));
FreeDTM(DTM1);
FreeDTM(DTM2);
FreeDTM(DTM3);
FreeDTM(DTM4);
FreeDTM(DTM5);
end;
if (thing = True) then
begin
Mouse(x,y,1,1,True);
Wait(5000); //Flag aint working :(
end;
}
Wait(2000+Random(200));
Mouse(116,328,2,2,True);
Wait(900+Random(200));
MakeCompass('S');
Wait(500+Random(200));
FindObjCustom(x,y, ['rune'], [1804255, 542021], 10);
Mouse(x,y,2,2,False);
ChooseOption('ake');
Wait(1000+Random(100));
end;
Procedure Return_GetUp;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
if not (FindObjCustom(x,y, ['case'],[8555148, 6515051],13)) then
begin
Wait(500+random(200));
FindObjCustom(x,y, ['case'],[8555148, 6515051],13);
end;
Mouse(x,y,1,1,False);
ChooseOption('case');
Wait(500+Random(600));
LoadingPlzWait;
Wait(300);
if not (FindObjCustom(x,y, ['case'],[8555148, 6515051],13)) then
FindObjCustom(x,y, ['case'],[8555148, 6515051],13);
Wait(1000+Random(1000));
Mouse(x,y,2,2,False);
Wait(100);
ChooseOption('up');
Wait(200);
end;
Function FindBankSymbol : Boolean;
var bank : Integer;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
bank := BitmapFromString(7, 13, 'beNpjYICAbXNsIYiBAUXk67f5c' +
'Cm4CBwlBLFARIAMCAlBcMEP5xWBJNxACBdCQsQhZgJFIAhTHL8hcF' +
'ehCcINhJsJFIQwkG2BALizQRwADpBrPA==');
If (FindBitmapRotated(Bank, x,y, angel, MMX1,MMY1,MMX2,MMY2)) then
begin
Result := True;
end else
Result := False;
FreeDTM(bank);
end;
Procedure Return_GoToBank;
Begin
if not LoggedIn then Exit;
FindNormalRandoms;
Wait(600);
MakeCompass('N');
Wait(200);
MakeCompass('N'); //In case the first failed
If (FindBankSymbol) Then //Why cant i do FindSymbol('Bank') lol
begin
Mouse(x,y,2,2,True);
End else
begin
Writeln('Failed Clicking symbol eh ?');
Writeln('Lets try this..');
Mouse(639,44,2,2,True);
end;
Wait(4000+Random(300));
end;
Procedure ClickRange;
var trys : Integer;
Begin
if not LoggedIn then Exit;
FindNormalRandoms;
FindRangez;
Mouse(x,y,1,1,False); //GoTo Range
Wait(300);
if not (ChooseOption('ange')) then
begin
repeat
Wait(500+Random(100));
FindRangez;
Mouse(x,y,2,2,False);
inc(trys);
until ((ChooseOption('ange')) or (trys = 50));
end;
End;
Procedure Progz;
Begin
if not LoggedIn then Exit;
WriteLn('------------------------------------------');
Writeln('| This applys for all characters |');
WriteLn('------------------------------------------');
Writeln('| |');
Writeln('| Thx For using my Cookzorx Script |');
if (lvlups > 1) then
begin
Writeln('| Gratz on this: '+ InttoStr(lvlups)+' Cooking lvls! |');
Writeln('| |');
WriteLn('------------------------------------------');
end else
begin
Writeln('| Remember to post Proggiez |');
Writeln('| |');
WriteLn('------------------------------------------');
end;
Writeln('| |');
Writeln('| Script Ran for: '+ TimeRunning+ '|');
Writeln('| Totally cooked fish: '+ IntToStr(FishCooked)+' |');
Writeln('| Breaks Taken: '+IntToStr(BreaksTaken)+' Aka '+IntToStr(Players[0].Integers[1])+' Minutes ea. |');
Writeln('| |');
WriteLn('------------------------------------------');
Writeln(' ');
end;
Procedure CheckBreak;
var minu, seco: Integer;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
If (Food > Players[CurrentPlayer].Integers[0]) then
begin
minu := Players[CurrentPlayer].Integers[1];
// Logout; Not Working either :S:S:S:S
//Logout Player
Mouse(753,12,2,2,True);
Wait(600+Random(200));
Mouse(646,376,2,2,True);
Wait(1000);
//Logout Done
Disguise('Taking Break');
Wait(1000);
Repeat
Disguise('Left: '+ IntToStr(minu) + ' Minutes');
Wait(500);
Disguise('Left: '+IntToStr(seco) + ' Seconds');
Wait(500);
if (seco = 0) then
begin
minu := minu - 1;
seco := 60
end;
seco := seco - 1;
Until ((minu = 0) and (seco = 0));
Disguise('Waiting random 20 seconds');
Wait(20000);
Disguise('.:LumbyCooker:.');
BreaksTaken := BreaksTaken + 1
Food := 0
end;
end;
Procedure MainLoop;
begin
Repeat
Begin
If not (LoggedIn) then
LoginPlayer;
BankAndWithdraw;
GetDown;
GoToSymbol;
ClickRange;
ClickRawAndCook;
WaitTillFinished;
Return_GoToLadder;
Return_GetUp;
Return_GoToBank;
Progz;
CheckBreak;
End;
Until (Players[CurrentPlayer].Integers[2] < FishCooked);
end;
Procedure SetupSmart;
begin
SMARTSetUpEX(World, Member, True, False);
SetTargetDC(SMARTGetDC);
end;
//-------------------------------Main Loop----------------------------------\\
begin
Disguise('.:LumbyCooker:.');
Cleardebug;
Setup;
If (UseSmart) then SetupSmart;
Repeat
Repeat
Begin
MainLoop;
End;
Until (Players[CurrentPlayer].Integers[2] < FishCooked);
NextPlayer(True);
Until (AllPlayersInactive);
end.