mIRC Home    About    Download    Register    News    Help

Print Thread
#180714 13/07/07 05:16 AM
Joined: Jul 2007
Posts: 6
S
Sige Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2007
Posts: 6
im kind of new to this but ill try to explain it best i can.
iv been trying to make a bot and i added this:

on *:join:#: { msg $chan Hello $nick $+ , Welcome To $chan }

after i added that, it wouldnt work, so i messed around some and put it on top of all my other little scripts i have and it was working fine but it was the only one working. the rest of my scrits stopped working and im not sure why.

This is how i had it set up at first without the auto responce added to it. Either the auto response works and everything else dosent or the rest works and the auto responce dosent.
Change the sites i had with the word site for my own privacy wink

Code:
on *:text:!chanstats:#: { notice $nick # Stats: 4 $nick(#,0,o) Ops, 7 $nick(#,0,h) Halfops, 2 $nick(#,0,v) Voices, 10 $nick(#,0,r) Regular Users, 5 $nick(#,0,a) Total Users }

on *:JOIN:#:{ if ([Apoc]* iswm $nick) mode # +v $nick }

on *:text:!site:#: { notice $nick Site }

on *:text:!ml:#: { notice $nick Site}

on *:text:!w2:#: { notice $nick Site }

on *:text:!commands:#: { notice $nick 7 !site, !ml, !w2, !colors and !chanstats }

on *:text:!colors:#: { notice $nick 0,1 0 1 1 2 2 3 3 4 4 5 5 6 6 7  7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 }


Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The problem is the fact that you already have an ON JOIN event in the script.

You can't have two on join events in the same script, but you can combine them into one event.

Code:
on *:join:#:{
  msg $chan Hello $nick $+ , Welcome To $chan
  if ([Apoc]* iswm $nick) {    mode # +v $nick  }
}


Link Copied to Clipboard