mIRC Home    About    Download    Register    News    Help

Print Thread
!help call remote #207289 12/12/08 10:14 AM
Joined: Dec 2008
Posts: 5
L
lordkabab Offline OP
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.

Re: !help call remote [Re: lordkabab] #207290 12/12/08 10:25 AM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
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-
  }
}




`.Jk f ll r꧅MtR f Nnꔸ.`
Re: !help call remote [Re: asmodeo] #207291 12/12/08 10:50 AM
Joined: Dec 2008
Posts: 5
L
lordkabab Offline OP
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.

Re: !help call remote [Re: lordkabab] #207293 12/12/08 02:32 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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
  }
}


Re: !help call remote [Re: RusselB] #207309 13/12/08 12:15 AM
Joined: Dec 2008
Posts: 5
L
lordkabab Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2008
Posts: 5
still not working :'(

Does having NoName Script help at all?

Re: !help call remote [Re: lordkabab] #207311 13/12/08 06:35 AM
Joined: Jun 2007
Posts: 933
5
5618 Offline
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

Re: !help call remote [Re: lordkabab] #207312 13/12/08 08:11 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
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?

Re: !help call remote [Re: DJ_Sol] #207316 13/12/08 11:31 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.


Re: !help call remote [Re: RusselB] #207317 13/12/08 11:41 AM
Joined: Dec 2008
Posts: 5
L
lordkabab Offline OP
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.
Re: !help call remote [Re: lordkabab] #207319 13/12/08 11:59 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.

Re: !help call remote [Re: RusselB] #207320 13/12/08 12:26 PM
Joined: Dec 2008
Posts: 5
L
lordkabab Offline OP
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.