This snippet will add a user into an ini file (if the user isnt already in the ini file) then will welcome the user to the channel.
When the user leaves and comes back the script will check to see if that person is in the ini file and if so it wont welcome them to the channel it will say Welcome Back nick. it's pretty lame but i made it and didnt have anything else to post lol. It has been tested and it works.
;Written by: Jon_2
;1/8/2011
;Revised:2/10/13
;Written by: Jon_2
;1/8/2011
menu menubar {
Welcome-Back commands
. $iif($group(#wb2) == on,$style(1) <-= Enabled =->,Enabled): .enable #wb2 | echo 0,12 Welcome Back Script 0,4 Enabled
. $iif($group(#wb2) == off,$style(1) Disabled,<-= Disabled =->): .disable #wb2 | echo 0,12 Welcome Back Script 0,4 Disabled
.-
.Add user to the Welcome-Back list: write $scriptdirWelcome-Back.ini $$1 $address($$1,3) | echo $chan $jon $+ 9,1 $$1 Has been added to the Welcome-Back.ini list $+ $jon
.Delete User/Using Nick Only: write -ds $+ $?"Enter name to delete" $scriptdirwelcome-back.ini
.Add Welcome Backs: write $scriptdirreturnwelcomeback.ini $$?"Add Welcome Back Text Here"
.-
.Manual Edit Nicks:run notepad $scriptdirWelcome-Back.ini
.Read Welcome Backs: run notepad return-user.ini
.Remove User/Highlighting Nick: write -ds $+ $$1 $scriptdirwelcome-back.ini | echo $chan $jon $+ 9,1 $$1 Has been REMOVED From the Welcome-Back.ini list $+ $jon
.-
.Send To $$1:send $$1 $script | /msg $chan 12Move Welcome-Back.mrc To main mIRC dir | /say 12then type===> 4 /load -rs Welcome-Back.mrc
.List Channels: .play -e welcome-back.txt
.Add Channel: {
if (!$read(Welcome-Back.txt , w ,$chan)) {
write Welcome-Back.txt $chan
echo $bcb $+ 0,12 $chan added to Welcome-Back.txt $+ $bcb
}
else echo $bcb $+ 0,12 $chan Is already in Welcome-Back.txt $+ $bcb
}
.Del Channel: {
if ($read(Welcome-Back.txt , w ,$chan)) {
write -ds $+ $chan Welcome-Back.txt
echo $bcb $+ 8,4 $chan Removed from Welcome-Back.txt $+ $bcb
}
else echo $bcb $+ 9,1 $chan Is not in Welcome-Back.txt $+ $bcb
}
.-
}
#wb2 on
on !1:Join:#: {
if (!$read(Welcome-Back.txt , w ,$chan)) { return }
if ($read(Welcome-Back.ini, s, $nick) == $address($nick,3)) { msg $chan $jon $+ $read pingcolors.txt $read return-user.ini $+ $jon }
else { msg $chan $jon $+ $read pingcolors.txt $read(welcomes.ini) $jon | halt
;else { msg $chan $jon $+ 0,12 Welcome to $chan $nick $+ $jon | halt
}
}
alias jon return 14,5«15,4¤14,5»
#wb2 end
I revised the complete snippet so it will be easier to work with. To add a channel just go to the channel you want to add and click add channel, the same to delete a channel. For now I have it set where you have to add the people that u want it to wellcome back so that your text file wont be so clutered.
Arch, just create a txt file called welcomebacks.txt then add your welcome back msg's like the lines below. Also remember you have to set the channel and make sure it is turned on....
hello welcome back to my channel
glad to see you back again
well here u are back again. welcome
there are no special characters and no limit to how many lines of txt u put in your txt file