Search found 4 matches

by Khonsu
Wed May 24, 2023 3:46 am
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 19320

Re: Command Spam Prevention

Thank you! That was exactly what I needed. Here is the new script: function command_count(event, command) if commandCountKill == nil then commandCountKill = 1 end --if currentCommand = command if currentCommand == lastCommand then commandCountKill = commandCountKill + 1 else commandCountKill = 0 end...
by Khonsu
Tue May 23, 2023 11:49 am
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 19320

Command Spam Prevention

Maybe I'm reinventing the wheel but I could not find an option like in mushclient that sends another command after 'x' number of similar commands. This is for some MUD's that kick you out after repeating a command 30 or 50 times etc. So I figured I would make an alias that captures anything sent and...
by Khonsu
Fri May 06, 2022 11:40 am
Forum: Scripts & Packages
Topic: Copy Color as BBCode
Replies: 3
Views: 24293

Re: Copy Color as BBCode

Oh yeah I guess I was only thinking about my use case, oops. I've updated the script above to have two uniquely named functions. I did slightly modify the rgbToHex part as well. I tested it again real quick and it all seems to be normal. Thank you for the help!
by Khonsu
Thu May 05, 2022 3:23 am
Forum: Scripts & Packages
Topic: Copy Color as BBCode
Replies: 3
Views: 24293

Copy Color as BBCode

This is probably a really small niche thing that won't apply to a lot of people, but I had to share it just in case it helps someone else out. I did not know _any_ Lua about a week ago, and I still don't know a lot. I found most of the code for this in the technical manual under addMouseEvent and mo...