mIRC Home    About    Download    Register    News    Help

Print Thread
On Join Ors (if that makes sense) #258783 28/08/16 05:31 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
I would like a script that would give random join message..
So
on *:join:#: {
if ($nick == techchef) msg # Welcome my creator!
or msg # Welcome Master
or msg # Welcome techchef
or msg # Welcome John Jacob Jingleheimer Schmidt
or msg # Welcome butthead
or msg # blahblahblah
}

Any help?

Re: On Join Ors (if that makes sense) [Re: Techchef] #258784 28/08/16 05:44 PM
Joined: Jul 2016
Posts: 28
Z
zapdos26 Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Jul 2016
Posts: 28
Code:
 on *:join:#: {
if ($nick == techchef) { 
var %random $rand(1,N)
if (%random == 1) { msg # Welcome my creator!}
elseif (%random == 2) { msg # Welcome Master }
elseif (%random == 3) { msg # pizza }
etc.....
elseif (%random == N) { msg # Message }
}
}

Replace the N with the amount of phrases you want. After the first if statement then do elseif.

Re: On Join Ors (if that makes sense) [Re: zapdos26] #258794 29/08/16 11:33 PM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Or fill a .txt file with random messages and use $read(filename.txt)