mIRC Home    About    Download    Register    News    Help

Print Thread
#170133 03/02/07 06:42 PM
J
Justin_F
Justin_F
J
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
}


#170135 03/02/07 06:51 PM
D
DuXxXieJ
DuXxXieJ
D
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.
#170137 03/02/07 06:55 PM
J
Justin_F
Justin_F
J
Still dosent work frown

#170139 03/02/07 07:00 PM
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.

#170142 03/02/07 07:14 PM
J
Justin_F
Justin_F
J
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.
#170143 03/02/07 07:24 PM
D
DuXxXieJ
DuXxXieJ
D
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...

#170144 03/02/07 07:26 PM
J
Justin_F
Justin_F
J
explain?

#170145 03/02/07 07:31 PM
D
DuXxXieJ
DuXxXieJ
D
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

#170146 03/02/07 07:35 PM
J
Justin_F
Justin_F
J
lol what should I put?
Never knew it was so effing hard to make a command that Pms a person who join the channel.....

#170147 03/02/07 07:39 PM
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.

J
Justin_F
Justin_F
J
good idea lol

#170149 03/02/07 07:49 PM
J
Justin_F
Justin_F
J
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?

#170150 03/02/07 07:55 PM
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


Link Copied to Clipboard