Advertisement
SaNCaK

mIRC Add Nick Join Note

Apr 19th, 2014
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.77 KB | None | 0 0
  1. menu nicklist {
  2.   Note $$1 :note.add $$?="Enter Note"
  3. }
  4. alias note.add {
  5.   if ($hget(jnotes) != jnotes) { hmake jnotes }
  6.   hadd jnotes $1 $2-
  7.   echo -at Note Added for $1  $+ $2- $+ .
  8. }
  9.  
  10. alias note.del {
  11.   var %i = 1
  12.   while (%i <= $hget(jnotes,0).item) {
  13.     if ($hget(jnotes,%i).item == $1) {
  14.       hdel jnotes $1
  15.       echo -at Note Deleted for $1
  16.     }
  17.     inc %i
  18.   }
  19. }
  20.  
  21. alias notes {
  22.   echo $color(notice) -at Note System help
  23.   echo $color(notice) -at /note.list               :: Show the notes added to the database.
  24.   echo $color(notice) -at /note.del <nick>         :: Delete a note from the database.
  25.   echo $color(notice) -at /note.add <nick> <info>  :: Add some infos to the database
  26.   echo $color(notice) -at /note.credits            :: Informations about the author.
  27.   echo $color(notice) -a Example /note.add $me I am really hot, and you know it!  
  28. }
  29.  
  30.  
  31.  
  32. alias note.list {
  33.   window -k0 @Notes 10 10
  34.   aline @Notes [Listing Join notes Database]
  35.   .timer 1 3 aline @Notes 4Double-Click in this window to close it.
  36.   var %i = 1
  37.   if ($hget(jnotes)) {
  38.     while (%i <= $hget(jnotes,0).item) {
  39.       aline @Notes 4,1[ $+ $hget(jnotes,%i).item $+ 4]: $hget(jnotes,$hget(jnotes,%i).item)
  40.       inc %i
  41.     }
  42.   }
  43. }
  44.  
  45. on *:EXIT:{ hsave jnotes jnotesystem.txt }
  46. on *:DISCONNECT:{ hsave jnotes jnotesystem.txt }
  47. on *:START:{ hmake jnotes | hload jnotes jnotesystem.txt }
  48.  
  49. on ^*:JOIN:#:{
  50.   var %i = 1
  51.   while (%i <= $hget(jnotes,0).item) {
  52.     if ($nick == $hget(jnotes,%i).item) {
  53.       echo $color(join) $chan $timestamp * Joins: $nick ( $+ $gettok($address($nick,5),2,33) $+ ) 4NOTE: ( $+ $hget(jnotes,$nick) $+ ) | haltdef
  54.     }
  55.     inc %i
  56.   }
  57. }
  58. menu @notes {
  59.   dclick: window -c @notes
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement