Originally Posted by
~Justin
Haha HpCheck; very helpful
. Will give credit.
I've had a look into OtherInFight but it seem'd to slow down the script as it would detect someone else's fight and wait for their HP bars to go away before finding the next NPC.
You have to use it right. Like
While OthersInFight do wait
or
Until (not OthersInFight)
If only your HP bar is up then the NPC must be dead yes?
I was more regarding this (code below) about credit, way more unique then HpCheck. I'm not trying to be a dick about it, but its good too credit work as you can get in trouble for plagiarizing so try to make a habit of it. (I had to do the same)
Simba Code:
Function EdgeOpenBank: Boolean;
var
TPA: TPointArray;
ATPA: T2DPointArray;
i, cts: integer;
T: TPoint;
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.33, 0.22);
FindColorsTolerance(TPA, 3688009, MSX1, MSY1, MSX2, MSY2, 3)
ColorToleranceSpeed(cts);
SetColorSpeed2Modifiers(0.2, 0.2);
if Length(TPA) < 1 then
Exit;
ATPA := SplitTPAEx(TPA, 1, 4);
SortATPASize(ATPA, True);
SetArrayLength(ATPA, Min(3, Length(ATPA)));
SortATPAFromFirstPoint(ATPA, Point(MSCX+30, MSCY));
for i := 0 to High(ATPA) do
begin
T := MiddleTPA(ATPA[i]);
MMouse(T.x-5, T.y-5, 10, 10);
wait(100+Random(100));
If WaitUptext('ounter', 620) then
begin
ClickMouse2(false);
Result := WaitOptionMulti(['quic', 'quickly', 'se-q'], 1000);
if Result then
Exit;
end;
end;
end;
Edit: note this is my updated one heh