mIRC Homepage
Posted By: Gameaddix on TEXT help - 14/09/04 10:23 AM
i know how to do the basic on text commands, but what i wanna do with this one is basically, when somebody on a server type -count IP COUNT, or -walk IP, i want it to msg myself exactly what they type, like if they do -count 75 5241, i want it to msg $me -count 75 5241, but i want it so it doesnt matter what numbers they type in, same thing with the -walk 48, where it doesnt matter what they type in, any idea's? any help would be great.
Posted By: ATMA Re: on TEXT help - 14/09/04 10:36 AM
what your looking to do is basicly impossible unless you were a network admin and im still not even sure how u would do it unless u were joined too every channel on the server
Posted By: Krayzee Re: on TEXT help - 14/09/04 11:51 AM
Code:
on *:text:*:*: {
  if ($1 == -count || $1 == -walk) {
    /msg $me $1-
  }
}


should work untested though
Posted By: Armada Re: on TEXT help - 14/09/04 02:26 PM
Code:
 
on *:text:*:*: {  
  if ($1 == -count) || ($1 == -walk) {    
    /msg $me $1-  
  }
}
 
Posted By: Gameaddix Re: on TEXT help - 14/09/04 07:22 PM
ok, i added that, and it loops, so would i add

on *:text:*:*: {
if ($1 == -count || $1 == -walk) {
/msg $me $1- || halt
}
}

forget that, i tried that and it made it loop with -count 1(as a test) and it looped with -count 1 (then a bunch of other crap)

the only way i got it out of the loops was to take out the script, and hit ok, then add it back in
Posted By: Gameaddix Re: on TEXT help - 15/09/04 01:14 AM
ok, i know what is wrong with it, it see's the -count 1 1(script test) in the channel, it msg's it to me, but it see's it again and repeats, is there any way to make it only "see" the -count 1 1 once?
Posted By: Krayzee Re: on TEXT help - 15/09/04 09:29 AM
try this

Code:
on *:text:*:*: {
  if ($Nick != $Me) {
    if ($1 == -count) || ($1 == -walk) {
        /msg $me $1-
    }
  }
}


or

Code:
on *:text:*:*: {
  if ($1 == -count) || ($1 == -walk) {
        /echo -at $me $1-
  }
}

Posted By: Gameaddix Re: on TEXT help - 15/09/04 11:08 AM
i got it, with help from one of my friend that wrote this bot that keeps track of -count and -walk's (for diablo 2), i used

on *:text:-count *:#:{
/msg Mark $1-
}

on *:text:-walk *:#:{
/msg Mark $1-
}

and i just used another mIRC so that when it detected those, it would send it to the nick Mark (my main nick)

without the #, it would send it to the pm, and count it as on text:, so it kept getting new-count messages, and kept sending them(with the old script that is), thx anyway for the help
© mIRC Discussion Forums