Results 1 to 6 of 6

Thread: Problem with npc chat/ FindNPCChattext?

  1. #1
    Join Date
    Dec 2011
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Problem with npc chat/ FindNPCChattext?

    Say theres two different scearios
    1. In my script the player clicks the npc, clicks continue and then presses 1 for the first option.
    2.I talk to the same npc again but all of the options are different.

    How could I get the script to identify the differences ex( with a butler in construction fetching planks while still having a full inventory, clicking continue and not pressing anything..instead right clicking the butler to fetch from bank[scenario 2] and talking to the butler, clicking continue and having to pay them using the first option[scenario 1])

    Could someone help me by either posting what to do or directing me to the correct thread?
    Last edited by sckwarrior; 03-23-2012 at 02:44 AM.

  2. #2
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The green button to proceed is ClickContinue(), and NPCText is as you said, FindNPCChatText(). Consult the simba includes for more information.
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  3. #3
    Join Date
    Dec 2011
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    My problem is getting it to skip a step if the chat option isn't there

  4. #4
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what does FindNPCChat do again? Can you get the false boolean return value and work on it?

    Or if the options change, there's usually some unique chat text in either chat options that allows you to uniquely identify which is which

    Sorry, but I don't really have access to RS right now so I can't see for myself what exactly the situation is.
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  5. #5
    Join Date
    Dec 2011
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Pm'd you

  6. #6
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Use something like GetTextAtEx to find and identify the text, post screenies if you want me to help more

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
  •