mIRC Home    About    Download    Register    News    Help

Topic Options
#207289 - 12/12/08 10:14 AM !help call remote
lordkabab Offline
Nutrimatic drinks dispenser

Registered: 12/12/08
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.

Top
#207290 - 12/12/08 10:25 AM Re: !help call remote [Re: lordkabab]
asmodeo Offline
Ameglian cow

Registered: 13/10/07
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ꔸ.`

Top
#207291 - 12/12/08 10:50 AM Re: !help call remote [Re: asmodeo]
lordkabab Offline
Nutrimatic drinks dispenser

Registered: 12/12/08
Posts: 5
Doesn't seem to work.

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

Top
#207293 - 12/12/08 02:32 PM Re: !help call remote [Re: lordkabab]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Try
Code:
on *:text:*:#:{
  tokenize 32 $strip($1-)
  if $1 == !help && $$2 && $chan != #MyChannel {
    .msg $v2 $nick requested $1 for $2- in $chan
  }
}


Top
#207309 - 13/12/08 12:15 AM Re: !help call remote [Re: RusselB]
lordkabab Offline
Nutrimatic drinks dispenser

Registered: 12/12/08
Posts: 5
still not working :'(

Does having NoName Script help at all?

Top
#207311 - 13/12/08 06:35 AM Re: !help call remote [Re: lordkabab]
5618 Offline
Hoopy frood

Registered: 18/06/07
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

Top
#207312 - 13/12/08 08:11 AM Re: !help call remote [Re: lordkabab]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
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?

Top
#207316 - 13/12/08 11:31 AM Re: !help call remote [Re: DJ_Sol]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.


Top
#207317 - 13/12/08 11:41 AM Re: !help call remote [Re: RusselB]
lordkabab Offline
Nutrimatic drinks dispenser

Registered: 12/12/08
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


Edited by lordkabab (13/12/08 11:41 AM)

Top
#207319 - 13/12/08 11:59 AM Re: !help call remote [Re: lordkabab]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#207320 - 13/12/08 12:26 PM Re: !help call remote [Re: RusselB]
lordkabab Offline
Nutrimatic drinks dispenser

Registered: 12/12/08
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.

Top