Search found 1147 matches

by Jor'Mox
Mon Aug 28, 2023 11:44 am
Forum: Help Forum
Topic: Probably really easy IF THEN question
Replies: 5
Views: 31368

Re: Probably really easy IF THEN question

You are right that. I'm totally sleep deprived. My bad.Thanks.

Edit: Fixed the original post to use the right brackets, and pull out the other bit.
by Jor'Mox
Sun Aug 27, 2023 12:07 pm
Forum: Help Forum
Topic: Probably really easy IF THEN question
Replies: 5
Views: 31368

Re: Probably really easy IF THEN question

Interestingly, you can actually use tables to bypass most of the if/then stuff here, like this. local dirs = {"go 9e, 9n, 18w, 2s, 16e, 5s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, d", "go 11s, 18e, 8n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w,...
by Jor'Mox
Wed Jul 19, 2023 6:48 pm
Forum: Mudlet Mapper
Topic: suggestion: add waiting button for special exit window in mapper
Replies: 7
Views: 58234

Re: suggestion: add waiting button for special exit window in mapper

So long as they are already using speedwalk with a delay, you could absolutely do something like that, where they set an extra delay variable in their script, that is executed, and it is reset when the continue_walk function runs its own wait timer where you indicated. And given that it would be ess...
by Jor'Mox
Tue Jul 18, 2023 4:10 pm
Forum: Mudlet Mapper
Topic: suggestion: add waiting button for special exit window in mapper
Replies: 7
Views: 58234

Re: suggestion: add waiting button for special exit window in mapper

Yeah, speedwalks with waiting included require special implementation because of the way that speedwalks work. Normally, they just spam out all the commands as fast as possible, and assume everything will go through properly. As far as I see it, there are three different approaches that could work i...
by Jor'Mox
Wed May 24, 2023 12:09 pm
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 19746

Re: Command Spam Prevention

I rewrote some of your if statements just to highlight the sorts of things you can do with Lua to simplify your code. function command_count(event, command) commandCountKill = commandCountKill or 1 currentCommand = command commandCountKill = currentCommand == lastCommand and commandCountKill + 1 or ...
by Jor'Mox
Tue May 23, 2023 12:53 pm
Forum: Help Forum
Topic: Command Spam Prevention
Replies: 3
Views: 19746

Re: Command Spam Prevention

Instead of using an alias, you can create an event handler for the sysDataSendRequest event, and handle it that way. There is an example in the wiki, located here: https://wiki.mudlet.org/w/Manual:Lua_Fu ... urrentSend
by Jor'Mox
Fri May 19, 2023 1:54 pm
Forum: Help Forum
Topic: how to use basic list or array to see whether an item is in the list?
Replies: 3
Views: 19587

Re: how to use basic list or array to see whether an item is in the list?

Another way, especially if you have different actions to match different words you are looking for, is to use your matched words as keys, and the actions as entries, like this: action_table = {apple = "drop apple", orange = "eat orange", pear = "cast fireball pear"} -- ...
by Jor'Mox
Fri May 12, 2023 5:47 pm
Forum: Help Forum
Topic: Button Layout Bug?
Replies: 5
Views: 20863

Re: Button Layout Bug?

The description of the problem is great, as is showing it in action, but it would be useful if you showed the code you were using to generate those buttons, so we could hopefully figure out where the problem is occurring.
by Jor'Mox
Sat Apr 15, 2023 12:47 am
Forum: Help Forum
Topic: Capturing prompt
Replies: 2
Views: 19983

Re: Capturing prompt

So, you can add in a bit to make it work in both circumstances: ^Hp: (\d+)\((\d+)\) [\s\*\d]*Gp: (\d+)\((\d+)\) Xp: (\d+)\((\d+)\) Basically, it just makes a group of characters, spaces, numbers and asterisks, and then says that your pattern should look for 0 or more of them right before the Gp in y...
by Jor'Mox
Thu Mar 09, 2023 1:46 am
Forum: Help Forum
Topic: Commands not working
Replies: 1
Views: 9000

Re: Commands not working

There is no way that you could use arrow key movement via Mudlet, because Mudlet doesn't sent anything to the game at all until you hit Enter. This is distinctly different from base Telnet, which sends each key stroke as you type, and so allows for some very particular features that basically no MUD...