SRL Archive - OSR Help

Problem with npc chat/ FindNPCChattext?


sckwarrior

2012-03-22 22:16:30

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?

Er1k

2012-03-23 01:22:46

The green button to proceed is ClickContinue(), and NPCText is as you said, FindNPCChatText(). Consult the simba includes for more information.

sckwarrior

2012-03-23 01:38:29

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

Er1k

2012-03-23 01:44:18

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.

sckwarrior

2012-03-23 01:58:11

Pm'd you

putonajonny

2012-03-23 14:46:35

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