$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.