NextDeaD Posted May 16, 2007 Share Posted May 16, 2007 Help me please write a script. script must give remote access to mirC, so he must reload scripts on distance a so on...maybe you can write this script when i type this commands from my mirc(on my computer) to mirc(remote admin) on some channel to reload scripts....And if you can write, type please script to upload files on this computer(mirc remote admin) server by my mirc... Link to comment
NextDeaD Posted May 16, 2007 Author Share Posted May 16, 2007 For example: On some channel i type from my mirc to mirc(where we have remote admin) command.... (to reload scripts on mirc.), he reload this scripts.. Link to comment
Scooby Posted May 17, 2007 Share Posted May 17, 2007 so u want a command to use from IRC, to restart the script. easy enough. Add this to the IRC running the scripts and IRC channel. ;Add ur IRC channel name below on *:TEXT:!*:#MYCHANNEL:{ ;add ur nick in the place below. if (($1 == !restartscript) && ($nick == YOURNICK)) { ;change the 1 below for ur serverID (tab) mta.disconnect 1 .timer 1 3 mta.connect 1 ;Add ur IRC channel name below !msg #MYCHANNEL Script Restarting. } } once u get it working, u can remove the lines beginning with a semicolon. ; hope this is what u meant anyway lol np if its not. Link to comment
NextDeaD Posted May 17, 2007 Author Share Posted May 17, 2007 One little moment!!! When mirc connect and disconnect, scripts dont reloaded...(i need to reload script when i upload script file on server where this mirc/)// Link to comment
Scooby Posted May 17, 2007 Share Posted May 17, 2007 not really sure why u would need to reload the script but here. ;Add ur IRC channel name below on *:TEXT:!*:#MYCHANNEL:{ ;add ur nick in the place below. if (($1 == !restartscript) && ($nick == YOURNICK)) { ;change the 1 below for ur serverID (tab) mta.disconnect 1 .timer 1 3 mta.connect 1 ;Add ur IRC channel name below !msg #MYCHANNEL Script Restarting. !.reload -rs $+(",$script,") } } make sure u add this into the main script u need reloading, or it will only reload the current script, instead of ur main script. Link to comment
JB_frozen Posted May 17, 2007 Share Posted May 17, 2007 so an example of what scoob means on *:TEXT:!restart*:*:{ if ($nick !isaop $chan) { /mta.disconnect 1 .timer 1 3 /mta.connect 1 /msg $chan Script Restarting. !.reload -rs $+(",$script,") } } Link to comment
NextDeaD Posted May 17, 2007 Author Share Posted May 17, 2007 I wrote this moment, but i want to upload files in scriptdir by mirc,how i can do this? Link to comment
Scooby Posted May 17, 2007 Share Posted May 17, 2007 u want to upload files from one pc's mirc to the pc hosting ur script/server's mirc into the scriptdir ??? what files could u possible want to upload??? use some kind of remote access. much quicker Link to comment
Recommended Posts