!label Snippet

By `Green on Dec 30, 2008

just a simple label snippet. to use it just type !label

the only labels are n00b, loser, fail, and leech. it will notice you i you have not typed a nick or a label. has flood protection. and works. hope you all enjoy. please rate :)

on *:TEXT:!label*:#:{
  if (!$($+(%,lbl),3)) {
    set -u3 $+(%,lbl) on
    if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }
    if (!$3) { .notice $nick No label was entered }
    if (!$2) { .notice $nick No nick was entered }
    if ($3 == n00b) { msg # has labeled $2 as a n00b! }
    if ($3 == Fail) { msg # $2 Is now labeled as a FAIL! }
    if ($3 == loser) { msg # $nick Has labeled $2 as a loser :P }
    if ($3 == leech) { msg # $nick wants to point out that $2 is a leech! }
  }
}

Comments

Sign in to comment.
darkarrow   -  Jan 14, 2009

oh ok. idk really it was just thoughts :)
but really nice job

 Respond  
`Green   -  Jan 13, 2009

um ok. what labels do you want me to add? and that is possible, but i don't know if i will be ale to. i got halo 3 ad an xbox 360 for christmas and haven't been on since then.

 Respond  
darkarrow   -  Jan 10, 2009

i think that it should like save what the nick was set as and then when they join it says if they have a lable or not and there could also be more and maybe some nice ones lol

 Respond  
NIGathan   -  Jan 05, 2009

Oh its helpful, it tells you to go to the internet :D

 Respond  
Blitzjager   -  Jan 05, 2009

@NIGathan - /help Regular Expressions <--- Not very helpful at all. :(

 Respond  
seanturner70   -  Jan 05, 2009

if ($3 == n00b) { msg # has labeled $2 as a n00b! }
You missed out "$nick" I think.

Nice snippet :)

 Respond  
airwick   -  Jan 05, 2009

hi... this is a nice lil script, but i was just wondering if there was a way to make it so that it came out as a /me command? instead of it coming out like it comes out seeemless like a when u type /me something something?

just curious :)

thanks

 Respond  
`Green   -  Dec 30, 2008

lol i still use help too. but most of the stuff i look up i have read more than once

 Respond  
NIGathan   -  Dec 30, 2008

Are you dissing /help???

I STILL use /help daily....

If you ever need help with ANY command or identifier... /help

For example: /help $istok

Infact, I have the help window open atm..

Maybe you should try: /help /help

:D

 Respond  
`Green   -  Dec 30, 2008

i have read /help -_-

 Respond  
NIGathan   -  Dec 30, 2008

Well then I recommend you learn to /help

 Respond  
`Green   -  Dec 30, 2008

yeah i know but i don't want to use his code. i would rather redo it myself and then update it. i don't like using other peoples scripts.

 Respond  
NIGathan   -  Dec 30, 2008

He gave you an example with it already done...
Just change this line:

if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }

to:

if (!$istok(n00b|loser|fail|leech,$3,124)) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }

Actually, he even went further than that and rewrote the entire thing for you.. lol

 Respond  
`Green   -  Dec 30, 2008

i fixed the &nick. and i was wanting to do the $istok. but i didn't know how to use that. tank you napa :) i'm learning more now.

 Respond  
napa182   -  Dec 30, 2008

instead of doing

if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech)

you could use $istok

!$istok(n00b|loser|fail|leech,$3,124)

and look into useing $iif
also you may want to check if $2 is in the channel

on *:TEXT:!label*:#:{
  if (!$($+(%,lbl),2)) {
    set -u3 $+(%,lbl) on
    if (!$2 || $2 !ison # || !$3 || !$istok(n00b|loser|fail|leech,$3,124)) { .notice $nick $iif(!$2,No nick was entered,$iif($2 !ison #,Sorry Can't Seem To Find $2,$iif(!$3, No label was entered,$iif(!$istok(n00b|loser|fail|leech,$3,124),$+(,$chr(40),$3,$chr(41),) Is an incorrect label!)))) }
    else { msg # $nick has labeled $2 a $+($3,!) }
  }
}
 Respond  
`Green   -  Dec 30, 2008

oops lol. will fix that now i get messed up after scripting for hours on end.

 Respond  
Scakk   -  Dec 30, 2008

You have two --> &nick
Should be -----> $nick

 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.