BobboHobbo
2009-07-18 10:19:44
Well i got my FindAxe proc, because SRL's is broken atm, here it is:
It cannot find what AxeBH is?!?? like when you play it it finds the exact colours and everything… Debug.
Which is the rune axe and the proc isnt saying it is. WHY?
function FindAxeAccurate: Boolean;
var
AxeBH: string;
AxeHeadDTM, xQ, yQ: integer;
Axetype, Z, I: Integer;
begin
AxeHeadDTM := DTMFromString('78DA639CC0CCC0D0CEC8800CDCE3D219FE036' + '990E87F20609C0C54D38BAA06220B2381F414A09A16026A7A8950' + 'D30354D349404D07504D1B7E35009D660CB4');
Gametab(5);
if FindDTM(AxeHeadDTM, xQ, yQ, MIX1, MIY1, MIX2, MIY2) then
begin
Writeln('X :' + IntToStr(xQ) + ' Y: ' + IntToStr(yQ));
Writeln(GetColor(xQ, yQ));
case Axetype of
0: if (GetColor(xQ, yQ) = 1381655) then
AxeBH := 'Dragon';
1: if (GetColor(xQ, yQ) = 6774343) then
AxeBH := 'Rune';
2: if (GetColor(xQ, yQ) = 4544069) then
AxeBH := 'Adamant';
3: if (GetColor(xQ, yQ) = 6439747) then
AxeBH := 'Mithril';
4: if (GetColor(xQ, yQ) = 1381655) then
AxeBH := 'Black';
5: if (GetColor(xQ, yQ) = 7566203) then
AxeBH := 'Steel';
6: if (GetColor(xQ, yQ) = 5263446) then
AxeBH := 'Iron';
7: if (GetColor(xQ, yQ) = 2440526) then
AxeBH := 'Bronze';
end;
for Axetype := 0 to 7 do
begin
If not (AxeBH = '') then break;
Writeln(AxeBh);
Writeln('X :' + IntToStr(xQ) + ' Y: ' + IntToStr(yQ));
Writeln(GetColor(xQ, yQ));
end;
end
else
Result := false;
FreeDTM(AxeheadDTM);
end;
It cannot find what AxeBH is?!?? like when you play it it finds the exact colours and everything… Debug.
X :583 Y: 219
6774343
X :583 Y: 219
6774343
X :583 Y: 219
6774343
X :583 Y: 219
6774343
X :583 Y: 219
6774343
Which is the rune axe and the proc isnt saying it is. WHY?