mIRC Homepage
Posted By: TheGigon script to only run when I type the command - 26/03/19 04:21 PM
I'm still new to mIRC so trying to figure something out.

I would like a script to run only when I type the command !ball15 in chat. Can I target an on text event trigger to my user name/nick or will I need to use an if then else trigger? If I need to use an if then else trigger, how do I get it to trigger for my username?

Thank you for any help that can be provided for this.
You cannot trigger your own On TEXT events in your own client. When you send a message to a channel or user, there is no acknowledgement from the server sent back to your client to tell you that you spoke in the channel or to a user. mIRC only triggers On TEXT events when a server tells mIRC that somebody spoke.

This is by design, as well, to prevent a script from trigging itself. You will need to create a command /alias to activate your scripted behaviors, or you will need to run a second instance of mIRC to behave as a third-party bot entity.
You use the ON INPUT Event, it is only for messages you type

Code:
on *:INPUT:#:{
 if ($1- == !ball15) { }
}
© mIRC Discussion Forums