mIRC Home    About    Download    Register    News    Help

Print Thread
#119145 02/05/05 12:37 AM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
I'm trying to make a script that copys whatever the target says. But I need a way to set the target so it works.

on 1:text:*:#: { if ($nick == %nick) { msg $chan $1- } }
on 1:text:*:?: { if ($nick == %nick) { msg $nick $1- } }

Isn't working, he's telling me /set %nick nick
But for some reason it's not working can anyone help?


Do the monkey!
#119146 02/05/05 01:26 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
just answered this in this thread

#119147 02/05/05 01:28 AM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
Quote:

Isn't working, he's telling me /set %nick nick
But for some reason it's not working can anyone help?


by this i'm assumming that whomever suggested that meant to set the variable using the /set command like so:

/set %nick
%nick being your variable name..

continuing with this and to finish, /set %nick nick
the second nick is where you put the target nick like so:

/set %nick clutz1572

the end result of this would be: %nick = clutz1572

hope this helps ya out.

#119148 02/05/05 08:40 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Here is something I made for someone a a few weeks ago. It uses user levels, therefore isn't good for alot of nicks. However, considering you were trying to use variables, I doubt you have many nicks you want to copy.
Code:
#parot off
on +99:TEXT:*:#:/msg # $1-
#parot end

dialog parot {
  title "Parot Bot Control Pannel"
  size -1 -1 248 288
  option pixels notheme
  box "Users to be Mocked:", 1, 12 7 219 181
  list 99, 25 25 197 151, vsbar size sort
  button "Add", 3, 41 198 65 25
  button "Delete", 4, 133 198 65 25, disable
  check "Disable Parot Bot", 5, 6 265 113 17
  button "OK", 6, 171 254 65 25, ok
}

on *:dialog:parot:init:0:{ _init.users.parot }

alias -l _init.users.parot {
  did -r parot 99
  var %i = 1 | while ($ulist(*,99,%i)) { did -a parot 99 $v1 | inc %i }
  ; ^^ adds all levels to the list
  if ($group(#parot) == off) { did -c parot 5 } 
}

on *:dialog:parot:sclick:99:{
  if $did($did).sel { did -e parot 4 }
  else did -b parot 4
}
on *:dialog:parot:sclick:3:{
  var %b = 99
  : vars for level and listbox id
  did -a $dname %b $$input(Add user to list,equ,Add user.)
  ; get input to add to listbox
  auser 99 $!
  ; adds the same input to the address list
  _init.users.parot
}

on *:dialog:parot:sclick:4:{
  ; Fires for sclick on the ID's 322, 305 & 310 (The "delete" buttons)
  var %b = 99
  while $did(%b,1).sel {
    ruser 99 $did(%b,1).seltext
    did -d $dname %b $did(%b,1).sel
  }
  _init.users.parot
}

on *:dialog:parot:sclick:5:{ 
  if ($did(5).state == 1) { .disable #parot } | else { .enable #parot }
}

menu status,channel {
  Parot Bot:dialog -mo parot parot
}


"God sometimes puts us in the dark for us to see the light"
#119149 18/05/05 02:18 AM
Joined: Feb 2003
Posts: 106
L
Vogon poet
Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
God does nothing of the sort.


-
Just because it never happened doesn't mean it isn't true.

Link Copied to Clipboard