Toribash
Original Post
Command to make me say things in chat
So I'm making a chat bot for a room and I came to a silly problem. I've done all the parsing and have the command that the player typed but the problem is that I don't know how to make my account say the response to that command in chat. echo() won't work here because everyone needs to see it.

For example
Player1: !intro
Bot: Hello, this is a bot

I tried doing run_cmd(message) but that doesn't work.
I have balls of steel !
I'm a huge fan of Lua. Try
bot code:
print("Hello, this is a bot")

Hope I helped :)
| Leader of FC | Loans | ABD Enthusiast |
Originally Posted by ZENBOY123 View Post
I'm a huge fan of Lua. Try
bot code:
print("Hello, this is a bot")

Hope I helped :)

Thanks for your help, but sadly i didn't work.

It;s strange that I can do things like run_cmd("centerprint message") to print a message in the middle of the screen, but can't automatically send a simple chat message
I have balls of steel !
There's a /say command but it doesn't work with run_cmd(). There currently is no way to send chat messages with lua.
Signature temporarily out of order.
Originally Posted by psycore View Post
There's a /say command but it doesn't work with run_cmd(). There currently is no way to send chat messages with lua.

Well that's disappointing
I have balls of steel !
There are workarounds though, for example run_cmd("opt hair 0 \n" .. "SAY texthere \n")

btw it's illegal to make bots that say things in chat
Fukin spice and wolf
Originally Posted by IceColor View Post
There are workarounds though, for example run_cmd("opt hair 0 \n" .. "SAY texthere \n")

btw it's illegal to make bots that say things in chat

If I recall correctly, that bug has been fixed a while back. Feel free to try it, though; I could be wrong.
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today
Just checked, for me the /say command isn't even working anymore (in game, if I type it into the chat window). Makes sense if it's not allowed in scripts anyways.
Last edited by psycore; Sep 30, 2014 at 01:15 AM.
Signature temporarily out of order.