kuibo
2012-11-06 15:07:10
How Long have You Played Runescape?
7 Year(s)
Are you affilated in anyway with Jagex LTD?
no
Were you Referred to SRL?
kuibo
What is your general programming knowledge?
java
Are you a member of any other communities?
kuobo
Tell us about yourself…
Please show us one (or multiple) of your scripts.
7 Year(s)
Are you affilated in anyway with Jagex LTD?
no
Were you Referred to SRL?
kuibo
What is your general programming knowledge?
java
Are you a member of any other communities?
kuobo
Tell us about yourself…
From: kuibo
i am a human
Please show us one (or multiple) of your scripts.
program tree;
// Includes...
{$i srl/srl/misc/smart.simba}
{$loadlib sps}
{$i srl/srl.simba}
{$i sps/sps.simba}
{$i SRL/SRL/skill/fighting.simba}
Var
foodDTM,T, W,Breaks: Integer;
Uptexts: TStringArray;
procedure DeclarePlayers;
begin
HowManyPlayers := 1; // Set the number of players you are using
NumberOfPlayers(HowManyPlayers); // Don't touch
CurrentPlayer := 0; // This is the player to start with; the first player will always be 0
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
Players[0].WorldInfo := [True, 114]; // Either [Members, WorldNo] or for random world [Members, -1, PVP]
Players[0].BoxRewards := ['Pure ess', 'Coal', 'Uncut', 'oins'];
Players[0].Integers[1] := 20000000;//# of loads to do.
Players[0].Integers[2] := 30000000; // Time before breaking ( In minutes)
end;
procedure SetupLogin;
begin
ClearDebug;
// Setting up SMART;
Smart_Server := 22;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
ActivateClient;
LoginPlayer; // Logging in...
end;
procedure SetDTM;
begin
foodDTM := DTMFromString('mWAAAAHicY2FgYIhnYWAIBOIEIM4EYhFGBgYpIFYGYl4gXuAvxrApQpJhd4wUGIsA9SBjRjQMAgBoBgbO');
end;
procedure FreDTM;
begin
FreeDTM(foodDTM);
end;
function ffff: Boolean;
begin
if(LoggedIn)then
begin
Result := False;
if not SPS_PosOnMM(Point(3712, 3135))then
begin
Gametab(Tab_Inv);
Gametab(Tab_Inv);
Mouse(579, 225, 0, 0,true);
Mouse(579, 225, 0, 0,true);
wait(6000 + random(2000));
end else
while SPS_PosOnMM(Point(3712, 3135))do
begin
Result := true;
exit;
end;
end;
end;
procedure WalkTobb;
var
ToBb: TPointArray;
begin
if (LoggedIn) then
begin
if not FindNormalRandoms then
begin
SPS_Setup(RUNESCAPE_SURFACE, ['9_7','8_7','8_8']);
ClickNorth(SRL_ANGLE_HIGH);
Writeln('Walking to bank...');
ToBb := [Point(3712, 3135), Point(3671, 3130), Point(3642, 3146), Point(3621, 3179)];
if SPS_WalkPath(ToBb) then
Writeln('At the Bank..');
while(IsMoving) do
Wait(Random(200));
end else
Writeln('found Random!');
end;
end;
function Bank: Boolean;
var
x,y,p, t: Integer;
begin
if (LoggedIn) then
Result:= false;
t := 0; //Tries starts at zero
begin
CloseBank;
ffff;
WalkToBb;
SPS_WalkToPos(Point(3624, 3185));
repeat
Inc(t);
Writeln('Trying to open the bank: ' + IntToStr(t) + ' out of 10');
OpenBankNPC;
Wait(Random(2000));
until BankScreen or (t > 9)or not (LoggedIn);
if BankScreen then
begin
Writeln('Opened the bank...');
Deposit(2, 28, true);
wait(1000 + random(1000));
repeat
Inc(t);
withdrawex(0, 0, 25, [' ']);
wait(1000 + random(1000));
until FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2) or not (LoggedIn)or (t > 5);
end;
CloseBank;
end;
begin
Exit;
end;
end;
Function HpCheck(): boolean;
var
x, y:Integer;
begin
if (LoggedIn) then
begin
if not(FindColorTolerance(x, y, 65280, 718, 18, 744, 43,10)) and LoggedIn then
begin
while not(FindColorTolerance(x, y, 65280, 718, 18, 744, 43,10)) do
begin
if FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(500 + random(1000));
end else
begin
Result := true;
exit;
end;
end;
end;
if not(FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2)) then
begin
Result := true;
exit;
end;
if InvFull and LoggedIn then
begin
if FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(500 + random(1000));
end;
end;
Result := false;
end;
end;
function sos: Boolean;
var
x, y: integer;
begin
if(LoggedIn)then
begin
HpCheck;
while (FindColorTolerance(x, y, 2070783, 718, 18, 744, 43,10)) do
begin
Bank;
begin
repeat
if FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(500 + random(1000));
end;
until (FindColorTolerance(x, y, 65280, 718, 18, 744, 43,10));
end;
begin
CloseBank;
LogOut;
wait(2000 + random(1000));
end;
end;
begin
Exit;
end;
end;
end;
function Randoms: Boolean;
begin
if FindNormalRandoms then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
sos;
end;
procedure BreakTime;
var
s, i: Integer;
begin
if (s = 0) then
s := Players[CurrentPlayer].Integers[2] * 60000; //+ RandomRange(300000, 600000);
if T = 1 then
begin
W:= GetTimeRunning;
if (W > s) then
begin
Logout;
i:= RandomRange(10, 15);
Writeln('Taking a break for ' + IntToStr(i) + ' minutes');
i:= i * 60000;
Wait(i);
T := 0;
s:= W + s;
Inc(Breaks);
LoginPlayer;
end;
end else
if T = 0 then
begin
T := T + 1;
end;
end;
procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
Randoms;
begin
case Random(100) of
10: BoredHuman;
20: HoverSkill('strength', False);
30: HoverSkill('attack', False);
40: PickUpMouse;
50: RandomRClick;
60: RandomMovement;
70: SleepAndMoveMouse(200 + Random(50));
80: ExamineInv;
90: ClickNorth(SRL_ANGLE_HIGH);
end;
begin
Gametab(Tab_Inv);
MakeCompass('N');
Randoms;
end;
end;
end;
procedure RestUp;
begin
if not (LoggedIn) then
Exit;
begin
SetRest;
while not RunEnergy(90) do
begin
Antiban;
Wait(RandomRange(500, 700));
end;
end;
end;
procedure WalkToBank;
var
ToBank: TPointArray;
begin
if not (LoggedIn) then
Exit;
begin
if not Randoms then
begin
if not RunEnergy(40) then
RestUp;
SPS_Setup(RUNESCAPE_SURFACE, ['9_7','8_7','8_8']);
ClickNorth(SRL_ANGLE_HIGH);
Writeln('Walking to bank...');
ToBank := [Point(3712, 3135), Point(3671, 3130), Point(3642, 3146), Point(3621, 3179)];
if SPS_WalkPath(ToBank) then
Writeln('At the Bank..');
while(IsMoving) do
Wait(Random(200));
end else
Writeln('found Random!');
end;
end;
function Banking: Boolean;
var
x,y,p, t: Integer;
begin
if not (LoggedIn) then
Exit;
Result:= false;
t := 0; //Tries starts at zero
begin
CloseBank;
ffff;
WalkToBank;
SPS_WalkToPos(Point(3624, 3185));
repeat
Inc(t);
Writeln('Trying to open the bank: ' + IntToStr(t) + ' out of 10');
OpenBankNPC;
Wait(Random(2000));
until BankScreen or (t > 9)or not (LoggedIn);
if BankScreen then
begin
Writeln('Opened the bank...');
Deposit(2, 28, true);
wait(1000 + random(1000));
withdrawex(0, 0, 20, [' ']);
wait(2000 + random(1000));
end;
CloseBank;
end;
begin
Exit;
end;
end;
procedure WalkToa;
var
Toa: TPointArray;
begin
if not (LoggedIn) then
Exit;
begin
if not Randoms then
begin
while(IsMoving) do
Wait(Random(2000));
if not RunEnergy(40) then
RestUp;
SPS_Setup(RUNESCAPE_SURFACE, ['9_7','8_7','8_8']);
ClickNorth(SRL_ANGLE_HIGH);
Writeln('Walking to a...');
Toa := [Point(3726, 3138), Point(3696, 3136), Point(3653, 3128), Point(3635, 3151), Point(3596, 3169), Point(3598, 3199), Point(3585, 3234)];
if SPS_WalkPath(Toa) then
Writeln('At the a..');
while(IsMoving) do
Wait(Random(2000));
end else
Writeln('found Random!');
end;
end;
procedure WalkTotree;
var
Totree: TPointArray;
begin
if not (LoggedIn) then
Exit;
begin
if not Randoms then
begin
if not RunEnergy(40) then
RestUp;
SPS_Setup(RUNESCAPE_SURFACE, ['8_7','8_8']);
ClickNorth(SRL_ANGLE_HIGH);
Writeln('Walking to tree...');
Totree := [Point(3575, 3235), Point(3565, 3180), Point(3522, 3159), Point(3483, 3134), Point(3442, 3113), Point(3403, 3095), Point(3372, 3067)];
if SPS_WalkPath(Totree) then
Writeln('At the tree..');
while(IsMoving) do
Wait(Random(200));
end else
Writeln('found Random!');
end;
end;
procedure WalkTot;
var
Tot: TPointArray;
begin
if not (LoggedIn) then
Exit;
begin
if not Randoms then
begin
if not RunEnergy(40) then
RestUp;
SPS_Setup(runecrafting_altars, ['0_0']);
ClickNorth(SRL_ANGLE_HIGH);
Writeln('Walking to t...');
Tot := [Point(357, 322), Point(365, 318), Point(375, 315), Point(381, 312)];
if SPS_WalkPath(Tot) then
Writeln('At the t..');
while(IsMoving) do
Wait(Random(200));
end else
Writeln('found Random!');
end;
end;
procedure Chopb;
var x, y: integer;
begin
if not (LoggedIn) then
Exit;
while(IsMoving) do
Wait(Random(6000));
SPS_WalkToPos(Point(3372, 3067));
MarkTime(T);
repeat
Randoms;
if FindObjEx(X, Y, ['limb', 'own S'], [6513247,7368299], 15, 30, 190, 24, 335, 200) Then
if WaitUpText('limb', 600) then
begin
Mouse(x, y, 0, 0, false);
end;
if (TimeFromMark(T) > 150000) then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
until ChooseOption('limb')or (not(LoggedIn));
wait(8000 + random(1000));
end;
procedure Chopa;
var x, y: integer;
begin
if not (LoggedIn) then
Exit;
while(IsMoving) do
Wait(Random(6000));
SPS_WalkToPos(Point(3585, 3234));
MarkTime(T);
repeat
Randoms;
MakeCompass('w');
if FindObjEx(X, Y, ['limb', 'ver C'], [3360076], 5, 30, 190, 24, 335, 200)or FindObjEx(X, Y, ['alk'], [3360076], 5, 30, 190, 24, 335, 200)Then
begin
Mouse(x, y, 0,10, false);
end;
wait(300 + random(500));
if (TimeFromMark(T) > 150000) then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
until ChooseOption('limb')or (not(LoggedIn));
end;
Procedure ReturnValues(colors: TIntegerArray; var HueMods, SatMods: Extended; var color, Tolerance: Integer);
Var
h, s, t: Extended;
I,II : integer;
HSLColor : Array[1..3] of Extended;
HSL : Array[0..1] of Array[1..3] of Extended;
begin;
For I:= 1 to 3 do
begin;
HSL[0][i] := 255;
end;
For I:= 0 to High(Colors) do
begin;
ColortoHSL(Colors[i],HSLColor[1],HSLColor[2],HSLColor[3]);
For II:= 1 to 3 do
begin;
HSL[0][II] := MinE(HSLColor[II],HSL[0][II]);
HSL[1][II] := MaxE(HSLColor[II],HSL[1][II]);
end;
end;
H := (HSL[1][1] - HSL[0][1]);
S := (HSL[1][2] - HSL[0][2]);
T := (HSL[1][3] - HSL[0][3]);
try
HueMods := (H/T);
SatMods := (S/T);
Tolerance := Round(t);
except
HueMods := 0;
SatMods := 0;
Tolerance := Round(0.0);
end;
Color := HSLToColor((HSL[1][1] + HSL[0][1]) div 2,(HSL[1][2] + HSL[0][2]) div 2,(HSL[1][3] + HSL[0][3]) div 2);
end;
Function Findbones(Var X,Y: Integer): Boolean;
var
B: TBox;
TPA: TPointArray;
Hmod,Smod: Extended;
L,i,Tol,CTS,Col: Integer;
ATPA: T2DPointArray;
begin
Result := False;
ReturnValues([13948894,14212066,14803435,14606056,15132657,15263987,14344164], Hmod, Smod, Col, Tol);
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(Hmod, SMod);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, Col, MSX1, MSY1, MSX2, MSY2, Tol);
ColorToleranceSpeed(CTS);
if (Length(TPA) < 1) then
Exit;
ATPA := TPAToATPAEx(TPA, 60, 60);
SortATPAFrom(ATPA, Point(MSCX,MSCY));
L := High(ATPA);
SetArrayLength(ATPA, L+1);
for i := 0 to L do
begin
if (GetArrayLength(ATPA[i]) > 5) then
begin
B := GetTPABounds(ATPA[i]);
MiddleTPAEx(ATPA[i], X, Y);
MMouse(X, Y, 0, 0);
if WaitUpTextMulti(['ake', 'Tak'], 600) then
begin
Result := True;
GetMousePos(X, Y);
Exit;
writeln('Found bone');
end else
Result := False;
end;
end;
end;
Function hideFinder(Colors: TIntegerArray;TheUpText: TStringArray; midx, midy: integer): Boolean;
var
m,n,T,i,x,y: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
begin
begin
Uptexts:= ['ke Run','ke Natur','ranar''my dwarf we','Uncut ru','diamon',
'lf of a ke','ke aw run','ke aw run', 'ke Deat','ke Bloo','ke Silv',
'ke Uncut drag','ke Clean','ke Pure ess','ke Big bo', 'ke Coal',
'talism', 'ke Raw ','nyx bolt','une arro','Air or', 'Fire or',
'Runite or','Adamant ba','Rune ba','Yew see', 'Magic see','Palm tree s',
'Torstol se','Snapdragon se','Yew log', 'Dragon dag', 'Saradomin bre',
'Vecna s','onhide', 'ake Dra'];
end;
Begin
MarkTime(T);
Repeat
SetArrayLength(ATPA, Length(Colors));
for i := 0 to High(Colors) do
FindColorsSpiralTolerance(midx, midy, ATPA[i], Colors[i], MSX1, MSY1, MSX2, MSY2, 20);
TPA := MergeATPA(ATPA);
ATPA := TPAtoATPAEx(TPA, 5, 2);
SortATPAFrom(ATPA, Point(MSCX, MSCY));
if (Length(ATPA) = 0) then
Exit;
MiddleTPAEx(ATPA[0], x, y);
if (TimeFromMark(T) > 5000) then
Exit;
MMouse(x, y, 3, 3);
Wait(randomrange(10,15));
if not WaitUpTextMulti([' scale'],50) then
begin
if WaitUpTextMulti(['ake','Take'],50) then
begin
ClickMouse2(False);
WaitOptionMulti(Uptexts, 600);
Wait(RandomRange(1000, 2000));
end;
end;
while IsMoving do
begin
Wait(1000);
end;
if InvFull then
begin
Wait(250);
if FindDTM(foodDTM,m, n, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(m, n, 0, 0, true);
Mouse(m, n, 0, 0, true);
wait(500)
end else exit;
end;
Until(Result)
end;
end;
Function Pickuphide:Boolean;
Var
m, n,X, Y: Integer;
Begin
begin
if not (LoggedIn) then
exit;
Randoms;
if InvFull then
begin
Wait(250);
if FindDTM(foodDTM,m, n, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(m, n, 0, 0, true);
Mouse(m, n, 0, 0, true);
wait(500)
end else exit;
end;
If hideFinder([7934736,16598563,15166790,15035717,14382914], ['ake'], MSCX, MSCY) then
Begin
writeln('You have found the some hides!');
While IsMoving do
Wait(50);
Randoms;
Wait(RandomRange(500,750));
end;
if InvFull then
begin
Wait(250);
if FindDTM(foodDTM,m, n, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(m, n, 0, 0, true);
Mouse(m, n, 0, 0, true);
wait(500)
end else exit;
end;
End;
End;
Function PickupBones:Boolean;
Var
x,y,m, n: Integer;
Begin
begin
Uptexts:= ['ke Run','ke Natur','ranar''my dwarf we','Uncut ru','diamon',
'lf of a ke','ke aw run','ke aw run', 'ke Deat','ke Bloo','ke Silv',
'ke Uncut drag','ke Clean','ke Pure ess','ke Big bo', 'ke Coal',
'talism', 'ke Raw ','nyx bolt','une arro','Air or', 'Fire or',
'Runite or','Adamant ba','Rune ba','Yew see', 'Magic see','Palm tree s',
'Torstol se','Snapdragon se','Yew log', 'Dragon dag', 'Saradomin bre',
'Vecna s','onhide', 'ake Dra'];
end;
if not (LoggedIn) then
exit;
Randoms;
if InvFull then
begin
Wait(250);
if FindDTM(foodDTM,m, n, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(m, n, 0, 0, true);
Mouse(m, n, 0, 0, true);
wait(500)
end else exit;
end;
If Findbones(x,y) then
Begin
ClickMouse2(False);
WaitOptionMulti(Uptexts, 600);
writeln('You have found the some bones!');
While IsMoving do
Wait(RandomRange(500,750));
Randoms;
Wait(RandomRange(500,750));
end;
if InvFull then
begin
Wait(250);
if FindDTM(foodDTM,m, n, MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(m, n, 0, 0, true);
Mouse(m, n, 0, 0, true);
wait(500)
end else exit;
end;
End;
Function TalkingToMages: Boolean;
Var
TPAA: T2DPointArray; // The Variables of the Functions
TPA: TPointArray;
x, y,CTS, I, Retry: Integer;
Begin
if not InFight then
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 8090166, MSX1, MSY1, MSX2, MSY2, 25) // Enter the Color and Tolerance Here at the Right place.
ColorToleranceSpeed(CTS);
TPAA := TPAToATPAEx(TPA, 400, 50); //Put the Width and Heigh here
SortATPASize(TPAA, True);
For I := 0 To High(TPAA) Do
If GetArraylength(TPAA[i]) > 50 Then // Set How Much Points you need for your function to take Action
Begin
inc(Retry);
MiddleTPAEx(TPAA[i], x, y);
MMouse(X, Y, 3, 3);
Begin
Result := True;
GetMousePos(X, Y);
Mouse(x, y, 0, 0, false);
ChooseOption('ack Blu');
Writeln('We have found our dragon1, Yeh!');
Break;
End;
Break;
end;
end;
end;
Function TalkingToM: Boolean;
Var
TPAA: T2DPointArray; // The Variables of the Functions
TPA: TPointArray;
x, y,CTS, I, Retry: Integer;
Begin
if not InFight then
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 8940364, MSX1, MSY1, MSX2, MSY2, 25) // Enter the Color and Tolerance Here at the Right place.
ColorToleranceSpeed(CTS);
TPAA := TPAToATPAEx(TPA, 400, 50); //Put the Width and Heigh here
SortATPASize(TPAA, True);
For I := 0 To High(TPAA) Do
If GetArraylength(TPAA[i]) > 50 Then // Set How Much Points you need for your function to take Action
Begin
inc(Retry);
MiddleTPAEx(TPAA[i], x, y);
MMouse(X, Y, 3, 3);
Begin
Result := True;
GetMousePos(X, Y);
Mouse(x, y, 0, 0, false);
ChooseOption('ack Blu');
Writeln('We have found our dragon2, Yeh!');
Break;
End;
Break;
end;
end;
end;
procedure ChopTree;
var x, y: integer;
begin
if not (LoggedIn) then
exit;
Randoms;
begin
MarkTime(T);
repeat
begin
Mouse(290, 150, 0, 0,true);
end;
wait(500 + random(1000));
Randoms;
if (TimeFromMark(T) > 150000) then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
until FindObjEx(X, Y, [' '], [2171426], 5, 30, 245, 25, 255, 35) or (not(LoggedIn));
end;
end;
procedure Choptt;
var x, y: integer;
begin
if not (LoggedIn) then
exit;
MarkTime(T);
repeat
Randoms;
Mouse(660, 50, 0, 0,true);
wait(2000 + random(1000));
Mouse(660, 50, 0, 0,true);
wait(2000 + random(1000));
Mouse(660, 50, 0, 0,true);
wait(2000 + random(1000));
Mouse(660, 50, 0, 0,true);
if (TimeFromMark(T) > 150000) then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
until FindObj(x, y, 'sterious', 8620680, 20)or (not(LoggedIn));
end;
procedure Chop1;
var x, y: integer;
begin
if not (LoggedIn) then
exit;
while(IsMoving) do
Wait(Random(1000));
MarkTime(T);
repeat
Randoms;
if FindObj(x, y, 'sterious', 8620680, 20) Then
if (IsUpTextMultiCustom(['terio'])) then
begin
Mouse(x, y, 20, 0, false);
wait(300 + random(500));
end;
if (TimeFromMark(T) > 200000) then
begin
if Gametab(Tab_Inv) then
ffff;
CloseBank;
LogOut;
end;
until ChooseOption('ter Myst')or (not(LoggedIn));
end;
procedure Chop2;
begin
if not (LoggedIn) then
exit;
Randoms;
wait(6000 + random(2000));
Mouse(630, 140, 0, 0,true);
wait(7000 + random(2000));
Mouse(600, 140, 0, 0,true);
while IsMoving do
begin
Wait(1000);
end;
end;
procedure ChopTr;
var
x,y,num,t,t1:integer;
begin
MarkTime(t);
MarkTime(t1);
num :=1;
repeat
if not (LoggedIn) then
exit;
Randoms;
TalkingToM;
TalkingToMages;
if InFight then
begin
AntiBan;
wait(2000 + random(1000));
begin
if HpCheck() then
begin
Pickuphide;
PickupBones;
exit;
end;
end;
MarkTime(t);
num :=1;
end;
Pickuphide;
PickupBones;
if(TimeFromMark(t1)>25*60000)then exit;
if(TimeFromMark(t)>60000)then
begin
if FindColorTolerance(X, Y, 1179647, MMX1, MMY1, MMX2, MMY2, 30) then
begin
Mouse(x, y, 0, 0,true);
MarkTime(t);
end;
end;
if num = 1 then
if not(Pickuphide or PickupBones) then num := 2;
until (not FindDTM(foodDTM,x, y, MIX1,MIY1,MIX2,MIY2))or not(LoggedIn);
Pickuphide;
PickupBones;
end;
procedure aa;
begin
if not (LoggedIn) then
exit;
Randoms;
begin
WalkToa;
while(IsMoving) do
wait(3000 + random(1000));
WalkToa;
while(IsMoving) do
wait(3000 + random(1000));
if SPS_WalkToPos(Point(3585, 3234))then
begin
Chopa;
end;
WalkTotree;
while(IsMoving) do
wait(3000 + random(1000));
WalkTotree;
while(IsMoving) do
wait(3000 + random(1000));
if SPS_WalkToPos(Point(3372, 3067))then
begin
Chopb;
end;
end;
end;
procedure MainLoop;
begin
SetupLogin;
SetDTM;
repeat
repeat
Gametab(Tab_Inv);
Banking;
aa;
wait(7000 + random(3000));
Mouse(290, 32, 0, 0,true);
wait(4000 + random(500));
ChopTree;
Choptt;
Chop1;
Chop2;
ChopTr;
Wait(Random(200));
until not (LoggedIn);
SetupLogin;
until False;
writeLn('Freeing DTMs');
FreDTM;
end;
begin
MainLoop;
end.