mIRC Home    About    Download    Register    News    Help

Print Thread
#182223 06/08/07 06:31 PM
B
brent0n
brent0n
B
i'm pretty horrible at getting scripts to do what i want. i would like an alias that would akill the person's hostmask (*!*@blah.com)when i akill their nickname. or both at once or something. haha.

L
LostShadow
LostShadow
L
Try looking at $address(<NickOfPerson>,<Number>)

Where number is the number of the mask.

Type this then

//say $address($me,1)
//say $address($me,2)

You can plug in $1 for the nick in an alias.

B
brent0n
brent0n
B
i am not sure how i would use that to akill a nickname along with the hostmask. that just shows me the hostmask.

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
alias _kill {
  ;Adds akill to nick
  akill_command $$1
  ;Adds akill to host
  akill_command $address($$1,2)
}

B
brent0n
brent0n
B
ahh, thanks a ton!

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
That wont always work 100% though.

From the help file:

$address(nickname,type)

Searches the Internal Address List for the address associated with the specified nickname. mIRC maintains an internal address list of all users who are currently on the same channels as you.

B
brent0n
brent0n
B
i've used it about 20 times already. there's a channel or two on the network that i am an admin on, that have a lot of teens soliciting webcams, so it's really helpful. haha. it seems to have worked everytime i've used it.

edit: also, could someone help me create a remote that /kills if they say the same 3 lines within 10 seconds?

Last edited by brent0n; 06/08/07 07:31 PM.
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
on @*:text:*:#: {
  if ($nick isop #) return 
  var %rp.repeats = rp. $+ $nick $+ . $+ $chan
  var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
  if (!% [ $+ [ %rp.repeats ] ]) {
    set -u [ $+ [ 10 ] ] % [ $+ [ %rp.repeats ] ] 1
    set -u [ $+ [ 10 ] ] % [ $+ [ %rp.text ] ] $1-
  }
  elseif (% [ $+ [ %rp.text ] ] == $1-) {
    inc % [ $+ [ %rp.repeats ] ]
  }
  else {
    set -u [ $+ [ 10 ] ] % [ $+ [ %rp.text ] ] $1-
    set -u [ $+ [ 10 ] ] % [ $+ [ %rp.repeats ] ] 1
  }
  if (% [ $+ [ %rp.repeats ] ] >= 3) {
    if (o isin $usermode) kill $nick ...
    unset % [ $+ [ %rp.repeats ] ]
    unset % [ $+ [ %rp.text ] ]
  }
} 


I just modified a repeat kicker I found. Changing the ban command to kill, with a simple IF statement to check whether or not you're opered up before using the /kill command.

B
brent0n
brent0n
B
is there any way to do that without me being op'd?

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Yes, remove the @ prefix from the event.

Change:

on @*:text:*:#: {

to:

on *:text:*:#: {


Link Copied to Clipboard