I know this isnt much but i wrote it to use on a friend because i could never catch up with him when he logged into my channel, and i found it very handy for other people i couldnt connect with. I know it is small but i believe it is usefull.. Udate: Some changes have been made so u can keep it loaded after it has been used instead of having to unload it each time. Just go to the channel u want to use this in and right click in your channel window and goto Msg To User then click on add channel. Be sure your in the channel u want to use it in because when you click add channel what ever channel your in thats the one it will add and use. you can add more than one channel also, for the second one just goto it and click add channel. it will automatically turn it's self off once the right user has join the channel and gets the msg. It will also unset the last users name and msg once it is read. Another update: Added a line so you can check and see if u have a msg pending or not. Click on Check Nick And Msg
that will make it easier than going into remotes to check it.
#################################
# Written by Jon2 AKA Warriorii #
# Scripted on 7/14/12 #
# Ver 3.0 #
# Tested by Luvme4me #
#################################
on 1:load: echo 0,12 You have loaded Jon2's 0,4 Msg To User Script
on 1:unload: { unset %user %mymsg %tm %da %ddd }
menu channel {
.-
.Msg To User
. $iif($group(#myswitch) == on,$style(1) <=- Enabled -=>,Enabled): .enable #myswitch | echo 0,12 Msg To User Script 0,4 Enabled
. $iif($group(#myswitch) == off,$style(1) Disabled,<=- Disabled -=>): .disable #myswitch | echo 0,12 Msg To User Script 0,4 Disabled
.-
.Enter nick/message:set %user $$?"Enter users nick ONLY then click OK" | set %tm $time(hh:nn tt) | set %da $date(ddd mm/dd/yyyy) | set %mymsg $$?"Enter User Msg Here" | .enable #myswitch | echo 0,12 Msg To User Script 0,4 Enabled
.Check Nick and Msg: if (%user == $null) echo $mtu $+ 9,1 No Message Pending $+ $mtu | else echo $mtu $+ 9,1 Msg to %user is $+ ... %mymsg | if (%mymsg == $null) { halt } | else echo 0,4 Msg set at 0,12 %tm on %ddd %da $+ $mtu
.Remove Nick and User Msg: unset -s %user %mymsg %tm %da
.-
.Send to $$1:send $$1 $script | /say 12Move MsgToUser2.mrc To main mIRC dir | /say 12then type===> 4 /load -rs4 MsgToUser.mrc
.List Channels: if ($read msguser.txt == $null) echo $mtu $+ 9,1 There Are No Channels Selected $+ $mtu | ./play -e msguser.txt
.Add Channel: {
if (!$read(msguser.txt , w ,$chan)) {
write msguser.txt $chan
echo $mtu $+ 0,12 $chan added to msguser.txt $+ $mtu
}
else echo $mtu $+ 8,1 $chan Is already in msguser.txt $+ $mtu
}
.Del Channel: {
if ($read(msguser.txt , w ,$chan)) {
write -ds $+ $chan msguser.txt
echo $mtu $+ 8,4 $chan Removed from msguser.txt $+ $mtu
}
else echo $mtu $+ 9,1 $chan Is not in msguser.txt $+ $mtu
}
}
alias mtu return 14,5«15,4¤14,5»
#myswitch off
on 1:join:#: {
if (!$read(msguser.txt , w ,$chan)) { return }
if (%user isin $nick) { msg %user 1 %mymsg ....4This is an automated message. 0,4 Msg set at 0,12 %ddd %tm on %da }
.msg $me 12msg has been recieved by %user 0,4 Msg set at 0,12 %ddd %tm on %da 8,1 %user recieved it at %ddd %tm on $date(ddd mm/dd/yyyy) $+ .
.msg $me 4MsgToUser has been Shut Off | .disable #myswitch | echo 0,12 Msg To User Script 0,4 Disabled | .unset -s %user %mymsg %tm %da | echo $chan 9,1 Msg To User Is Now Off
}
#myswitch end
@MoshMage and @blackvenomm666 ... there are many servers don't have memoserv and the most famous irc server dont have memoserv :P
@Mr.MaSTeR the if nick = me is unnecessary just add a ! to the on joon event not only that but with the if ($nick == nickhere) you really don't need the if ($nick == $me) check because unless it is the specified nick in the check it's not going to go off no matter what. as long as all the brackets are placed properly at least lol
on *:join:#Your Channel here: {
if ($nick == nickhere) { .notice $nick Your message here...4This is an automated message.
}
.notice $me msg has been recieved by $nick and now the msg will be unloaded.
.notice $me 4Unloaded MsgToUser.mrc | /unload -rs MsgToUser.mrc
}
Very simple and yes it works in a pinch. i just showed you another way you could do the If statement. With how it is set up you do not need the else halt because if the nick that joins is not the specified nickname it will not activate