Quote:
alias newslap { /me $hget(slap.hsh, $rand(1,9)) he}

You seem to be confused about something. A file is not a hash table, it can on the other hand store one though. A hash table is stored in memory, but to be able to load it next time you need it, we store it in a file temporarily, until we load it in memory again.

So the only problem you are facing is: you havent loaded the contents of the file to the hash table yet, which makes it obvious why you don't get results.

Btw the extension .hsh has nothing to do with it, because that is a file, not a hash table. You can use any extension, or even omit it, it does not matter.

Note that you cannot use /me except from the command line.

So try the following, I'm assuming that the file slap.hsh is in your main mIRC folder.

Usage: /slap2 <nick>

alias slap2 {
if !$chan { echo -ac info * /slap2: must be on a channel }
else {
if !$hget(slap) { hmake slap | hload slap slap.hsh }
describe # $hget(slap, $r(1,9)) $$1 $hget(slap,$r(a,l))
}
}

@ricky, you put rand a-z while he only has a-l, and 1-10 while he only has 1-9.


Gone.