I can't seem to find the edit function now, can we only do one post edit here? Is it because I'm a new user and the number of edits I can do will increase as I post? (Otherwise apologies for the double post.)
Onto the matter at hand. I know there's not a specific problem I'm asking for help with here (apart from point 1, removing the excess text for encode/decode requests). If I can get direct help, that'd obviously be great, but I'm happy to do the legwork myself (and am continuing to do so, not as a matter of impatience, but because I can't stop wanting to tinker with it).
If you can point me to some solid resources that are more out of the way than some basic google searches or suggest the theory behind why something I've done isn't working/won't work/could be better that'd be more than enough.
I've altered my script to include some new functions; the first two, while simple, I wrote myself, so I feel I'm learning a bit here and there. They include a join message, a way to list current channel specific commands and a dice function (which I plan to play around with myself, I want to customise the entry and export but that seems simple enough).
on 1:JOIN:#MarkSpoils:/notice $nick For channel commands type (without the quotes) "/ctcp rot13 chancomm"
ctcp 1:chancomm:/notice $nick The channel commands are... | /notice $nick Channel Commands "/ctcp rot13 chancomm" | /notice $nick Encoding "/ctcp rot13 encode" | /notice $nick Decoding "/ctcp rot13 decode" | /notice $nick Dice Rolling "!dice <number of dice> <number of sides>"
ctcp 1:encode*:/say #MarkSpoils $nick $iif($isid,return,msg #) $regsubex($1-,/([a-z])/gi,$chr($calc($asc(\1) $iif($asc($upper(\1)) < 78,+,-) 13)))
ctcp 1:decode*:/notice $nick $iif($isid,return,msg #) $regsubex($1-,/([a-z])/gi,$chr($calc($asc(\1) $iif($asc($upper(\1)) < 78,+,-) 13)))
on $*:TEXT:/^!dice (10|[1-9]) (\d+[0-9]|[1-9])$/:#: var %i = 0, %limit = $iif($2 > 10, 10, $2) | while %i < %limit { inc %i | .timer 1 $calc(%i * 2) msg $chan $nick rolled $3 $+ -sided die number %i of $2 $+ : Result $rand(1,$3) }
I've noticed many other threads have their scripts in many lines, not single ones like mine? Is that preferred on here and/or in mIRC scripting itself? The rot13 and dice scripts I found were single line naturally.
Edit: New actual problem I hope to fix myself - Changed the order of the scripts (to the above) and now encode and chancomm no longer work. Wiping Remote and adding them back in separately or on their own doesn't help either.
Edit 2: chancomm is back, typos on my script. encode is still not working, I'm getting a * You are not on a channel message when encode attempts are made. I think I had this problem very early on but I thought I solved it already.