Register to post in forums, or Log in to your existing account
 
:
Search found 3555 matches for:
Page 1 of 143 Goto page 1, 2, 3 ... 141, 142, 143  Next
Author Message
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Wed Feb 21, 2018 7:55 am   Subject: Add Record With Lua
You can add a further check and nest all that recordkeeping stuff inside of:

#IF (@totalGold) {add a record}

That way it only actually updates when there is a change to record.

Oh, in the #AD ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Wed Feb 21, 2018 12:19 am   Subject: Add Record With Lua
02/20/2018="7:58 PM=0|sessionTime=15:00|7:59 PM=0|8:00 PM=0|8:01 PM=0"
key:
02/20/2018

members:
7:58 PM=0
sessionTime=15:00
7:59 PM=0
8:00 PM=0
8:01 PM=0

Instead of:
#ADDKEY $today $time ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Wed Feb 21, 2018 12:12 am   Subject: Add Record With Lua
It only adds session time to the latest record.
The old records are already set.

Also, your $sessionTime is not currently changing value.
Technically the time of the occurrence is already being ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Tue Feb 20, 2018 9:47 pm   Subject: Add Record With Lua
ah, i made a mistake.... we just want %db in the retrieval line, not %dbkey
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Tue Feb 20, 2018 9:42 pm   Subject: Add Record With Lua
$record=%dbkey(@goldRecords, @charName)
//Retrieve 2nd layer database from first layer
$today=%dbkey($record, $date)
//retrieve 3rd layer database from 2nd
#ADDKEY $today $time @totalGold
//up ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Tue Feb 20, 2018 9:03 pm   Subject: Add Record With Lua
Not a problem.
I assume they are the same as rows, yes.
Currently, each user in the database (1st layer), is a database unto itself (2nd layer), with a bunch of rows for the days.
The days are also ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Tue Feb 20, 2018 11:44 am   Subject: Add Record With Lua
Variables that start with the $ are local variables, and not stored in system memory beyond the execution of the individual setting.

@goldRecords is just a placeholder name, use the actual variable ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Mon Feb 19, 2018 10:19 pm   Subject: Add Record With Lua
Well, what format do you like your date to show as?
The %time function offers a good bit of variability.
#HELP %time

Session_time is supposed to be the interval between records?

#ALARM " ...
  Topic: Add Record With Lua
shalimar

Replies: 15
Views: 128

PostForum: CMUD General Discussion   Posted: Mon Feb 19, 2018 8:02 pm   Subject: Add Record With Lua
Is there a reason you want to do this in Lua?
I am not the most familiar with Lua syntax.
I could likely toss out some zScript to do the same thing.
  Topic: One direction doubles when I try to build a path
shalimar

Replies: 3
Views: 52

PostForum: CMUD General Discussion   Posted: Sun Feb 18, 2018 3:55 am   Subject: One direction doubles when I try to build a path
Hmm, as an alternative you could try making a variable list of the directions needed?

thisPath=n|n|n|n|nw|n|n|w|w|w|s|sw|go trail|climb rope|go door
#EVENT keepMoving {#SEND %pop(thisPath)}
#ALIA ...
  Topic: One direction doubles when I try to build a path
shalimar

Replies: 3
Views: 52

PostForum: CMUD General Discussion   Posted: Sat Feb 17, 2018 12:44 pm   Subject: One direction doubles when I try to build a path
Quite frankly, I don't use predefined #PATH s.
It is far more useful to be able to speedwalk from any given room to a given destination.
To that end, it is usually better to give those special endzo ...
  Topic: error opening pcre810.dll
shalimar

Replies: 1
Views: 44

PostForum: CMUD General Discussion   Posted: Sat Feb 17, 2018 3:01 am   Subject: error opening pcre810.dll
I think I have got that sometimes when I try to open up CMUD to fast after booting.
Usually just restarting CMUD is enough.
If the issue persists, you could try reinstalling CMUD.
  Topic: Forum Clock
shalimar

Replies: 8
Views: 3049

PostForum: Website or Forum problems   Posted: Thu Feb 15, 2018 4:29 am   Subject: Forum Clock
Yea, looks like the clock is off again.
  Topic: forum search tool takes me to web search
shalimar

Replies: 3
Views: 642

PostForum: Website or Forum problems   Posted: Thu Feb 15, 2018 4:28 am   Subject: forum search tool takes me to web search
I'm not entirely certain, but that is the workaround.
  Topic: Can't alt tab into CMUD
