mIRC Home    About    Download    Register    News    Help

Print Thread
#207289 12/12/08 10:14 AM
Joined: Dec 2008
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
Hi, I'm trying to set up a remote so if someone types "!help I'm new and need intro" it will notify me by messaging my own channel. But, I want it to also repeat what was said in the '!help' call (I have !help on highlight too) so I know what they need help with.

Thanks.

Joined: Oct 2007
Posts: 36
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Oct 2007
Posts: 36
Try with this code
Code:
ON *:TEXT:!help*:#: {
  if $chan != #MyOwnChannel && $2 != $null { 
    msg #MyOwnChannel $nick needs help!: $2-
  }
}




·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
Joined: Dec 2008
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
Doesn't seem to work.

All I did was replace #MyOwnChannel with my channel name.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try
Code:
on *:text:*:#:{
  tokenize 32 $strip($1-)
  if $1 == !help && $$2 && $chan != #MyChannel {
    .msg $v2 $nick requested $1 for $2- in $chan
  }
}


Joined: Dec 2008
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
still not working :'(

Does having NoName Script help at all?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
On the contrary, it's probably handling all on TEXT events, preventing any other script from working. Maybe you have to place it in a separate section for it to work.
Alternatively you can try putting your script at the top of the script list. Alt+R > File > Order

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
if $1 == !help && $$2 && $chan != #MyChannel {
.msg $v2 $nick requested $1 for $2- in $chan
}

Now I didn't echo it, but wouldn't $v2 be #MyChannel? So since you don't want it to msg #mychannel, you would want $chan instead of $v2?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yes $v2 would be #MyChannel.
I'd like to know where you got the idea that the OP didn't want it to msg #MyChannel as they state in their first post
Quote:
it will notify me by messaging my own channel.


Joined: Dec 2008
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
What about a method that will find what a person (in the case the person who triggered it) last said?

Remember, I have NNS if that could be of use. smile

Last edited by lordkabab; 13/12/08 11:41 AM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I don't know if NNS will be of use or a hinderance, as I, not only don't use it, I also don't have it.

You would have to track what everyone says, then on the issuance of the command, check what that person said last.

Until we get a working code for your original request, I would recommend not trying to make the code more confusing by adding extra at this point.

Joined: Dec 2008
Posts: 5
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
Don't worry, I have it.

I have set up 2 clients (1 mIRC with NNS loaded, and 1 raw mIRC) and put a last said script on the raw mIRC (found here: http://www.hawkee.com/snippet/5334/) Modified 1 thing to make it more specific, and loaded this script onto my client:
Code:
on *:TEXT:!help*:#(targetchannel):{
  /msg #(mychannel) Help called. 
  /msg #(mychannel) !ls $nick
}


And it works now!

Thanks to those who took their time to help.


Link Copied to Clipboard