mIRC Home    About    Download    Register    News    Help

Print Thread
On Join auto pming. #170133 03/02/07 06:42 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
How do i set up a script that will auto pm someone when they join my channel? Heres what I have, it dosent work frown and would changing it from .notice $nick to msg $nick send it in a pm? I dont want it to notice in the channel but send as a pm.
Oh and I want it only to do so if im halfop'ed
Code:
on *:JOIN:#: {
  .notice $nick line 1
  .notice $nick line 2
  .notice $nick line 3
  .notice $nick line 4
  .notice $nick line 5
  .notice $nick line 5
}


Re: On Join auto pming. [Re: Justin_F] #170135 03/02/07 06:51 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Code:
on *:JOIN:#:{
  /notice $nick line 1
  /notice $nick line 2
  /notice $nick line 3
  /notice $nick line 4
  /notice $nick line 5
  /notice $nick line 5
}


You can do it also without the /'s

Last edited by DuXxXieJ; 03/02/07 06:52 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: On Join auto pming. [Re: DuXxXieJ] #170137 03/02/07 06:55 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
Still dosent work frown

Re: On Join auto pming. [Re: Justin_F] #170139 03/02/07 07:00 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Code:
on !*:join:#yourchan: {
.msg $nick Line1
...
}

That should work, All you need to do is finish using '.msg $nick linex'. And change #yourchan to your channel.
The '.' before msg means its 'silent', and won't open the Query window on your side.


Those who can, cannot. Those who cannot, can.
Re: On Join auto pming. [Re: Justin_F] #170142 03/02/07 07:14 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
Wow idk it still dosent work frown
I have a auto voice script usuing the join command right above this, and it works fine.
Code:
on !*:join:#mychan: {
  .msg $nick ...
  .msg $nick ...
  .msg $nick ..
}

Edit: I was also getting this error "* /if: invalid format (line 344, script.ini)" line 344 is the first .msg $Nick....
and would replacing the !, with a %or$ allow it to only with if im hop'd or op'd?

Last edited by Justin_F; 03/02/07 07:15 PM.
Re: On Join auto pming. [Re: Justin_F] #170143 03/02/07 07:24 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
But, you don't have in that:

Code:
on !*:join:#mychan: {
  .msg $nick ...
  .msg $nick ...
  .msg $nick ..
}


no /if ... So you must have a other one...


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: On Join auto pming. [Re: DuXxXieJ] #170144 03/02/07 07:26 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
explain?

Re: On Join auto pming. [Re: Justin_F] #170145 03/02/07 07:31 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
You said you get in your status:

Php Code:
 /if * invaled format  


Or something like that. xD

But that ON !*:JOIN:#mychan:{ thing, has NO /if in it...
if it does you need to see

ON !*:JOIN:#mychann:{
/if <lalal>

or something like that, but you haven't


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: On Join auto pming. [Re: DuXxXieJ] #170146 03/02/07 07:35 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
lol what should I put?
Never knew it was so effing hard to make a command that Pms a person who join the channel.....

Re: On Join auto pming. [Re: Justin_F] #170147 03/02/07 07:39 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Put it in a new scriptfile or merge it with your autovoice.


Those who can, cannot. Those who cannot, can.
Re: On Join auto pming. [Re: Kardafol] #170148 03/02/07 07:42 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
good idea lol

Re: On Join auto pming. [Re: Justin_F] #170149 03/02/07 07:49 PM
Joined: Jan 2007
Posts: 31
J
Justin_F Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
it works thanks. i merged it with my autovoice lol. But u were talking about a new script.ini. how do i make one and if I do will my current one and the new one work side by side?

Re: On Join auto pming. [Re: Justin_F] #170150 03/02/07 07:55 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You can have multiple script files, just go to the editor and choose "File" then "New".
I would reccomend having each event, (or events/aliases that work together in 1 script file) for example:
Bot_Core.mrc
Bot_Kick.mrc
Bot_Users.mrc


Those who can, cannot. Those who cannot, can.