[-jesus-]
2007-11-13 21:07:22
How do you make a dtm for bankers in your MM? I've tried making some before but they haven't worked so far :(
2007-11-13 21:07:22
2007-11-13 21:53:05
2007-11-14 04:26:36
2007-11-14 09:05:22
2007-11-14 09:41:11
2007-11-14 09:49:51
2007-11-14 10:22:22
Function RecognizeNPCPixels(Var NPC: TPoint; AtX, AtY: Integer): TBox;
Var
TPA: TPointArray;
CTS: Integer;
Begin
If Not LoggedIn Then Exit;
CTS := GetColorToleranceSpeed;
If Not CTS = 2 Then ColorToleranceSpeed(2);
NPC.x := 0;
NPC.y := 0;
FindColorsSpiralTolerance(AtX, AtY, TPA, 195836, AtX - 2, AtY - 2, AtX + 2, AtY + 2, 5);
If InRange(GetArrayLength(TPA), 3, 8) Then
Begin
NPC := MiddleTPA(TPA);
Result.x1 := NPC.x - 2;
Result.y1 := NPC.y - 2;
Result.x2 := NPC.x + 2;
Result.y2 := NPC.y + 2;
End;
ColorToleranceSpeed(CTS);
End;
Function ToBankersVEB: Boolean;
Var
Spots: Array Of TPointArray;
TPA, NPCS: TPointArray;
CTS, T, I, C: Integer;
Bankers: TPoint;
TBA: TBoxArray;
BCMD: Boolean;
TP: TPoint;
TB: TBox;
Begin
If Not LoggedIn Then Exit;
CTS := GetColorToleranceSpeed;
If Not CTS = 2 Then ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MMCX, MMCY, TPA, 195836, MMX1, MMY1, MMX2, MMY2, 5);
Writeln(IntToStr(GetArrayLength(TPA)));
For I := 0 To High(TPA) Do
Begin
BCMD := False;
TB := RecognizeNPCPixels(TP, TPA[i].x, TPA[i].y);
For T := 0 To High(TBA) Do
Begin
If PointInBox(TP, TBA[t]) Then
Begin
BCMD := True;
Break;
End;
End;
If BCMD Then Continue;
If Not EqualTP(TP, 0, 0) Then
Begin
SetArrayLength(NPCs, GetArrayLength(NPCs) + 1);
NPCs[High(NPCs)] := TP;
SetArrayLength(TBA, GetArrayLength(TBA) + 1);
TBA[High(TBA)] := TB;
End;
End;
Spots := SplitTPAEx(NPCs, 6, 2);
For C := 0 To High(Spots) Do
Begin
If GetArrayLength(Spots[c]) >= 5 Then
Begin
Bankers := MiddleTPA(Spots[c]);
Break;
End;
End;
MouseFindFlag(Bankers.x + 4, Bankers.y - 5, 1, -2);
// If FindVEB(False) Then
Begin
Writeln('Successfully walked to bankers');
Result := True;
End;
ColorToleranceSpeed(CTS);
End;
;)2007-11-14 10:59:16
From: n3ss3s
Hmm, I'll do it before Wizzy comes and does:;)
Function RecognizeNPCPixels(Var NPC: TPoint; AtX, AtY: Integer): TBox;
Var
TPA: TPointArray;
CTS: Integer;
Begin
If Not LoggedIn Then Exit;
CTS := GetColorToleranceSpeed;
If Not CTS = 2 Then ColorToleranceSpeed(2);
NPC.x := 0;
NPC.y := 0;
FindColorsSpiralTolerance(AtX, AtY, TPA, 195836, AtX - 2, AtY - 2, AtX + 2, AtY + 2, 5);
If InRange(GetArrayLength(TPA), 3, 8) Then
Begin
NPC := MiddleTPA(TPA);
Result.x1 := NPC.x - 2;
Result.y1 := NPC.y - 2;
Result.x2 := NPC.x + 2;
Result.y2 := NPC.y + 2;
End;
ColorToleranceSpeed(CTS);
End;
Function ToBankersVEB: Boolean;
Var
Spots: Array Of TPointArray;
TPA, NPCS: TPointArray;
CTS, T, I, C: Integer;
Bankers: TPoint;
TBA: TBoxArray;
BCMD: Boolean;
TP: TPoint;
TB: TBox;
Begin
If Not LoggedIn Then Exit;
CTS := GetColorToleranceSpeed;
If Not CTS = 2 Then ColorToleranceSpeed(2);
FindColorsSpiralTolerance(MMCX, MMCY, TPA, 195836, MMX1, MMY1, MMX2, MMY2, 5);
Writeln(IntToStr(GetArrayLength(TPA)));
For I := 0 To High(TPA) Do
Begin
BCMD := False;
TB := RecognizeNPCPixels(TP, TPA[i].x, TPA[i].y);
For T := 0 To High(TBA) Do
Begin
If PointInBox(TP, TBA[t]) Then
Begin
BCMD := True;
Break;
End;
End;
If BCMD Then Continue;
If Not EqualTP(TP, 0, 0) Then
Begin
SetArrayLength(NPCs, GetArrayLength(NPCs) + 1);
NPCs[High(NPCs)] := TP;
SetArrayLength(TBA, GetArrayLength(TBA) + 1);
TBA[High(TBA)] := TB;
End;
End;
Spots := SplitTPAEx(NPCs, 6, 2);
For C := 0 To High(Spots) Do
Begin
If GetArrayLength(Spots[c]) >= 5 Then
Begin
Bankers := MiddleTPA(Spots[c]);
Break;
End;
End;
MouseFindFlag(Bankers.x + 4, Bankers.y - 5, 1, -2);
// If FindVEB(False) Then
Begin
Writeln('Successfully walked to bankers');
Result := True;
End;
ColorToleranceSpeed(CTS);
End;
But as Claw said, DDTM with 3 dots, area size of about 3 and so on should work.
@Claw: When do you release the miner to members or public or do you?
2007-11-14 11:09:47
2007-11-14 13:41:18
Function FindFourBankers(Direction:string):Tpoint;
var myy,myx,dist,DTMBankers:integer;
angle:extended;
begin
DTMBankers := DTMFromString('78DA636C66626058CB8002FEFFFFCFF01F483' +
'342D8FF195B116A98A16AFEFC6102D38C503E6323116ABA885053' +
'4D580D005F4D15F0'); //3 akbank4
if not FindDTMRotated(DTMBankers,myx,myy,mmx1,mmy1,mmx2,mmy2,0,180,2.0,angle) then
begin
freedtm(DTMBankers);
exit;
end;
freedtm(DTMBankers);
angle:=GetCompassAngle;
case lowercase(Direction[1]) of
'e': angle:=angle-270.0;
'w': angle:=angle-90.0;
's': angle:=angle-180.0;
end;
dist:=5+random(7);
result.x:=myx+round((dist)*sin(radians(angle)));
result.y:=myy-round((dist)*cos(radians(angle)));
end;
2007-11-14 14:12:03
2007-11-14 14:18:15
2007-11-14 15:59:01
From: n3ss3s
*teensoapoperashitcry* Don't say that!
:p
And the hell has my activity dropped by 3?!
But hey claw, can you answer when you get on?
2007-11-14 17:14:48
2007-11-14 17:23:40
2007-11-14 17:58:44
2007-11-15 09:16:39
Yup pay script, do you think we would go to the effort of making some of the best mining procedures around to give it out for free?
2007-11-24 04:41:49
2007-11-24 04:54:48