@xDaemon: you must have very good eyes to see all those files in a blue selection bar with a height of about one pixel . Or you don\'t have any ini files at all. \"combo 7, 5 118 82 13, drop\" drops down the combo list at most 13 dbu\'s down which is just a little bit more than the height of the edit field in the combi list. At least it is in my mIRC version (6.17).
Nice idea ... but did you test it wel? No you didn\'t.
on *:dialog:initable:init:0:{
var %c = $findfile($mircdir,*.ini,0,did -a $dname 7 $nopath($1-))
return %c
}
This doesn\'t fill the filelist with the ini.files. %c will only contain the number of ini files that were found. And what is that return %c doing there?
alias ini.dialog { if (!$dialog(initable)) { dialog -m initable initable }
There is a } missing here with the result that the menu n\'t shown in the menubar.
I\'ll give it a \"1\" for the time you spend on it ...
bweh
Try this one: http://www.mishscript.de/msbindex.htm
Hash tables have one big disadvantage to me: you have to hsave them. That means, if mIRC crashes you will loose all your data. A small disadvantage is that you cannot change the contents easily unless you have some kind of editor. About speed and INI: if your PC dates from 1990 or so, yes you should use hash tables. But modern PC\'s process INI files fast enough. By the way: INI files are processed in memory! Re: /help /flushini
This is a snippet from my own script, Razor Blade. When you deactivate mirc to do something else like e-mailing, browsing or what ever, all events like kick, ban, mode, op, deop, will be logged into a separate window, which shows up when you activate mirc again. You will miss nothing! The code can be changed easily for your own needs. Just load the snippet as a separate scriptfile into your remote...
If you let users store and recall phrases in/from your bot you should use \"n\" in the read statement, like $read(random.txt, n). Otherwise they can take control of your bot. Another thing: if you have many phrases in random.txt, probably !list will let your bot flood. Instead of while loop and notice you could also play the file privately to the user.