mIRC Homepage

On Join auto pming.

Posted By: Justin_F

On Join auto pming. - 03/02/07 06:42 PM

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
}

Posted By: DuXxXieJ

Re: On Join auto pming. - 03/02/07 06:51 PM

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
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 06:55 PM

Still dosent work frown
Posted By: Kardafol

Re: On Join auto pming. - 03/02/07 07:00 PM

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.
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 07:14 PM

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?
Posted By: DuXxXieJ

Re: On Join auto pming. - 03/02/07 07:24 PM

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...
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 07:26 PM

explain?
Posted By: DuXxXieJ

Re: On Join auto pming. - 03/02/07 07:31 PM

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
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 07:35 PM

lol what should I put?
Never knew it was so effing hard to make a command that Pms a person who join the channel.....
Posted By: Kardafol

Re: On Join auto pming. - 03/02/07 07:39 PM

Put it in a new scriptfile or merge it with your autovoice.
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 07:42 PM

good idea lol
Posted By: Justin_F

Re: On Join auto pming. - 03/02/07 07:49 PM

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?
Posted By: Kardafol

Re: On Join auto pming. - 03/02/07 07:55 PM

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
© 2020 mIRC Discussion Forums