Top

Simple load/unload script


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  3.0
Scores Submitted  1
Date Added  Dec 31, 2006
Last Updated  Dec 31, 2006
Tags  load  script  unload 

Introduction

To use this type !load <name of file>, or !unload <name of file>. You can edit it to be .mrc and not .ini. When you specify the file just the file name not with .ini, .mrc etc..etc..

Where it says Bot's Owner's Nick, this script is set up to only let the owner of the bot be able to load/unload scripts. You can edit this to include ops, hops, etc..etc..

Grab the Code

Comments

  (6)  RSS
[M]ike
Comments: 33
 
mIRC Snippet:  Simple load/unload script
Posted on Dec 31, 2006 7:34 pm
why .ini? most scripts are .mrc? Also if they enterd !unload file.ini it would try to unload file.ini.ini so maybe try using if (.ini isin $2-) and also insted of if ($nick == blah blah blah) { why not use if ($address($nick,2) == $address($me,2) {
Jus some tips to help you
ZabuzaMomochi
Comments: 186
 
mIRC Snippet:  Simple load/unload script
Posted on Jan 1, 2007 6:21 am
well, scripts can be in .mrc AND .ini files, i think your first file in your remotes(the default one when you first download mIRC) is in .ini format, but when you usually download mirc addons, it will be in .mrc format. So really, you should change load -rs $2- $+ .ini and change it to load -rs $2-
Just because the bot owner should know if what they\'re trying to upload is in .ini or .mrc format. Also change unload -rs $2- $+ .ini to load -rs $2- And also, [M]ike, most people have vhosts on some registered nicks, but usually not on there bots, so you would want it to be the nick instead of it looking at the address. But there are many things to edit, im too tired to list them all though lol. (like checking if the file is real, and checking if what the person is trying to unload is the file with the above snippet in it) Sorry for this post being so long, lol.
ZabuzaMomochi
Comments: 186
 
mIRC Snippet:  Simple load/unload script
Posted on Jan 1, 2007 6:22 am
on the 6th line, 11th word, where i said \'load\' i meant \'unload\'
[M]ike
Comments: 33
 
mIRC Snippet:  Simple load/unload script
Posted on Jan 1, 2007 7:07 am
Zabuza, I didn\'t say ALL scripts are .mrc I said \'most\' and also, I said address, because the server I\'m on has too many users to give vhosts to them all. Yes, is $file could be used, and once I\'ve finsihed my massive bot control script I\'ll upload it and you\'ll see how I did it ;)
ZabuzaMomochi
Comments: 186
 
mIRC Snippet:  Simple load/unload script
Posted on Jan 1, 2007 7:23 am
lol, sorry it was like, 4am i guess i didnt read yours slowly enough lol
CakerX
Comments: 4
 
mIRC Snippet:  Simple load/unload script
Posted on Jan 2, 2007 6:15 am
using .load -rs $2- instead of .load -rs $2- ini would be good enough.

anyway I don\'t think that remote loading is a great idea. Nicknames can be taken over, so I\'d have more security than just if ( $nick == %owner ).

I\'d also do something like on trusted:text:!load*:#:

and have the owner\'s IP address with the \"trusted\" level in the level section.

Being its a non-numeric level, no default level can trigger it, making it uber-exclusive, which is neccary because someone having access to load -rs on your machine is fairly comprimising.

Please Register or Login to start posting comments.
Bottom