I must say you are amazing with this scripting language. Big thanks!!!
I got some interesting/stumped situations with two portions.
}
;when you have only one command associated to an statement, you can ommit the { }
if ($nick != dreadfullydespized) guser -a $gettok(%guser,%a,32) $nick
;break
}
inc %a
}
I had to comment out the break in the line. It was calling my !break remote action. Which was weird.
Code of the remote !break command
on @10:TEXT:!break:#:{
if ((%floodbreak) || ($($+(%,floodbreak.,$nick),2))) { return }
set -u120 %floodbreak On
set -u300 %floodbreak. $+ $nick On
msg $chan Dread Says, Please take some time to take care of yourself! Go get something to eat or drink! Go to the bathroom. Possibly even stand up and stretch! Thank you. This has been a public service announcement from the DreadCast system.
}
Second interesting portion that I am not fully understanding. My guess is that the 1 5 6 was in relation to the scope of how many iterations of the script I showed here. The actual script goes up to 22,000 hours. Vs I pasted a shortened version thinking that would be helpful lol.
The line for if istoken. From my gathering. has 1 5 6. Then the %a is the iteration number of how many times it goes through the while statement. Then 32 being space for the character delimiter. Though I am unsure if I need to put the full range of all ranks/levels in the istok statement. Or if I can sum it up in some fashion like I see below.
The second thing that makes me curious. Is the next if statement line. Which from what I gather. Removes the † from the rank name information. To be better parsed for the file of the mp3. Though. The only issue I found with that is I would also need to remove character32/space. Since the mp3 files don't have one.
Final thing on this one is line 3. The $v2 is the second operator of the if statement from my understanding. Though that would also need to have the space removed. I am mainly replying to this to help me understand what actions are being taken in this portion of the script.
if ($istok(1 5 6,%a,32)) {
if (%level != $remove($gettok(%title,%a,64),†)) {
set %level. $+ $nick $v2
splay %soundlevels $+ $v2 $+ Level.mp3
}
}
I made the following edit, it provides what I wanted in terms of no † and no space. Though now it seems to not create the %level.$nick $v2 or play the sound file.
if (%level != $remove($gettok(%title,%a,64),$chr(32),†)) {
I really really really! Appreciate your help on this. I wouldn't even know where to look for these optimization techniques.