using your original code unchanged you can do it.
on 1:TEXT:*:#:{
if ($1 == .cola) {
/msg $chan $read cola.txt
* note your using the old method of file $read here but I left it as is.
Simple add at the start of any of the lines to be /me the text inside "" ..... "ACTION "
In case that didnt come through in this forum you can make it using //echo " $+ $chr(1) $+ ACTION "
Copy only the text you get between the "" and paste that on the start of each /me line.
When you see the MSG in your channel it well look like
<YourNameHere> ACTION your text here Everyone else well see it as
* YourNameHere your text hereWhat are u doing? your sending the additional information in your message to the channel that makes the text appear to everyone else as /me over /msg
OR you can change your code to this
on 1:TEXT:*:#:{
if ($1 == .cola) {
$read(cola.txt,t)
* I dont actually endorse this as the best method.
And your cola.txt file contents to this...
describe $chan says boo to $chan
describe $chan looks around and sees no one important
msg $chan sees you $nick
etc
Whats happening?
you read a line of the cola.txt file and execute it as a line of your actual code, line 1 & 2 of the file is a /me but use /describe $chan which is the same as /me with a specific channel defined, in this case $chan, line 3 is a /msg $chan of course.
What to look out for is
WATCH WHAT YOU PUT IN THE COLA.TXT FILE its executed as a command so if u put in a line that was
part $chan guess what? your gonna part the channel!
another way could be on 1:TEXT:*:#:{
if ($1 == .cola) {
var %t = $read(cola.txt,t)
if $gettok(%t,1,32) == s { msg $chan $gettok(%t,2-,32) | return }
if $gettok(%t,1,32) == m { describe $chan $gettok(%t,2-,32) | return }
And your cola.txt file contents to this...
m says boo to $chan
m looks around and sees no one important
s sees you $nick
etc
whats happeing?
It reads a line in if the lines first word $gettok(%t,1,32) is "m" it is a /me (using /describe $chan) if its a "s" its a /say (using /msg $chan)
$gettok(%t,2-,32) is word 2 onward
you choose your prefered method, these arnt the only ones of course.