laakerules
2011-12-30 15:16:00
How would i add a kill counter to my script and then make it say how many kills happened inside the progres report!
2011-12-30 15:16:00
2011-12-30 15:19:25
2011-12-30 15:23:28
2011-12-30 15:31:54
2011-12-30 15:41:34
procedure KCount;
begin
repeat
Inc(Kills);
until(Kills = 9999);
end;
Procedure ProgressReport;
begin
ClearDebug;
Writeln('********************************************');
Writeln('* Name of script *');
Writeln('********************************************');
Writeln('* Killed ' + AttackingOption + ' NPCs');
Writeln('You have killed ' + IntToStr(Kills) + ' '+AttackingOption+'');
Writeln('* Ran for ' + TimeRunning + '');
Writeln('********************************************');
end;
and i have tried both haveing the variable at the top with all the other global variables. and i tried at the bottom with the script runner.
2011-12-30 15:47:07
2011-12-30 15:49:03
2011-12-30 15:57:24
From: laakerules
Nope, im just getting the error of the variable doesnt exist now. How should i declare the variable.
Kills= Integer;
or how?
[B]var[/B] Kills: integer;
2011-12-30 15:58:28
2011-12-30 16:14:58
2011-12-30 16:15:46
2011-12-30 16:17:16
2011-12-30 16:17:53
2011-12-30 16:35:36
procedure PickupBones;
var
sX,sY: Integer;
begin
if PickupBone = 'Regular' then
FindObjSimple_F([13422806, 14014175], ['ake','Bones'], MSCX, MSCY);
writeln('Picking up Bones!');
While IsMoving do
wait(1);
FindNormalRandoms;
wait(randomrange(1400,2000));
end;
2011-12-30 16:40:26
From: laakerules
Nw heres a code giving me major troubles. How would i make it right click then go to ake bone. Because rite now its clicking the whold pile until it gets the bone.
procedure PickupBones;
var
sX,sY: Integer;
begin
if PickupBone = 'Regular' then
FindObjSimple_F([13422806, 14014175], ['ake','Bones'], MSCX, MSCY);
writeln('Picking up Bones!');
While IsMoving do
wait(1);
FindNormalRandoms;
wait(randomrange(1400,2000));
end;
2011-12-30 16:42:55
2011-12-30 16:47:07
From: laakerules
procedure PickupBones;
var
sX,sY: Integer;
begin
if PickupBone = 'Regular' then
begin
FindObjSimple_F([13422806, 14014175], ['ake','Bones'], MSCX, MSCY);
writeln('Picking up Bones!');
While IsMoving do
wait(1);
FindNormalRandoms;
wait(randomrange(1400,2000));
end;
end;
2011-12-30 16:48:53
2011-12-30 16:52:59
2011-12-30 21:14:58
procedure PickupBones;
var
sX,sY: Integer;
begin
if PickupBone = 'Regular' then
begin
FindObjCustom(sX, sY, ['ake','Bones'], [13422806, 14014175], 10);
writeln('Picking up Bones!');
While IsMoving do
wait(1);
FindNormalRandoms;
wait(randomrange(1400,2000));
end;
end;
2011-12-31 01:01:04
2011-12-31 01:08:50
From: laakerules
Nope, i need it to right click the go to ake bones. that one just hovers over it and if it doesnt say ake Bones then it moves on!
Function FindObjSimple_F(Colors: TIntegerArray; TheUpText: TStringArray; midx, midy: integer): Boolean;
Var
T,i,X,Y: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
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, 15);
TPA := MergeATPA(ATPA);
ATPA := TPAtoATPAEx(TPA, 15, 15);
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, 10, 10);
Wait(randomrange(75,125));
If(IsUpTextMultiCustom(TheUpText)) then
begin
ClickMouse2(True);
if DidRedClick then
begin
Result := True;
Break;
end;
end;
Until(Result)
end;
2011-12-31 01:11:55
2011-12-31 01:15:32
From: laakerules
I already have a find simple object in my script for attacking!
2011-12-31 01:28:57