SRL Archive - SRL Archives

Function LoadingScreen: Boolean;


Cheesehunk

2006-05-17 22:14:48

I have just quickly thrown this procedure together, it detects if a loading screen is coming up, and replies back True, or False.

[PHP]Function LoadingScreen: Boolean;
var mx, my: integer;
begin
if (FindMMColor(mx, my, 0)) then
Result := True;
end; [/PHP]

I have to go for the night, tommorow I may add detection for where the black screen is coming from (N, E, S, W)

I may also add it so it will only find the color in those areas on the very sides of the minimap.

I am a bit tired right now, so I may not be making sence, but thats about it…

phantombmx

2006-05-17 22:55:54

this will return true whenever is it called… if you look at an item dot or a player dot (including yourself) there is a shadow that is black.. sorry but i know what you mean

Cheesehunk

2006-05-17 23:04:21

From: phantombmx
this will return true whenever is it called… if you look at an item dot or a player dot (including yourself) there is a shadow that is black.. sorry but i know what you mean


Yes, the shadow is black, but it isn't pure black (0).

I checked the shadows color and it returned: 65536, which is not the same as 0.

This searches for pure black.

Starblaster100

2006-05-18 06:34:45

What about if your underground? Or if there is a ladder around, such as next to the guildmines? It will alwasy return true then.

Its a nice idea, but i dont see what it would be used for

Cheesehunk

2006-05-19 22:02:05

From: Starblaster100
What about if your underground? Or if there is a ladder around, such as next to the guildmines? It will alwasy return true then.

Its a nice idea, but i dont see what it would be used for

Me neither, I was tired when I made it didn't realize how useless it was until SRL forums went down for a bit.

I wouldn't really care if this was removed.