mIRC Home    About    Download    Register    News    Help

Print Thread
#176911 16/05/07 12:48 PM
Joined: May 2007
Posts: 12
J
johay Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: May 2007
Posts: 12
I hate to be one of those 'newbs' , But, Last few days, I started, studying, irc, coding(scripting), To be honest when i first strted, I found it quite boring. But, I got, to the remote, section. And well. I fell in love with it. It's a hell of alot of fun. I've done the programmeing FAQ on this. And to me, ok i didnt understand variables. But other stuff. I found basic. Just just wondering, if you could direct me to any sites.

Also, I got some code you might be able to help me with:

Code:
on *:VOICE:#:/msg $chan Thanks for the Voice, $nick ~4Dynamic~ |[

when someone gets voiced. it obviously, says thanks even if $nick isnt me. Like i said, ive only just begong, a few days ago.

Thank You,
Johay

Note: My script does not have the "|" at the end, My computer just playing up. my browser ownt delete it :-D

Last edited by johay; 16/05/07 12:49 PM.
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Look in mIRC's help menu for ON VOICE. You need to check if the nick being voiced, $vnick, is you:

on *:VOICE:#:if ($vnick == $me) msg $chan Thanks for the Voice, $nick ~4Dynamic~

Note that the / is optional in script files.

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
You can also use event prefixes. The ! prefix is what you need in this case:

/help prefixes

-genius_at_work

Joined: May 2007
Posts: 12
J
johay Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: May 2007
Posts: 12
Originally Posted By: maroon
Look in mIRC's help menu for ON VOICE. You need to check if the nick being voiced, $vnick, is you:

on *:VOICE:#:if ($vnick == $me) msg $chan Thanks for the Voice, $nick ~4Dynamic~

Note that the / is optional in script files.


Yeah, I know about the '/' and not using them, But really used to them, when doing comands. It's a habbit more then anything. Anyway thanks both/all of you who has help me.

Would you surgest any sites of irc scripting?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
www.mircscripts.org has tutorials and scripts. I think www.hawkee.com may also have tutorials, but I don't use that site for anything.


Invision Support
#Invision on irc.irchighway.net
Joined: May 2007
Posts: 12
J
johay Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: May 2007
Posts: 12
Thanks, Really helpful laugh

I've been trying to do something else to. I really don't have a clue why this don't work

Code:
on *:DEVOICE:#: {
  IF ($nvnick == $me) { msg chanserv voice $chan $me } 
  ELSE { /halt } 
}


what i want it to do is IF im DEVOICED voice me, If it's not me devoiced do nothing. But it's working, but say another nick apart from me gets devoiced, it voiceing me either way.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
That's because $nvnick should be $vnick .. it's $vnick in both VOICE/DEVOICE

Code:
on !*:DEVOICE:#: {
  if ($vnick == $me) msg chanserv voice # $me
}


Also, using the ! prefix will prevent the script from triggering if you devoice yourself.
Also, the else statement with the halt is unnecessary in this case.

Last edited by RoCk; 17/05/07 09:11 PM.
Joined: May 2007
Posts: 12
J
johay Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: May 2007
Posts: 12
Originally Posted By: RoCk
That's because $nvnick should be $vnick .. it's $vnick in both VOICE/DEVOICE

Code:
on !*:VOICE:#: {
  if ($vnick == $me) msg chanserv voice # $me
}


Also, using the ! prefix will prevent the script from triggering if you devoice yourself.
Also, the else statement with the halt is unnecessary in this case.


if i get voiced, chanserv, just keeps voiceing me, on this code.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
lol sorry I put VOICE by mistake when it should be DEVOICE

Code:
on !*:DEVOICE:#: {
  if ($vnick == $me) msg chanserv voice # $me
}

Joined: May 2007
Posts: 12
J
johay Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: May 2007
Posts: 12
Originally Posted By: RoCk
lol sorry I put VOICE by mistake when it should be DEVOICE

Code:
on !*:DEVOICE:#: {
  if ($vnick == $me) msg chanserv voice # $me
}



Lolol, I thought you may have made a mistake, and chaged to 'devoice' But i put $nvnick insted of $vnick. laugh

Thank's for code anyhow laugh


Link Copied to Clipboard