mIRC Home    About    Download    Register    News    Help

Print Thread
#233066 11/07/11 12:02 PM
Joined: Jul 2011
Posts: 1
I
iWader Offline OP
Mostly harmless
OP Offline
Mostly harmless
I
Joined: Jul 2011
Posts: 1
Hey There,

I've recently started writing a bot, however one thing im having a problem with is some scon work.

Code:
on $4:TEXT:& *:#: {
  scon $$2 $$3-
}


I have this command, it triggers, however when its triggered, the bot sends 12 messages (i have 12 bots online). How can i fix it so that the bot only does 1 message to the channel?

I had a fix before however its been a while since i touched anything like this. Regards, Wade.

Here is what i mean

Code:
 12:58  @Wader           & 1 msg # $cid
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1
 12:58  %Cerberus        1

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try changing $$2 to $$1 and $$3- to $$2-

Please note that this will still allow people (that know) to use a command like -at1 SUCKER

Which will send the message SUCKER to all connections.

If you can provide an example of what you are looking for regarding the command and result, then I'll be happy to look into a code for you.

One last thing, this post really should've been posted in the Scripts & Popups section.


Link Copied to Clipboard