Author Topic: [coding help] how to get a bot to accept commands  (Read 624 times)

basically i want to have it so that when i click a bot it will display text along these lines

"Shopkeeper: What would you like to do?
Type 1 to sell ore
Type 2 to buy ore"

And when the player responds with 1 in chat it will not display the message but will call a function to sell ore.

If you have it, try using VCE to do this.

my guess is to check if the player is talking to the bot, and if the player is and types in one of those numbers, call the function but don't parent the servercmdmessagesent function (but parent it if the player is not talking to the bot)