Ok well im trying to return what was said last from chat.
Simba Code:Function LastLineOfChat:Integer;
Begin
Case GetChatBoxText(8,clChat) Of
End;
I'm not sure what to do, i want it to search though array's and see if the chat matchs any of the arrays.
Example
It finds 'Hello, today is a nice day'
and the arrays are
['I hate today','Today is a bad day']
['Its raining today','I hate the rain']
['Yay i leveled up','Woot 1 level closer to 99']
['Hello, today is a nice day','I love today']
So it returns 4 as it matchs array 4
Thanks
E: saw no point in a new thread, but a new question
For MouseBox what is the parameter clickType?
Thanks again
Edit: Thank a ton guys for all your help
Im trying to send text. I needs to be from the array which is set in the parameter but can be from any in that array.
I tryed this but got compileing errorsSimba Code:Function Reply(A:Integer):Boolean;
Var
i: Integer;
TheArrays: Array Of TStringArray;
S: String;
Begin
TheArrays[0] := ['Hi', 'Hello', 'Hi all'];
TheArrays[1] := ['Array1_1', 'Array1_2', 'Array1_3', 'Array1_4'];
TheArrays[2] := ['Array2_1', 'Array2_2'];
TheArrays[3] := ['Array3_1'];
TheArrays[4] := ['Array4_1', 'Array4_2'];
For I := High(TheArrays) DownTo 0 Do
If I = A Then
Begin
TypeSendEx(TheArrays[I],True);
writeln('Said '+TheArrays[I]);
End;
End;
Thanks again for all your help, i know it seems like a lot but im find most my questions out my self![]()







Reply With Quote












