mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2007
Posts: 4
S
Shamus Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2007
Posts: 4
I'm a DJ on an Internet radio station that has an associated IRC channel on Undernet. We have a custom that when the DJ plays a tune that someone likes, that person says so by typing "ch000000000n!"

I'm trying to come up with a script that triggers on this word and automatically says thank you to the person who ch00ned me. I want it to run only when my nick is set to "DJ_Shamus" so it dosen't look like I'm thanking people for ch000ning another DJ.

I'm a total mIRC scripting newbie, by the way, and don't really know what I'm doing. smile

Here's what I have so far (and it doesn't work):
Variables tab:
/set %djnick DJ_Shamus

Remote tab:
on 1:TEXT:*ch00*n*:
(
if ($nick == %djnick)
{
#partyfm:/msg $chan Thanks, $nick !
)
)

Also, when placed at the beginning of the other remote script that I have (an op control script: I'm also a channel op) it causes that script not to run. So what am I doing wrong?

Last edited by Shamus; 26/10/07 07:53 PM.
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
ok you need an on text handler to watch for the keyword and reply..

on 1:text:*ch00*n*:#partyfm:{
if ( $me == DJ_Shamus ) { msg $chan Thanks $nick }
}

that looks on #partyfm for anyone saying ch00000n etc. and when it sees it, it checks to make sure you are using the nick DJ_Shamus. If all that's $true it sends the message to channel.

btk

[edit]that all goes in your remote tab. no code goes in the variables tab, thats just where all your vars can be seen[/edit]

Last edited by billythekid; 26/10/07 08:16 PM.

billythekid
Joined: Oct 2007
Posts: 4
S
Shamus Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2007
Posts: 4
Hey, thanks! I'll test it when I DJ again on Sunday.

Edit: should that msg or /msg?

Last edited by Shamus; 26/10/07 09:09 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
/'s are not needed in scripts. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2007
Posts: 4
S
Shamus Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2007
Posts: 4
Ok, thanks.

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
*lpfix5 slaps Riamus2 a bit with a large /


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard