warship45
2006-09-25 15:08:28
hey, This small function allows you to check if the player is moveing if the player is moveing then it will return false if it is not moving it returns a true. I dont know all of the SRL procedures and functions that are made at the moment and as far as i could see by looking at the help files there is not a function out there that does this job however i may not be right about this so if there is i am sorry.
Thanks for looking at my function
Function Walkingcheck: Boolean;
var
mouseposx,mouseposy,Flagpointer,timeroutvar: Integer;
begin
Flagpointer:= DTMFromString('78DA63DCCCC4C090CB8002628D05195280342' +
'310FF0702C675986AFE43694618BD11A8268B809AF5403539F8D5' +
'00005BB40C80');
For timeroutvar:=0 to 10 do
begin
if FindDTM(Flagpointer,mouseposx,mouseposy,mmx1,mmy1,mmx2,mmy2)=True then
begin
result:= True;
exit;
end;
wait(100);
end;
result:= False;
end;Thanks for looking at my function