Indeed, but the purpose and actions /hedit takes is much simpler to use then using hdel and hadd. If I don\'t specify this specific format, it won\'t really edit. I could make the format of /hedit a little different somehow if you would like but right now that is quite necessary. Anything I can improve on in this snippet to make it worth more than a 3.0?
/hedit or $hedit A simple alias that edits the data of a specified item in a hash table through hadd and hdel. You must specify all the required parameters otherwise the snippet will not work. See the comments below for more information. /hmove Simple alias that copies a hash table into a new one through a really simple method. It stores all the item from the first hash table into a temporary txt file...
This is most likely not ripped if that\'s what your saying. A lot of people on here use rawmode in various ways, the author decided to use it in the most simple way.
To the author, I would find a way to make this an original snippet. Perhaps the ability to disable certain rawmodes? Perhaps use a local variable and use $gettok\'s to define if the status is on? Here is an example of what I am suggesting:
on *:RAWMODE:#:{
if ($gettok(%modez,1,44) = on) {
if (+q isin $1) && ($me isin $2) { inc %cf 1 | msg $chan Thanks for the ~ $nick $+ ! That\'s number: %cf $+ . | halt }
if (-q isin $1) && ($me isin $2) { inc %dcf 1 | msg $chan Don\'t take my ~ $nick $+ ! That\'s number: %dcf $+ . | halt }
}
if ($gettok(%modez,2,44) = on) {
if (+a isin $1) && ($me isin $2) { inc %sop 1 | msg $chan Thanks for the & $nick $+ ! That\'s number: %sop $+ . | halt }
if (-a isin $1) && ($me isin $2) { inc %dsop 1 | msg $chan Don\'t take my & $nick $+ ! That\'s number: %dsop $+ . | halt }
}
if ($gettok(%modez,3,44) = on) {
if (+o isin $1) && ($me isin $2) { inc %aop 1 | msg $chan Thanks for the @ $nick $+ ! That\'s number: %aop $+ . | halt }
if (-o isin $1) && ($me isin $2) { inc %daop 1 | msg $chan Don\'t take my @ $nick $+ ! That\'s number: %daop $+ . | halt }
}
if ($gettok(%modez,4,44) = on) {
if (+h isin $1) && ($me isin $2) { inc %hop 1 | msg $chan Thanks for the % $nick $+ ! That\'s number: %hop $+ . | halt }
if (-h isin $1) && ($me isin $2) { inc %dhop 1 | msg $chan Don\'t take my % $nick $+ ! That\'s number: %dhop $+ . | halt }
}
if ($gettok(%modez,5,44) = on) {
if (+v isin $1) && ($me isin $2) { inc %vop 1 | msg $chan Thanks for the + $nick $+ ! That\'s number: %vop $+ . | halt }
if (-v isin $1) && ($me isin $2) { inc %dvop 1 | msg $chan Don\'t take my + $nick $+ ! That\'s number: %dvop $+ . | halt }
}
}
menu channel {
Status thanker:
.Owner On/Off:$iif($gettok(%modez,1,44) = on,set %modez $reptok(%modez,on,off,1,44),set %modez $reptok(%modez,off,on,1,44)
.Admin On/Off:$iif($gettok(%modez,2,44) = on,set %modez $reptok(%modez,on,off,2,44),set %modez $reptok(%modez,off,on,2,44)
.Op On/Off:$iif($gettok(%modez,3,44) = on,set %modez $reptok(%modez,on,off,3,44),set %modez $reptok(%modez,off,on,3,44)
.Hop On/Off:$iif($gettok(%modez,4,44) = on,set %modez $reptok(%modez,on,off,4,44),set %modez $reptok(%modez,off,on,4,44)
.Voice On/Off:$iif($gettok(%modez,5,44) = on,set %modez $reptok(%modez,on,off,5,44),set %modez $reptok(%modez,off,on,5,44)
}
This code is untested.
It would be easier if you could have the \'s switched to variables because it\'s easier to type /set %botname name instead of going through the script and changing the text. And, just in case a user doesn\'t specify, add an if ($2-) event to double-check if the user actually types the parameters. Other then that, it looks alright. You also have a typo/spelling error, it should be circumstances.
It\'s so much easier to add it without having to open the scripts editor and create a new line in the alias just for another nick. And you\'re right, shorter isn\'t always better but it would be in this case. It\'s much easier to have in all in one line and use tokens. I would follow the ideas of the others because they are much easier to configure and use.
@guest598594 In comparison to mountain dew you\'re probably right. But on average, it\'s not that bad. I still drink it too much anyway. =(
@guest598594 Not quite my favorite but it definitely comes in second. I\'m a coke addict ftl. =(
What is the join event for? It would have already added the user to the akick list when you typed `akick. You should add more specifications to the code, things like if ($2) && ($3-). You should also specify if $2 ison $chan to check if the nick is already in the channel. Otherwise, you will recieve an error.
Not a bad little snippet but it\'s lacking more mp3 functions. How about adding an if event to check if the mp3.txt actually exists? I would add a pause/resume option to the snippet as well. I think that there is no need of the /set, why not use local variables? There is also no need of the / before the /msg while I\'m being extremely picky.