mIRC Home    About    Download    Register    News    Help

Topic Options
#265280 - 26/03/19 04:21 PM script to only run when I type the command
TheGigon Offline
Nutrimatic drinks dispenser

Registered: 11/08/18
Posts: 5
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.

Top
#265282 - 26/03/19 04:50 PM Re: script to only run when I type the command [Re: TheGigon]
Raccoon Offline
Hoopy frood

Registered: 18/02/03
Posts: 2597
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.
_________________________
Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Top
#265294 - 27/03/19 09:33 PM Re: script to only run when I type the command [Re: TheGigon]
rafa555 Offline
Nutrimatic drinks dispenser

Registered: 06/03/19
Posts: 5
You use the ON INPUT Event, it is only for messages you type

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

Top