Use ChooseOption functions.
http://freddy1990.com/srlmanual/SRL/core/Text.html
http://freddy1990.com/srlmanual/SRL/core/Timing.html
The simple ChooseOption or WaitOption is enough most of the cases.
Use ChooseOption functions.
http://freddy1990.com/srlmanual/SRL/core/Text.html
http://freddy1990.com/srlmanual/SRL/core/Timing.html
The simple ChooseOption or WaitOption is enough most of the cases.
can you post screenshots of the examples of each text type? Specifically, I was wondering what the options text is, such as "Walk here" or "Climb-up Ladder" or "Wield Rune pickaxe," that appears at the top left of your screen.NPCChars := Chat text that the NPC makes e.g like the chat the Banker says like 'would you like to access your account?'
TradeChars := Not used but its the text in the trade screen e.g 'Accept'
SmallChars := Normal Chat text
StatChars := Letters of the stats
UpChars := The letters of the uptext
Ok so I'm trying the FindText because I am trying to make antirandom for the pickaxe head falling off.
So I made this procedure (note it's just a test):
But it returned this error:Simba Code:Procedure AxeHead;
begin
If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
Mouse(x, y, 1, 1, True);
end;
The x was this one: FindText (x <--[Error] C:\Users\Mikkoz\Desktop\IronMiner.simba(28:16): Unknown identifier 'x' at line 27
Compiling failed.
But then I tried adding Var
And it returns this:Simba Code:Procedure AxeHead;
Var
x, y: integer;
begin
If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
Mouse(x, y, 1, 1, True);
end;
So my question is, is it detecting the text if it appears?Compiled successfully in 374 ms.
There are currently 1 users browsing this thread. (0 members and 1 guests)