mIRC Homepage

!help call remote

Posted By: lordkabab

!help call remote - 12/12/08 10:14 AM

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.
Posted By: asmodeo

Re: !help call remote - 12/12/08 10:25 AM

Try with this code
Code:
ON *:TEXT:!help*:#: {
  if $chan != #MyOwnChannel && $2 != $null { 
    msg #MyOwnChannel $nick needs help!: $2-
  }
}


Posted By: lordkabab

Re: !help call remote - 12/12/08 10:50 AM

Doesn't seem to work.

All I did was replace #MyOwnChannel with my channel name.
Posted By: RusselB

Re: !help call remote - 12/12/08 02:32 PM

Try
Code:
on *:text:*:#:{
  tokenize 32 $strip($1-)
  if $1 == !help && $$2 && $chan != #MyChannel {
    .msg $v2 $nick requested $1 for $2- in $chan
  }
}

Posted By: lordkabab

Re: !help call remote - 13/12/08 12:15 AM

still not working :'(

Does having NoName Script help at all?
Posted By: 5618

Re: !help call remote - 13/12/08 06:35 AM

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
Posted By: DJ_Sol

Re: !help call remote - 13/12/08 08:11 AM

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?
Posted By: RusselB

Re: !help call remote - 13/12/08 11:31 AM

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.

Posted By: lordkabab

Re: !help call remote - 13/12/08 11:41 AM

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
Posted By: RusselB

Re: !help call remote - 13/12/08 11:59 AM

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.
Posted By: lordkabab

Re: !help call remote - 13/12/08 12:26 PM

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.
© 2019 mIRC Discussion Forums