00smurf7
2014-11-06 21:37:11
Hi there im currently trying to write a basic combat script for OSRS not something to complex what is the best way to check if in combat? and that being said are there other methods?
2014-11-06 21:37:11
2014-11-06 21:46:43
function IsInCombat: Boolean;
var
x, y, : Integer;
begin
Result := false;
//searching for the green of a health bar //searching for the red of a health bar
if ((FindColorTolerance(x, y, 65280, MSX1,MSY1,MSX2,MSY2, 5)) or (FindColorTolerance(x, y, 255, MSX1,MSY1,MSX2,MSY2, 5))) then
begin
Result := true;
end;
end; 2014-11-09 10:40:24
2014-11-09 11:33:56
From: 00smurf7
Thank you so much this will help a ton. Is there a way to pull a list of functions or commands ( not sure the proper term) or is it just based on memorization. IF there is a list/post on this already i apologize. specifically curious about a lot more of the Runescape specific functions such as the smart finding of specific item slots or the deposit button on the bank ect…I like the game but im more taking this oportunity to try and take another hack at learning this, I've tried in the past and i really enjoy learning and the challenge of it.
2014-11-10 16:27:54
2014-11-13 19:42:55