Hey guys,
I was wondering if there is a function which checks if there is a interface open in the chat box? like when you talk with a npc? Searched for it but couldn't find.
Thanks![]()
Hey guys,
I was wondering if there is a function which checks if there is a interface open in the chat box? like when you talk with a npc? Searched for it but couldn't find.
Thanks![]()
There's one called "DoConversation"
If your talking about the interface u get when mixing herbs or doing skills then this will work:
Simba Code:Function SkillingInterface: Boolean;
var
Text: String;
Bool: Boolean;
begin
Text:= GetTextAtExWrap(41, 345, 278, 362, 0, 5, 2, 16777215, 10, 'SmallChars');
Bool:= ExecRegExpr('make', Text) or ExecRegExpr('wish to make', Text) or ExecRegExpr('wish | to | make', Text);
If (Bool) then
begin
MouseBox(207, 398, 314, 460, MOUSE_MOVE);
if (WaitUptextMulti(['ake', 'All', 'ke A'], 600)) then
begin
ClickMouse2(MOUSE_LEFT);
Result:= True;
end;
end;
end;
Function WaitSkillingInterface(TimeToWait: Integer): Boolean;
var
T: integer;
begin
T := (GetSystemTime + TimeToWait);
while (GetSystemTime < t) do
begin
if (SkillingInterface) then
begin
Result:= True;
Break;
end;
Wait(50);
end;
end;
I am Ggzz..
Hackintosher
Should be this one.
ClickToContinue finds the blue words "Click to continue", ClickContinue finds the green bar, which always found when talking to NPC.Code:function ClickContinue(SpaceBar, DoWait: Boolean): Boolean;
Or this
function AreTalking(): boolean;
Returns true if player is talking to an NPC.
Last edited by CephaXz; 05-15-2012 at 10:21 AM.
thanks guys, i was searching for AreTalking()thanks for fast respons :P
There are currently 1 users browsing this thread. (0 members and 1 guests)