Results 1 to 5 of 5

Thread: Interface in chatbox?

  1. #1
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Interface in chatbox?

    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

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    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

  3. #3
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    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 don't think that's what he means. He means when you can use ClickToContinue.

  4. #4
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Should be this one.
    Code:
    function ClickContinue(SpaceBar, DoWait: Boolean): Boolean;
    ClickToContinue finds the blue words "Click to continue", ClickContinue finds the green bar, which always found when talking to NPC.

    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.

  5. #5
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks guys, i was searching for AreTalking() thanks for fast respons :P

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •