Bionicle
2009-09-12 01:26:14
needs testing pl0x ;)
2009-09-12 01:26:14
2009-09-13 05:22:18
2009-09-13 05:26:58
wait(1000+random(250));2009-09-13 06:10:00
with players[0] do
begin
Name := ''; //Your Username
Pass := ''; //Your Password
Nick := ''; //A nickname to call you by
Active := true; //True if you are using this account, false if not
Strings[0] := '2983'; /////@@
BoxRewards := ['mote', 'ostume', 'Xp']; //Random event rewards
end;
{
}
with players[1] do
begin
Name := '';
Pass := '';
Nick := '';
Active := false;
Strings[0] := '2983'; /////@@
BoxRewards := ['mote', 'ostume', 'Xp'];
end;
InPin(Players[CurrentPlayer].Strings[0]);
function FindDDTMColor(FindTheDDTMColor: Integer): Integer;
var
TPA: TPointArray;
I, Col: Integer;
begin
case FindTheDDTMColor of
1: if FindColorsTolerance(TPA, 2654058, MMX1, MMY1, MMX2, MMY2, 10) then
begin
Col := GetColor(TPA[I].X, TPA[I].Y);
Result:= Col;
end;
2: if FindColorsTolerance(TPA, 7236721, MMX1, MMY1, MMX2, MMY2, 10) then
begin
Col := GetColor(TPA[I].X, TPA[I].Y);
Result:= Col;
end;
3: if FindColorsTolerance(TPA, 2917252, MMX1, MMY1, MMX2, MMY2, 10) then
begin
Col := GetColor(TPA[I].X, TPA[I].Y);
Result:= Col;
end;
4: if FindColorsTolerance(TPA, 2449517, MMX1, MMY1, MMX2, MMY2, 10) then
begin
Col := GetColor(TPA[I].X, TPA[I].Y);
Result:= Col;
end;
5: if FindColorsTolerance(TPA, 7764087, MMX1, MMY1, MMX2, MMY2, 10) then
begin
Col := GetColor(TPA[I].X, TPA[I].Y);
Result:= Col;
end;
end;
end;
function FindDDTMColor(FindTheDDTMColor: Integer): Integer;
var
TPA: TPointArray;
I, Col: Integer;
begin
case FindTheDDTMColor of
1: FindColorsTolerance(TPA, 2654058, MMX1, MMY1, MMX2, MMY2, 10);
2: FindColorsTolerance(TPA, 7236721, MMX1, MMY1, MMX2, MMY2, 10);
3: FindColorsTolerance(TPA, 2917252, MMX1, MMY1, MMX2, MMY2, 10);
4: FindColorsTolerance(TPA, 2449517, MMX1, MMY1, MMX2, MMY2, 10);
5: FindColorsTolerance(TPA, 7764087, MMX1, MMY1, MMX2, MMY2, 10);
end;
if(GetArrayLength(TPA) > 0)then
Result := GetColor(TPA[I].X, TPA[I].Y) else
Result := 0;
end;
FFlag(0);
wait(15000+random(5000));
procedure WalkToBank;
begin
begin
ClearDebug;
Setrun(true);
DDTM1 := DDTMWalk(1);
If DTMRotated(DDTM1, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step one of WalkToBank successful');
end;
procedure WalkToBank;
begin
ClearDebug;
Setrun(true);
DDTM1 := DDTMWalk(1);
If DTMRotated(DDTM1, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Mouse(x, y, 0, 0, true);
WriteLn('Step one of WalkToBank successful');
end;
procedure WalkToBank;
begin
ClearDebug;
Setrun(true);
DDTM1 := DDTMWalk(1);
If DTMRotated(DDTM1, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step one of WalkToBank successful');
end;
wait(7000)
DDTM2 := DDTMWalk(2);
If DTMRotated(DDTM2, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step two of WalkToBank successful');
wait(7000)
DDTM3 := DDTMWalk(3);
If DTMRotated(DDTM3, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step three of WalkToBank successful');
wait(7000)
DDTM4 := DDTMWalk(4);
If DTMRotated(DDTM4, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step four of WalkToBank successful');
wait(7000)
DDTM5 := DDTMWalk(5);
If DTMRotated(DDTM5, x, y, MMX1, MMY1, MMX2, MMY2) then
Mouse(x, y, 0, 0, true);
WriteLn('Step five of WalkToBank successful');
ProgressReport;
wait(7000);
end;
procedure WalkToBank;
var i, TheDDTM: Integer;
begin
ClearDebug;
Setrun(true);
for i := 1 to 5 do
begin
TheDDTM := DDTMWalk(i);
If DTMRotated(TheDDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
Mouse(x, y, 0, 0, true);
WriteLn('Step ' + IntToStr(i) + ' of WalkToBank successful');
FFlag(0);
end;
end;
ProgressReport;
end;
if IsUpText('ew logs') then
begin
Wait(80 + random(100));
Mouse(x, y, 4, 3, false);
ChooseOption('All');
end;
if IsUpText('ew logs') then
begin
GetMousePos(x,y);
Wait(80 + random(100));
Mouse(x, y, 0, 0, false);
ChooseOption('All');
end;
if(not(LoggedIn))then NextPlayer(False);
procedure MainLoop;
begin
ClearDebug;
SetupSRL;
DeclarePlayers;
GraphicsSet := true;
if not loggedin then loginPlayer;
makecompass('n');
SetAngle(True);
DisguiseClient('Windows Updates');
Disguise('Downloading...');
WalkToYew;
repeat
repeat
ChopYew;
WalkToBank;
BankYews;
WalkFromBank;
ProgressReport;
Until(l = loads);
NextPlayer(true);
until(false);
end;
2009-09-13 20:24:36
From: JAD
Great job though! You are really moving along. You just need a few tweaks here and there and need a little more experience. I suggest working on your walking for now by learning effective ways to use DDTM's, and add more fail safes. Your object finding looks great though :)
Good luck! I foresee you becoming an SRL member very soon.
~JAD
2009-09-16 21:29:59
2009-11-04 12:12:31
[Runtime Error] : Out Of Range in line 45 in script I:\Documents and Settings\XXJUSTIN100XX\Desktop\Bionicle1800's Catherby Yew Smasher
2009-11-04 15:07:36