shalimar

Replies: 2
Views: 62

PostForum: CMUD General Discussion   Posted: Tue Feb 13, 2018 1:42 am   Subject: Can't alt tab into CMUD
If you have any third party software altering things like windowpanes I don't think CMUD plays nice.
Sometimes if you leave one of the ancillary windows, like the help window, or the settings editor, ...
  Topic: Windows10 + cmud issue
shalimar

Replies: 2
Views: 80

PostForum: CMUD General Discussion   Posted: Mon Feb 12, 2018 11:25 am   Subject: Windows10 + cmud issue
I do have windows 10 and it works mostly without errors.
However what you are describing certainly sounds like one.
The easiest solution is to uninstall and reinstall the software.
Also, make sure ...
  Topic: CMud Colors - washed out
shalimar

Replies: 6
Views: 125

PostForum: CMUD General Discussion   Posted: Sat Feb 10, 2018 11:54 pm   Subject: CMud Colors - washed out
Zugg has moved on to a job in D.C. working on the Drupal engine.
  Topic: CMud Colors - washed out
shalimar

Replies: 6
Views: 125

PostForum: CMUD General Discussion   Posted: Sat Feb 10, 2018 11:13 pm   Subject: CMud Colors - washed out
It may well be, that is all outside my personal scope of knowledge.
However, CMUD is no longer being actively developed, so it is unlikely to be changed.
I am unsure if there is anything you can do ...
  Topic: CMud Colors - washed out
shalimar

Replies: 6
Views: 125

PostForum: CMUD General Discussion   Posted: Sat Feb 10, 2018 8:59 pm   Subject: CMud Colors - washed out
I would assume that the colors are the same.
That's more of a hardware issue, no?
  Topic: extracting intergers and keeping them with missing letters
shalimar

Replies: 13
Views: 475

PostForum: CMUD General Discussion   Posted: Thu Feb 08, 2018 11:37 pm   Subject: extracting intergers and keeping them with missing letters
Apparently, the lack of code tags was inserting unneeded spaces.... try it now?
  Topic: Currently capturing, but want it re-ordered
shalimar

Replies: 15
Views: 472

PostForum: CMUD General Discussion   Posted: Thu Feb 08, 2018 11:28 pm   Subject: Currently capturing, but want it re-ordered
#LOCAL $newOn $off
#FORALL @nowOn {#IF (!%ismember(%i, @preOn)) {#ADDITEM $newOn %i}}

#PRINT {Players On: %expandlist($newOn, ", ")}

And flip the logic accordingly to populate $off

You might ...
  Topic: extracting intergers and keeping them with missing letters
shalimar

Replies: 13
Views: 475

PostForum: CMUD General Discussion   Posted: Thu Feb 08, 2018 6:06 am   Subject: extracting intergers and keeping them with missing letters
Well maybe i am overthinking the condition

#TR {[You-] [call-] [forth-] [a-] [word-] [of-]}
#COND {-} {
#STATE 1
#LOC ...
  Topic: T2T Mud - ZMUD Capture Trigger
shalimar

Replies: 3
Views: 150

PostForum: zMUD General Discussion   Posted: Thu Feb 08, 2018 5:02 am   Subject: T2T Mud - ZMUD Capture Trigger
change it to:

#TRIGGER {(%w) tells you: (*)} {#CAP Tells}
#COND {^ %x} {
#CAP Tells
#STATE 1
} {Within|Param=1} ...
  Topic: Help with script
shalimar

Replies: 4
Views: 132

PostForum: CMUD General Discussion   Posted: Thu Feb 08, 2018 2:36 am   Subject: Help with script
Oh, the #MATH command is deprecated.
We can also cut out some clutter in your .pkg file by using local variables for throwaway info:
Try changing it to:

#IF (@xp=%1) {#NOOP} {
$old=@xp
xp=%1
# ...
  Topic: Help with script
shalimar

Replies: 4
Views: 132

PostForum: CMUD General Discussion   Posted: Thu Feb 08, 2018 2:29 am   Subject: Help with script
The issue is likely with the fact that this is a prompt trigger.
Open it up in the settings editor, then open up the bottom option panel, if it isn't already.
Make sure to uncheck on newline.
And t ...
 
Page 1 of 143 Goto page 1, 2, 3 ... 141, 142, 143  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net