if some1 is talking about you.V2

By Korvin on Feb 25, 2007

to turn it on, type /notice on
to turn it off, type /notice off
if its on, and some1 says your name it will notice you that they have been talking about you.
im planning on stretching this out into an ini so you can look back on who is talking about you, unless you guys think i shouldnt, if so tell me.

;credits to lindrian for the ($me isin $1-)
on *:TEXT:*:#: {
  if (%noticeme == off) { halt }
  if (%noticeme == on) {
    if ($me isin $1-) notice $me $nick is talking about you
  }
}
alias notice {
  if ($1 == off) {
    if (%noticeme == off) { .notice $me its already off.. | HALT }
    if (%noticeme != off) {
      set %noticeme off 
      .notice $me Notice is off. 
    }
  }
  if ($1 == on) {
    if (%noticeme == on) { .notice $me its already on.. | HALT }
    if (%noticeme != on) {
      set %noticeme on | .notice $me Notice is on.
    }
  }
}

Comments

Sign in to comment.
weaver   -  Mar 01, 2007

a much better example would be
on :text::#: if (%highlight == on) echo $active $nick is talking about you in $chan
one liner and much neater and uses echo instead of notice, why use notice anyway?

 Respond  
weaver   -  Mar 01, 2007

pariah the isin operator is more reliable in this case as $istok will not catch nickname? i.e pariah? it will only catch a token seperated with the chr specified which restricts it. as for the script to many ifs to many { } etc makes the code look ugly for example \"if (%noticeme == off) { halt }\" is not needed just use if (%noticeme == on) and it auto wont parse if its off, also you dont need all those {{}{}{}{ etc if the commands is on the same line as the if.

 Respond  
F*U*R*B*Y*   -  Feb 27, 2007

MAcMAD you got the idea of mIRC Scripting from Khaled, so i don\'t think you should be saying it is yours considering you don\'t own mIRC Scripting.

 Respond  
Lindrian   -  Feb 27, 2007

ah okay, i was not sure if u would see it urself lol. so id prefer echo.

 Respond  
Korvin   -  Feb 27, 2007

tyvm liquid didnt know how to say that -.-

 Respond  
Lindrian   -  Feb 26, 2007

Then korvin, if it wont notice the user, which its supposed to do, whats the use of it? lol ;p

 Respond  
Korvin   -  Feb 26, 2007

and i didnt get the idea from you -.- i just got bored and made it

 Respond  
Korvin   -  Feb 26, 2007

no it just wont say
Korvin -- Notice is off.
Korvin* Notice is off.

 Respond  
Lindrian   -  Feb 26, 2007

MAcMAD, Dont be like that. So, shall I say you got your idea from someone else? Since neither you nor korvin invented \"Highlightning\". So keep it real and try your best to help the user. Even tho it might look like he \"stole\" the idea from you.

 Respond  
MAcMAD   -  Feb 26, 2007

You got the idea from me.

 Respond  
Lindrian   -  Feb 26, 2007

And in the alias, ur using .notice, with a ., makes it silent and totally usless, since u wont see the notice yourself, i belive lol.

 Respond  
F*U*R*B*Y*   -  Feb 26, 2007

on :INPUT::#: {
if ($1 == on) {
echo do my script here
}
elseif ($1 == off) {
echo turn it off.
}
}

 Respond  
Aaron   -  Feb 25, 2007

you coudl also take out the first if and use an else statement

 Respond  
Korvin   -  Feb 25, 2007

how do i make the noticeoff and noticeon on alias like:
alias notice {
if ($1 == on)
if ($1 == off)
something like that so you can type /notice off or /notice on

 Respond  
Korvin   -  Feb 25, 2007

fixed!

 Respond  
Korvin   -  Feb 25, 2007

tyvm your a big help =]

 Respond  
Lindrian   -  Feb 25, 2007

adding a few if statements to the alias, to check if its already on or off.

Would look alot better.

And either as pariah said (I dont know anything about theese tokens) but,
if ($me isin $1-) {
would cover all of thoose if statements you made.

 Respond  
Pariah   -  Feb 25, 2007

Using \'if $istok($1-,$me,32)\' would do what all those if\'s are currently doing.

 Respond  
Korvin   -  Feb 25, 2007

very quickly made..

 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.