SRL Archive - Development

New and Improved "CheckHitpoints"


Function

2010-01-25 19:57:28

Alright so I haven't checked out how the current CheckHitpoints (if there even is one) sees how much hitpoints you have. But what about my idea that would be completely stable and never fail(in theory unless they change it which I don't think they will.)

Now I've found that the yellow color in the stats thing never changes. So couldn't we just do a count color?

If there is an easier way to do this please tell me. But if not then I will contiune to do this.

Just trying to help :)


function CheckHitpoints: integer;
begin
//MouseBox(558, 177, 575, 196, 1); //To click on the stats icon thing
case CountColor(65535, 631, 231, 646, 244) of
11: begin
if(GetColor(637, 240) = 65535)and
(GetColor(639, 235) = 65535)then
begin
result := 7 //
end else
result := 1;
end;
15: begin
if(GetColor(641, 240) = 65535)and
(GetColor(640, 240) = 65535)then
begin
result := 2; //
end else
begin
if(GetColor(640, 238) = 65535)and
(GetColor(637, 236) = 65535)and
(GetColor(640, 233) = 65535)then
begin
result := 5; //
end else
result := 9; //
end;
end;
13: begin
if(GetColor(638, 240) = 65535)and
(GetColor(639, 240) = 65535)then
begin
result := 3; //
end else
result := 4; //
end;
18: result := 6; //
19: result := 8; //
25: result := 10; //
end;
end;

All of them so far have been tested and work.

(I have a lvl 115 main which I could get the rest up to 89 if we decide to do this.)

Wanted

2010-01-25 19:59:57

GetMMLevels('health', S);

Function

2010-01-25 20:01:24

From: IceFire908
GetMMLevels('health', S);


Ok if that'll work thats cool just wondering :)

WT-Fakawi

2010-01-26 09:32:16

Good work. I like when someone shows creativity. Too bad it was already implemented :)

marpis

2010-01-26 11:01:06

The cases where GetMMLevels stops working are
a) font changes
b) colors change
which both break your method too.

Function

2010-01-26 16:41:08

From: WT-Fakawi
Good work. I like when someone shows creativity. Too bad it was already implemented :)


Thanks :) I try lol

From: marpis
The cases where GetMMLevels stops working are
a) font changes
b) colors change
which both break your method too.


I see I didn't realize that the stats fonts changed to. Although color changes would be easy to work with, with my method. But asuming that its easy with my method its most likely easy to change with GetMMLevels. And font would probally change all the countcolors which would take a long time to fix :P Thanks though!