Originally Posted by sirinsidiator
Thanks for the snippet. I will look into it after work.
This iterates over all options on every dialog and also opens the trading house on bankers, right?
Is there a way to distinguish a banker npc?
|
The code I posted distinguishes between the "Trading Guild" npcs & the banker npc. That is what why the code uses two variables. It searches all dialog options and only selects the trading house if it is the only option
(ignoring the general "talk" options).
So if they are at a bank there will be other options: Bank, Guild Bank, & Trading house. In that case NO it will not open the trading house on bankers, but I would assume that would be the preferred operation for it. Otherwise you would not be able to open the bank or guild bank because it would automatically open the trading house every time.
EDIT: I did it that way because I've never actually used any trading house and although, like sirinsidiator said, I also assumed the code sirinsidiator posted would work...that trading house would always be the first option, but I was not sure. So I checked all of the options to be safe.