mIRC Home    About    Download    Register    News    Help

Print Thread
H
Hounddog
Hounddog
H
I was trying to unload a script, but i have NO IDEA exactly what/where it is, all i know is that i dont like it. cool I was wondering if there is a identifier/command that will list either all the scripts loaded, or something like $script(1) or somethin. Please help. BTW, if there is not one, there should be. smile

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Just put the following code into any mIRC window editbox and it'll list the full path and filename of all script files loaded. To do the same with alias files just change the $script(%i) to $alias(%i)
Code:
//var %i = 1 | while $script(%i) { echo -a $ifmatch | inc %i }

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Code:
/scripts {
  /echo -s 
  /echo -s Current Loaded Scripts:
  /echo -s $str(-, 25)

  var %n = 1
  while ($script(%n)) {
    /echo -s %n $+ . $ifmatch
    /inc %n
  }
  /echo -s $str(-, 25)
  /echo -s Type /uload # to unload a script
}

/uload {
  if (!$1) /scripts
  else {
    if ($script($1)) {
      /.unload -rs $script($1)
      /echo -s Script Unloaded
    }
    else {
      /echo -s Invalid script
      /scripts
    }

  }
}


put in aliases, then just type /uload


Link Copied to Clipboard