mIRC Homepage
Posted By: pouncer script name/line number etc - 31/07/07 10:24 AM
alias msg {
..
msg $1-
}

basically i want to override the msg command so when i do /msg .. i want it to echo me the script name/line number of where it came from and still msg the channel and stuff
Posted By: Bekar Re: script name/line number etc - 31/07/07 01:10 PM
$script and $scriptline are your friends.

Posted By: qwerty Re: script name/line number etc - 31/07/07 02:10 PM
$script/$scriptline would return the filename/line of the /msg alias itself. The OP wants the location of the command that called that /msg alias, which is not possible to retrieve currently.
Posted By: Crinul Re: script name/line number etc - 31/07/07 02:13 PM
You could use $remove($script,$scriptdir)
Posted By: Bekar Re: script name/line number etc - 31/07/07 09:23 PM
Oo.. Good point.. Apologies.
Posted By: pouncer Re: script name/line number etc - 01/08/07 09:14 AM
Originally Posted By: Crinul
You could use $remove($script,$scriptdir)


huh? i dont get you
Posted By: Crinul Re: script name/line number etc - 01/08/07 09:18 AM
Quote:
$script would return the filename... The OP wants the location of the command that called that /msg alias...


So: $remove($script,$scriptdir) returns the location (script1.ini)
Posted By: RoCk Re: script name/line number etc - 01/08/07 11:57 AM
That would return the currently executing script (the MSG alias), the OP wants the name and line number of the script that called the MSG alias, which is currently not possible.

~ Edit ~

Why not $nopath($script) ?
© mIRC Discussion Forums