mIRC Home    About    Download    Register    News    Help

Print Thread
How do you do this? #177335 23/05/07 04:29 PM
Joined: Feb 2007
Posts: 75
T
Trixar_za Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Feb 2007
Posts: 75
Hey I wrote a IRC Game bot that can be run both on a Channel and on a IRC to IM gateway server.

The problem I have is sending information to all the active players (because the IM gateway server forces me to do every in queries) and just wondering if there is a way I can do that.

It is for general gamers messages like money, health and energy gained updates that everybody gets from time to time.

Thanks smile


GigIRC Network Admin
irc.gigirc.com
Re: How do you do this? [Re: Trixar_za] #177365 23/05/07 10:57 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
1) Ensure that you have the names of the players that you want the message sent to in a variable.
2) Ensure that the names are separated by COMMAS and that the variable contains NO SPACES.
3) Use /msg <variable> <message>

NOTE: If you have more names in the variable, than the server allows for MAXTARGETS, then only some of the people (the first names in the variable upto and including the limit supplied by MAXTARGETS) will receive the message.

Re: How do you do this? [Re: RusselB] #177421 24/05/07 04:34 PM
Joined: Feb 2007
Posts: 75
T
Trixar_za Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Feb 2007
Posts: 75
Thanks, The game uses player files (playername.ini) so I used that as the reference and compared it to those in the channel on the IRC to IM Gateway (all online contacts appear in the channel and all offline doesn't)

Using your concept like that it fixed the problem smile


GigIRC Network Admin
irc.gigirc.com