mIRC Home    About    Download    Register    News    Help

Print Thread
#183848 23/08/07 12:37 AM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
I now use this mimic script
Code:
on *:load: {
  echo -a Script Loaded !
}
#mimic off
#mimic end
alias mimic {
  set %mimic.person $1
  set %channel $chan
  .enable #mimic
  echo -a 4,1Mimicing $1
}
 
alias mimic.off {
  .disable #mimic
  echo -a 4,1No longer mimicing %mimic.person
  unset %mimic.person
}
 
on *:text:*:%channel: {
  if ($group(#mimic).status == on) {
    if ($nick == %mimic.person) {
      msg $chan $1-
    }
  }
}
 
menu channel,nicklist,query {
  .Mimic Script 
  ..Mimic Person:/mimic $$?="Person to mimic:"
  ..End Mimic:/mimic.off


But how do i need to script this if i want to use rightmousebutton on a nickname that the nickname will be mimiced automaticly ? instead of typing the name/person to mimic...

Plz help ^^

Dracoz #183856 23/08/07 01:53 AM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
You already have it in your popups. Right-click, select mimic script...etc.

LostShadow #183857 23/08/07 02:01 AM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Originally Posted By: LostShadow
You already have it in your popups. Right-click, select mimic script...etc.


I know but i need to rightclick and enter a name,,,

It needs to be like.. i rightclick the name and i select mimic, than it will mimic the $address without typing in the name ....

Don't know how to script that ...

Dracoz #183858 23/08/07 02:11 AM
Joined: Dec 2004
Posts: 87
I
Babel fish
Offline
Babel fish
I
Joined: Dec 2004
Posts: 87
Code:

menu nicklist { 
  Mimic Person:/mimic $address($$1,2)
}

Last edited by ik000ike; 23/08/07 02:14 AM.
Dracoz #183861 23/08/07 04:32 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
change
Code:
  ..Mimic Person:/mimic $$?="Person to mimic:"

to
Code:
  ..Mimic $$1 : mimic $$1


Also, you're missing a "}" at the end of your popups menu.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Dracoz #183917 23/08/07 06:33 PM
Joined: Jul 2006
Posts: 107
L
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
Your use of groups isn't quite right.
Code:
on *:load: {
  echo -a Script Loaded !
}

alias mimic {
  set %mimic.person $1
  set %channel $chan
  .enable #mimic
  echo -a 4,1Mimicing $1
}
 
alias mimic.off {
  .disable #mimic
  echo -a 4,1No longer mimicing %mimic.person
  unset %mimic.person
}

#mimic off
on *:text:*:%channel: {
  if ($nick == %mimic.person) {
    msg $chan $1-
  }
}
#mimic end

menu channel,query {
  .Mimic Script 
  ..Mimic Person:/mimic $$?="Person to mimic:"
  ..End Mimic:/mimic.off
} 

menu nicklist {
  .Mimic Script 
  ..Mimic Person:/mimic $$1
  ..End Mimic:/mimic.off
}


The command .enable #mimic will change #mimic off to #mimic on,
just as .disable #mimic will do the reverse.
When it reads #mimic off, the entire on TEXT event will be ignored,
so you needn't check the state of #mimic in that event.

Last edited by LonDart; 23/08/07 06:39 PM.

LonDart
LonDart #183944 23/08/07 10:09 PM
Joined: Aug 2007
Posts: 334
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Aug 2007
Posts: 334
nice job and where in virginia do u live londart and what server do u use


This is not the signature you are looking for
LonDart #183959 24/08/07 12:06 AM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Yeah thank you laugh this works !!!


Link Copied to Clipboard