Project

General

Profile

script for ON Voice and ON OP

Added by Mark C. over 1 year ago

Forgive me for the stupid question, but I have been attempting to get a script for when I get ops or voiced in a channel, that my auto response will send out thanks for the person giving me them. I just can't seem to figure this out...anyone have a script that I can use in order to accomplish this?

All the ones that I have tried to use so far don't work. What they do is thank the nick giving ops and voice to ALL users that get them.

Thanks.


Replies (8)

RE: script for ON Voice and ON OP - Added by Per Amundsen over 1 year ago

Can you link a script that doesn't work? They should all work.

RE: script for ON Voice and ON OP - Added by Mark C. over 1 year ago

I don't actually have any that work properly. Here is the current one i was working with, at least the 2 lines of script.

$c(1) $+ $c(2) $+ Thanks for the v #C(1) $
$c(1) $+ $c(2) $+ Thanks for the @ #C(1) $+

They both actually do say Thanks for the V and Thanks for the @ respectfully. However, if another nick comes in room, and receives ops or voice, mine will also reply with a thanks for the V etc etc...and that is the problem.

thanks.

RE: script for ON Voice and ON OP - Added by Per Amundsen over 1 year ago

So the scripts you mention does work, just not as you want them to.

Here is some examples that should work:

on *:OP:#:{
  if ($opnick == $me) {
    msg $nick thanks for op
  }
}

on *:VOICE:#:{
  if ($vnick == $me) {
    msg $nick thanks for voice
  }
}

RE: script for ON Voice and ON OP - Added by Mark C. over 1 year ago

Thanks for the reply Amundsen.

I put the script in and tested it.

It still issues thanks for ops and voice to all those who enter the channel and are granted them. Is there a way to write it where as when my nick gets ops or voice the thanks are sent, not for all other who receive them.

I hope I am asking this right, hard to ask questions when you know so little about what you are doing LOL.

Thank you for the effort Amundsen, I really appreciate it.

Mark

RE: script for ON Voice and ON OP - Added by Per Amundsen over 1 year ago

The script I posted does check if the opped/voiced nick is equal to your own nick if ($opnick == $me), make sure you are only using my script and not multiple scripts.

RE: script for ON Voice and ON OP - Added by Mark C. over 1 year ago

Well, I do have a theme running on it right now, but when I go to Tools, Edit Scripts, the box comes up, and there is nothing in it.

RE: script for ON Voice and ON OP - Added by Per Amundsen over 1 year ago

Not sure why it's not working for you, if you are using AdiIRC 2.9, maybe try the 3.0 beta by typing /betaup.

RE: script for ON Voice and ON OP - Added by Mark C. over 1 year ago

Thanks for the assistance. I think I will just skip it for now and do without it.

Thank you again for your help.

Mark

    (1-8/8)