SRL Archive - Research & Development Lounge

Function InX: Boolean;


Floor66

2008-12-01 11:53:39

{*******************************************************************************
Function InX: Boolean;
By: Floor66
Description: Checks if we are ready to fill in an 'X' amount
Example: While Not InX Do Wait(100);
TypeSend('28');
*******************************************************************************}

Function InX: Boolean;
Var DTM, x, y : Integer;
Begin
DTM := DTMFromString('78DA6364626460580BC428A081E13F900489F' +
'E07024666206B15A61A06A81A30CD0A64AD27A086810835208BD7' +
'1050C3C648500D0012890D2F');
Result := (FindDTM(DTM, x, y, MCX1, MCY1, MCX2, MCY2));
FreeDTM(DTM);
End;

I don't know if SRL has this function but I needed it quickly so I made one :D

Naum

2008-12-01 12:11:33

Hounestly, we really dont need to fill in the nooks and crannies of SRL, Personally the script user can make this themselves..

Btw : The finddtm should end with the co-ords 756, 503..

700, 700 goes out of the runescape window :)

Floor66

2008-12-01 13:09:13

Yeh but w/e it finds it :P

Nava2

2008-12-01 16:47:05

Also, why not just use the MCX's and MCY's?