Search found 109 matches

by Zaphob
Wed Oct 29, 2014 9:12 pm
Forum: Mudlet Development
Topic: add Forum links to Website & Wiki
Replies: 10
Views: 7652

Re: add Forum links to Website & Wiki

All suggestions say to modify the source code. We can work around that by keeping it versioned then. Either that or keep a list of things too adjust after a version update. Maybe that is less hustle than adding the forum source to version control, which seems possible only for admins, who have enou...
by Zaphob
Wed Oct 22, 2014 10:55 pm
Forum: Scripts & Packages
Topic: n00b script/trigger question.
Replies: 5
Views: 5248

Re: n00b script/trigger question.

Maybe check out the Trigger Manual
by Zaphob
Wed Oct 22, 2014 3:16 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 3401

Re: Newbie Multi-Line Trigger

Thanks Jor'Mox. Here is yet another explanation I received: because matching only goes in one direction (from left to right), you need to distinguish match start and match end, and you can only control greedyness of the end the start is always as early (greedy) as possible I am getting a better feel...
by Zaphob
Wed Oct 22, 2014 11:35 am
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 3401

Re: Newbie Multi-Line Trigger

Still not sure, why it was so greedy, but the following more specific pattern works as expected:
Code: [show] | [select all] lua
weapon, damagetype = string.match(text, "%. ([^%.]-) macht folgenden Schaden: ([^%.]-)%.")
display(weapon)
"Ein Bienenstachel"
by Zaphob
Mon Oct 20, 2014 9:59 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 3401

Re: Newbie Multi-Line Trigger

Unfortunately, the line breaks are completely random aka when the line is full. Depending on length of names, etc, this can be at different places. So I will go the string.match way and see where it takes me. Then again, pattern matching doesn't offer the exact functionality I try to recreate, some ...
by Zaphob
Sun Oct 19, 2014 8:19 pm
Forum: Help Forum
Topic: Help a noob coder out, please!
Replies: 2
Views: 1125

Re: Help a noob coder out, please!

Welcome Ishin, maybe let the noob read this: http://sscce.org/
by Zaphob
Thu Oct 09, 2014 11:07 pm
Forum: Help Forum
Topic: Newbie Multi-Line Trigger
Replies: 9
Views: 3401

Re: Newbie Multi-Line Trigger

you reach the end, where you reset your check variable and do whatever you need to do once you have all the info you want. I solved some simpler patterns, but still struggle with the more complex regex. Here is another example: (Er|Sie|Es) ist gegen (schneidenden Schaden|stechenden Schaden|reissend...
by Zaphob
Thu Oct 09, 2014 12:42 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Run Lua code from the command line
Replies: 14
Views: 27149

Re: Run Lua code from the command line

So, I love this module ever since I found it back a few years ago. And now it seems, Mudlet 3.0 comes bundled with it already! My question now: How do you expect the script packages to manage? I would like to include "run lua" for all users 2.1, who don't have it already installed themselves. Of cou...
by Zaphob
Thu Oct 09, 2014 9:19 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Display Raw Packets for what is sent from the Server
Replies: 3
Views: 2031

Re: Display Raw Packets for what is sent from the Server

Have you tried opening your Debug Console? This is how I can see my GMCP transmissions (Not the contents, but which parts were updated), maybe it's similar for MXP?
by Zaphob
Tue Oct 07, 2014 9:34 am
Forum: Scripts & Packages
Topic: NumPad Movement
Replies: 3
Views: 5071

Re: NumPad Movement

Thanks guys, this seems interesting! I found it through the wiki: http://wiki.mudlet.org/w/Keybindings Is there any way to understand which keyCode / keyModifier relates to which button on Keyboard? Following is the Lua code again for your comparison. <KeyPackage> <KeyGroup isActive="yes" isFolder="...