Funny Usernick Facts Socket (Greeting Version)

By pacino23 on Oct 13, 2010

This script is just an addition to napa182's Funny Usernick Facts Socket that allows it to be used as a dynamic greeting. You MUST have the original script loaded for this additional script to work..
http://www.hawkee.com/snippet/7154/#c74630

I figured napa182's script would also be very good as a dynamic greeting for each user. So I had a friend make a script that will utilize it in this way. Just to make clear the only part of this script that is mine is the idea to make it a greeting. I DID NOT WRITE IT. Credit goes to napa182 and my friend who adapted it for me.

In the snippet simply place the usernames that you wish to use this script into the relevant brackets according to gender, and separated by a space. I have placed "male_user1" etc so that you can identify the spot easily, just replace those examples with your channels usernames.

Enjoy.

on *:join:#: { 
  if ($istok(male_user1 male_user2,$nick,32)) { set %gender m } ; put male nicks on this line
  if ($istok(female_user1 female_user2,$nick,32)) { set %gender f } ; put female nicks here
  if ($istok(bot1 bot2,$nick,32)) { set %gender o } ; put other nicks here
  if (($nick ison $chan) && (%gender)) { 
    if ($sock(nfact)) sockclose nfact 
    sockopen nfact blog.esaba.com 80 
    sockmark nfact $+($nick,&g=,$replace(%gender,m,male,f,female,o,other)) $chan
    unset %gender
  }
}

Comments

Sign in to comment.
Lucius   -  Oct 16, 2010

Would be nice if there was a way people could add their gender themselves.
Nice addition though.

 Respond  
blackvenomm666   -  Oct 14, 2010

i myself have no clue about sockets at all yet

 Respond  
pacino23   -  Oct 14, 2010

blackvenomm666, you may be right but as I said I had someone else write this for me. Im still a beginner and sockets arent in my skills-set yet so I couldnt say how to begin improving the script. I just shared it out of respect for the original.
I will try when I do know better though lol.

 Respond  
blackvenomm666   -  Oct 14, 2010

if ($istok(male_user1 male_user2,$nick,32.. wouldnt it be easier to just set a var for the nicks? or even a userlist? ex of userlist..
on :join:#:
{ if ($level($nick) = greetsafe) { set %gender m } etcetc. instead of having to go into the script and manually doing it. then from there its just a matter of setting nicks as greetsafe or w.e safelist word you use ex of how to set it would be
On
:Text:*:#:{ If ($Strip($1) == !addgreet) {
auser greetsafe $2
}
}

 Respond  
napa182   -  Oct 13, 2010

you don't have to use a global var you can get away with using a local instead.
so instead of

set %gender m

you can use a local var

var %gender m

that way you can get rid of the unset var at the end.

nice to see people adapting other snippets.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.