Author |
Message |
Topic: Opening URL's in Cmud |
Daern
Replies: 4
Views: 12458
|
Forum: CMUD General Discussion Posted: Sat Sep 16, 2017 7:34 pm Subject: Opening URL's in Cmud |
All I can do is say what CMUD is doing, and CMUD looks at the file association. Specifically, CMUD looks at the registry key HKEY_CLASSES/.htm and then extracts the \shell\open\command value from that ... |
Topic: GMCP bug for Room.Players |
Daern
Replies: 7
Views: 15562
|
Forum: CMUD General Discussion Posted: Sun Apr 30, 2017 5:34 am Subject: GMCP bug for Room.Players |
Awesome, thanks for fixing it up :) I'll keep this post for future reference. |
Topic: IF - matching entry to string list |
Daern
Replies: 6
Views: 13173
|
Forum: CMUD General Discussion Posted: Sun Apr 30, 2017 5:30 am Subject: IF - matching entry to string list |
Alternatively, you could create a database variable with the required values for each skill and look them up in that.
$required_values = {shipdodge=30|slice=15|secure=15| .... }
#IF (! ... |
Topic: SQL Query question |
Daern
Replies: 4
Views: 10170
|
Forum: CMUD General Discussion Posted: Sun Apr 30, 2017 5:22 am Subject: SQL Query question |
The table name is missing in your query - it should be "SELECT * FROM [table name] WHERE name LIKE '%legging%'". Although if you're getting the same error on the sample code, it sounds like a differen ... |
Topic: MXP Controlled Chat Window Focus |
Daern
Replies: 3
Views: 8552
|
Forum: CMUD General Discussion Posted: Sun Apr 30, 2017 5:20 am Subject: MXP Controlled Chat Window Focus |
You probably need to disable the "Automatically bring to front window with activity" option in the [url="http://forums.zuggsoft.com/modules/mx_kb/kb.php?mode=doc&page=3&refpage=3&a=cmud_pr ... |
Topic: IF - matching entry to string list |
Daern
Replies: 6
Views: 13173
|
Forum: CMUD General Discussion Posted: Thu Apr 27, 2017 5:00 am Subject: IF - matching entry to string list |
Presumably you don't want to compare an item to the list itself - you just want to check if the list contains that item? You can use the [[%ismember]] function for that. |
Topic: GMCP bug for Room.Players |
Daern
Replies: 7
Views: 15562
|
Forum: CMUD General Discussion Posted: Mon Apr 24, 2017 2:39 am Subject: GMCP bug for Room.Players |
The problem is that the GMCP spec doesn't have any way to tell the client which data should and shouldn't be cached, and so CMUD caches everything. If there's anything that you don't want to be cached ... |
Topic: GMCP bug for Room.Players |
Daern
Replies: 7
Views: 15562
|
Forum: CMUD General Discussion Posted: Sun Apr 23, 2017 2:14 am Subject: GMCP bug for Room.Players |
Sounds similar to this issue: http://forums.zuggsoft.com/forums/viewtopic.php?t=38639
I'm not sure that it's really an issue on either end, moreso a misunderstanding of how GMCP data is cached. |
Topic: Newbie Alias/Variable question, coming from Zmud |
Daern
Replies: 5
Views: 11534
|
Forum: CMUD General Discussion Posted: Fri Jan 06, 2017 2:48 am Subject: Newbie Alias/Variable question, coming from Zmud |
You could just check if %1 is not null before overwriting your variable:
#alias k {#IF (%1 != %null) {#VAR target %1};kill @target;speed up} |
Topic: Kickstarter for Update |
Daern
Replies: 12
Views: 26527
|
Forum: CMUD General Discussion Posted: Mon Aug 22, 2016 11:20 pm Subject: Kickstarter for Update |
Would like to hear what you had in mind for the one shot update, but absolutely. |
Topic: Help with a multi-state trigger. |
Daern
Replies: 10
Views: 17951
|
Forum: CMUD General Discussion Posted: Sun Jun 05, 2016 9:50 pm Subject: Help with a multi-state trigger. |
#trigger {^You cast your AoE.$} {}
#cond {^(*)$} {#if (%1 = "") {sense @target} {cast aoe}} {Within Lines|1& ... |
Topic: Help with a multi-state trigger. |
Daern
Replies: 10
Views: 17951
|
Forum: CMUD General Discussion Posted: Sun Jun 05, 2016 3:42 am Subject: Help with a multi-state trigger. |
The first trigger state would be the ability's basic text, the second state would be type within lines 1, and would match everything: ^(*)$ . You can then check in the trigger body if %1 (the entire l ... |
Topic: %countlist: commas |
Daern
Replies: 3
Views: 8352
|
Forum: CMUD General Discussion Posted: Wed May 25, 2016 11:02 pm Subject: %countlist: commas |
It's actually not a bug at all. The comma is used to separate parameters in function calls. You were passing "test|test|test|testb|testb|test" as the first parameter, "b|test" as the second parameter, ... |
Topic: Window Numbering |
Daern
Replies: 9
Views: 15347
|
Forum: CMUD General Discussion Posted: Fri May 06, 2016 10:54 pm Subject: Window Numbering |
You can also hit the down arrow to save a command, then the up arrow to recall it. |
Topic: CMUD Logging Question |
Daern
Replies: 6
Views: 13025
|
Forum: CMUD General Discussion Posted: Fri Mar 18, 2016 11:14 pm Subject: CMUD Logging Question |
There's also a [[#writelog]] command that you could use instead of #file/#write/#close. |
Topic: What is the format of the CMUD mapper file? |
Daern
Replies: 2
Views: 8509
|
Forum: CMUD General Discussion Posted: Thu Mar 17, 2016 11:57 pm Subject: What is the format of the CMUD mapper file? |
It's a standard SQLite 3 format. If you mean documentation on the structure of the actual tables, that doesn't exist as far as I know, but if you poke around it's all pretty self-explanatory from what ... |
Topic: Catpuring ansi in grey text |
Daern
Replies: 13
Views: 17283
|
Forum: CMUD General Discussion Posted: Thu Mar 10, 2016 11:52 pm Subject: Catpuring ansi in grey text |
If you use an ANSI trigger as shalimar suggested, that would also let you capture the raw ANSI sequences if you use a wildcard, so it should be pretty easy to pick out the colored letters. A full exam ... |
Topic: multistate trigger issues |
Daern
Replies: 10
Views: 14624
|
Forum: CMUD General Discussion Posted: Tue Mar 08, 2016 12:49 am Subject: multistate trigger issues |
To clarify the above a bit: [[#cond]] is a command that CREATES a new state. The way you have it set up right now is basically equivalent to having a #trigger command inside another trigger - whenever ... |
Topic: deleting all triggers in a class |
Daern
Replies: 5
Views: 10725
|
Forum: CMUD General Discussion Posted: Fri Mar 04, 2016 2:12 am Subject: deleting all triggers in a class |
So just to clarify, the issue is just with the pluralization? You could use "Pack{s|}" in your pattern to match either an S, or nothing. |
Topic: Help matching a string |
Daern
Replies: 8
Views: 13544
|
Forum: CMUD General Discussion Posted: Sun Feb 07, 2016 5:38 pm Subject: Help matching a string |
Try this: ^~(mob~)({@monsterNameList}) |
Topic: Map Room Evaluate Question |
Daern
Replies: 16
Views: 35052
|
Forum: zMUD General Discussion Posted: Sat Feb 06, 2016 10:33 pm Subject: Map Room Evaluate Question |
Fixed up Viji's code a little (one of the missing parentheses was mine from earlier, sorry about that).
#ALIAS room {
#VAR searchforthis {%-1}
#SAY {Searched For: @searchf ... |
Topic: Variable Contains Script |
Daern
Replies: 6
Views: 15875
|
Forum: zMUD General Discussion Posted: Sat Feb 06, 2016 4:53 am Subject: Variable Contains Script |
"Thanks guys for piping in.
I've never used the %pos command before. Can you give me a quick rundown of it? Or rather, just confirm if my understanding is correct.. Usually it's what position is * ... |
Topic: Variable Contains Script |
Daern
Replies: 6
Views: 15875
|
Forum: zMUD General Discussion Posted: Thu Feb 04, 2016 1:27 am Subject: Variable Contains Script |
[[%pos]]("club", %1) |
Topic: Map Room Evaluate Question |
Daern
Replies: 16
Views: 35052
|
Forum: zMUD General Discussion Posted: Thu Feb 04, 2016 1:26 am Subject: Map Room Evaluate Question |
[[%numitems]]([[%pathexpand]]([[%pathfrom]](from_vnum, to_vnum))) . |
Topic: A user friendly interface. |
Daern
Replies: 8
Views: 13478
|
Forum: CMUD General Discussion Posted: Wed Feb 03, 2016 1:03 am Subject: A user friendly interface. |
There's also [[#pick]], which I think might be best for this. Assuming the mutually exclusive spells are predefined, you can make a setup alias that has them pick which one they want to use from a lis ... |
|