mIRC Home    About    Download    Register    News    Help

Print Thread
#233599 27/08/11 11:44 AM
Joined: Jun 2011
Posts: 29
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jun 2011
Posts: 29
Was wondering if someone could help on this matter.

Im making a script where i want the commands to work in a certain channel, however i will want it to change sometimes with a command. This is what i have, i hope it helps.

Code:
on *:TEXT:!setchan*:#: {
  set $+(%,setchan.,$chan) $2
  msg $chan $MrDink(6)
}


And then for that to work i use

Code:
on *:TEXT:!color*: $+ $($+(%,setchan.,$chan),2) $+ : {


The var saves but the command still works in other channels. Any help is welcome. Thanks

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Use:
Code:
on *:TEXT:!color*:#:{ 
  if ($chan == $($+(%,setchan.,$chan),2)) {


Link Copied to Clipboard