mIRC Home    About    Download    Register    News    Help

Print Thread
#170133 03/02/07 06:42 PM
Joined: Jan 2007
Posts: 31
J
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
}


Joined: Jan 2007
Posts: 280
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.
Joined: Jan 2007
Posts: 31
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
Still dosent work frown

Joined: Jan 2007
Posts: 259
K
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.
Joined: Jan 2007
Posts: 31
J
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.
Joined: Jan 2007
Posts: 280
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.
Joined: Jan 2007
Posts: 31
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
explain?

Joined: Jan 2007
Posts: 280
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.
Joined: Jan 2007
Posts: 31
J
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.....

Joined: Jan 2007
Posts: 259
K
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.
Joined: Jan 2007
Posts: 31
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
good idea lol

Joined: Jan 2007
Posts: 31
J
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?

Joined: Jan 2007
Posts: 259
K
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.

Link Copied to Clipboard