When I try to use the below function with Smart enabled it doesn't find the text. But it I disable Smart, it finds it.
Simba Code:if(FindText(x, y, 'light', SmallChars, 59, 440, 92, 458))then
begin
Writeln('Cannot light a log here');
end;
When I try to use the below function with Smart enabled it doesn't find the text. But it I disable Smart, it finds it.
Simba Code:if(FindText(x, y, 'light', SmallChars, 59, 440, 92, 458))then
begin
Writeln('Cannot light a log here');
end;
Do you have SMART included in the script?
Such as( under program new; ) :
Simba Code:{$i srl/srl/misc/smart.scar}
Looks like you're trying to get the last message from the chatbox. Check out chat.scar in your SRL folder. There are a couple things you can try, but not all will work. InChat, or GetChatBoxText are probably your best bet from my quick glance. But I suggest you head over there and check everything out for yourself.
There are currently 1 users browsing this thread. (0 members and 1 guests)