Ello there,

I'm new to mirc, only started a few days ago, and i'm building/modifying a bot. If I want the script to read random lines from a text file, but i would like to put actions in there.

I saw this, I can in the remote files with......

Code:
on 1:text:*lol*:#: {  
  set %tk $rand(146)
  if (%tk == 1) { describe $chan looks at people laughing } 
  if (%tk == 2) { describe $chan laughs with everyone }
  if (%tk == 3) { describe $chan Laugh out Loud }
  if (%tk == 4) { describe $chan can't see what's so funny! }


but i wanted much more option, so i did this........

Code:
on 1:text:*lol*:#:/msg $chan $read(c:\mirc\txt\lol.txt) }


but how can i do actions in a text file? /me doesnt work, neither "describe"

I have even tried this......

Code:
on 1:text:*lol*:#: {  
  set %tk $rand(1,3)
  if (%tk == 1) { msg $chan $read(c:\mirc\txt\lol.txt) }
  if (%tk == 2) { describe $chan looks at people laughing }
  if (%tk == 3) { describe $chan Laugh out Loud }


but I get errors, like:

* /msg: insufficient parameters (line 341, talk.txt)


Any help or advice please ? smile

Greetings smile