There are many ways to do this, but it all depends on what exactly you need. I've created several variants for you so you can choose the one that's right for you.

Try using this script code:
Code
on *:TEXT:*:#:{
  ;React to text where the first word is always "Jimmy"  
  if (Jimmy == $1) { msg $chan $1 }
  
  ;React to text that contains the word "Jimmy" anywhere, even when the word is written together without spaces
  if (Jimmy isin $1-) { msg $chan $v1 }
  
  ;React only to the presence of a certain sentence in the text, where the first word is always "Jimmy"
  if (Jimmy has entered the chat* iswm $1-) { msg $chan $1 }
  if (Jimmy likes apples* iswm $1-) { msg $chan $1 }
}

All unnecessary conditions can be commented out by placing a ";" sign in front of the line.

You can read more about the "ON TEXT" event handler here: https://en.wikichip.org/wiki/mirc/on_events/on_text


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples