David199619
2013-06-19 15:12:17
I copied the test script in with the original SMART and SMART 8.0 and neither compile correctly. I get an error like this:
And it opens globals and loads an 800+ line thing, and puts the cursor in here:
What should I do?
[Error] C:\Simba\Includes\SRL/SRL/core/globals.simba(696:5): Unknown identifier 'ImageSetClientArea' at line 695
Compiling failed.
And it opens globals and loads an 800+ line thing, and puts the cursor in here:
(*
srl_InFight
~~~~~~~~~~~
HERE IS WHERE THE CURSOR IS, THIS LINE IS BLANK AND HIGHLIGHTED, WHICH IS LINE 695.
.. code-block:: pascal
function srl_InFight: Boolean;
Checks whether player currently is in a fight, using mainscreen
HP bar presence detection. Returns True if Player's HP bar is detected.
Idea for improvement: Also check using PixelShift(); to see whether Player
is performing fighting animations to further improve the certainty of results.
.. note::
by Narcle
Example:
.. code-block:: pascal
while srl_InFight do
begin
CheckHP;
EatFood;
end;
*)
Function srl_InFight: Boolean;
begin
Result := InRange(Length(GetFightBarTPA(MFBox)), 30, 240);
end;
What should I do?