mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 1
H
Mostly harmless
OP Offline
Mostly harmless
H
Joined: Nov 2003
Posts: 1
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,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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 }


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato

Link Copied to Clipboard