mIRC Home    About    Download    Register    News    Help

Topic Options
#230218 - 02/03/11 01:03 PM [REQUEST] An auto-message on join script
hardspikes Offline
Self-satisified door

Registered: 02/03/11
Posts: 4
Hey guys , I was wondering if you can help me out here , I've known on join scripts and I'm using it now adays and when I'm connected , it sends me a message each time somebody joins a channel:
YYYY Target change too fast. Please wait 97 seconds.
XXXX Target change too fast. Please wait 99 seconds.
(I'm sending private messages on join)
The script I'm using is as simple as that:
Code:
on 1:JOIN:#:/msg $nick MESSAGE CONTENT

I need to know how I can use this script without getting the "Target chance too fast" error, and successfully send messages to EACH ONE who joins a channel I'm in .
Thank you very much smile

Top
#230219 - 02/03/11 01:15 PM Re: [REQUEST] An auto-message on join script [Re: hardspikes]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
First, script requests belong in the scripting forum. Second, networks only allow you to send a limited number of message simultaneously or within a short period of time. If you have a large number of people joining the channel on a regular basis, you shouldn't try to message all of them. If you have something to tell them, use the topic or have a !rules or !faq or whatever command that will send them a text file with the information you need to provide. You can attempt to use a timer to spread out your messages, but keep in mind that large number of people joining will force the messages you send to be delayed a very long time.

The limit of the number of messages or join commands you can use varies from network to network, but you can expect it to be somewhere around about 20 messages or joins within 2 minutes. And, of course, you also can only send so many messages in a short period of time (usually 3-6 within 2 seconds maximum) before you are disconnected for flooding.

EDIT: Note that some networks may have a CPRIVMSG or CNOTICE command available that allows channel ops only to send an arbitrary number of messages or notices to anyone who is in the same channel.


Edited by Riamus2 (02/03/11 01:19 PM)
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#230220 - 02/03/11 01:17 PM Re: [REQUEST] An auto-message on join script [Re: Riamus2]
hardspikes Offline
Self-satisified door

Registered: 02/03/11
Posts: 4
That's exactly what I thought , but I've looked around and seen some people send me a message each time I join a channel even if I relog many times in serveral seconds , which means they can send private messages automatically , without a time limit .
THAT is what I'm looking for...

Top
#230221 - 02/03/11 01:21 PM Re: [REQUEST] An auto-message on join script [Re: hardspikes]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Read the edited post above. Also, rejoining multiple times to get them to send you multiple messages is inappropriate. In addition, you aren't going to trigger the limit by doing that. You simply aren't going to do it fast enough.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#230222 - 02/03/11 01:25 PM Re: [REQUEST] An auto-message on join script [Re: Riamus2]
hardspikes Offline
Self-satisified door

Registered: 02/03/11
Posts: 4
I'm a bit confused , what do you suggest ?

Top
#230223 - 02/03/11 02:33 PM Re: [REQUEST] An auto-message on join script [Re: hardspikes]
Rewtor Offline
Babel fish

Registered: 14/09/06
Posts: 59
Loc: England
Originally Posted By: hardspikes
I'm a bit confused , what do you suggest ?


Riamus is suggesting that the network you are on may have the option to use the CPRIVMSG command which may have a higher limit to the amount of targets you can send a message to in a certain period, of course to use this command you need to be an op in that channel.

Code:
on 1:JOIN:#:/cprivmsg $nick MESSAGE CONTENT

Top
#230224 - 02/03/11 03:12 PM Re: [REQUEST] An auto-message on join script [Re: hardspikes]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
You really should talk to admin on your network or other mirc scripters who are experienced on your network.

Are you doing anything else on join in another script?

Maybe you should wait a moment before messaging them? It's a weird error message for a simple msg when someone joins. Target change too fast? Please wait almost 2 minutes? That just doesn't sound right. Please make sure you do not have another join event.

Options: You could write a queu that stores commands sent to the server and sends them out at a rate that won't trigger the flood detect, if that is a flood detect.

Maybe try a timer.

on 1:JOIN:#:{
if ($nick != $me) .timer 1 2 msg $nick Message Content
}

Top
#230225 - 02/03/11 03:24 PM Re: [REQUEST] An auto-message on join script [Re: DJ_Sol]
hardspikes Offline
Self-satisified door

Registered: 02/03/11
Posts: 4
It worked thank you so much !

Top
#230226 - 02/03/11 03:36 PM Re: [REQUEST] An auto-message on join script [Re: DJ_Sol]
Rewtor Offline
Babel fish

Registered: 14/09/06
Posts: 59
Loc: England
Originally Posted By: DJ_Sol
It's a weird error message for a simple msg when someone joins. Target change too fast? Please wait almost 2 minutes? That just doesn't sound right. Please make sure you do not have another join event.


This is normal on quite a few networks, mainly DALnet and Undernet. It happens when someone changes the target within a specified amount of time and only affects JOIN, NOTICE and PRIVMSG

Raw 439

Top
#230228 - 02/03/11 03:52 PM Re: [REQUEST] An auto-message on join script [Re: Rewtor]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
As a note, the CPRIVMSG and CNOTICE commands require you to include the channel name.

cprivmsg <nick> <chan> <msg>

The channel name included is the one used to verify that you are in the same channel as that person and that you are an op for that channel.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top