Author |
Message |
Topic: Happy Birthday Zugg! |
Dharkael
Replies: 26
Views: 46814
|
Forum: CMUD General Discussion Posted: Tue Aug 05, 2008 2:06 pm Subject: Happy Birthday Zugg! |
Happy Birthday!! |
Topic: Using %pos |
Dharkael
Replies: 1
Views: 5512
|
Forum: zMUD General Discussion Posted: Wed Jul 16, 2008 1:56 pm Subject: Using %pos |
%pos is for strings
try %ismember for string lists
#show %ismember(F,@test)
that yields 6 |
Topic: How do I.... specify "Do not parse" from command line in script? |
Dharkael
Replies: 26
Views: 27837
|
Forum: CMUD General Discussion Posted: Thu Jul 10, 2008 5:16 pm Subject: How do I.... specify "Do not parse" from command line in script? |
Beyond adding options at creation time it might be nice, and useful, to be able to modify them at a later time programmatically.
...same for macros, triggers and anything else that has options. |
Topic: %mss lags me up! |
Dharkael
Replies: 7
Views: 17838
|
Forum: zMUD General Discussion Posted: Tue Jul 08, 2008 1:01 pm Subject: %mss lags me up! |
Go ahead post away |
Topic: %mss lags me up! |
Dharkael
Replies: 7
Views: 17838
|
Forum: zMUD General Discussion Posted: Mon Jul 07, 2008 3:30 pm Subject: %mss lags me up! |
It would of course be a lot easier if you were using CMUD you could obviate the need for any of this component stuff by just using threads.
But in ZMUD since there's only One thread available you can ... |
Topic: %mss lags me up! |
Dharkael
Replies: 7
Views: 17838
|
Forum: zMUD General Discussion Posted: Mon Jul 07, 2008 3:24 pm Subject: %mss lags me up! |
Below is an example of how it might be done, I did mine in JScript because I prefer it to VBScript.
The functions are really simple no checks or anything.
You copy this code to a file save it with t ... |
Topic: Deleting Room Descs Map Wide |
Dharkael
Replies: 4
Views: 8707
|
Forum: zMUD General Discussion Posted: Fri Jul 04, 2008 1:26 pm Subject: Deleting Room Descs Map Wide |
Something like this will also do the trick.
#VAR rs %comcreate( "ADODB.Recordset")
#var cs "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:\Program Files\zMUD\Sample\Sam ... |
Topic: Deleting Room Descs Map Wide |
Dharkael
Replies: 4
Views: 8707
|
Forum: zMUD General Discussion Posted: Fri Jul 04, 2008 1:26 pm Subject: Deleting Room Descs Map Wide |
Untested and probably seriously slow, but:
#call %mapfilter("")
#loop %numrooms {#call %roomdesc(%roomvnum(%i),"")}
EDIT:added call to mapfi ... |
Topic: %mss lags me up! |
Dharkael
Replies: 7
Views: 17838
|
Forum: zMUD General Discussion Posted: Thu Jul 03, 2008 5:33 pm Subject: %mss lags me up! |
The problem is that your call to the XMLHTTP component is synchronous and blocks the thread that calls it until it returns.
I would rewrite this thing as an external Windows Script Component and make ... |
Topic: #alarm and %alarm question |
Dharkael
Replies: 1
Views: 5528
|
Forum: zMUD General Discussion Posted: Fri Jun 27, 2008 6:53 pm Subject: #alarm and %alarm question |
#CLASS {stuff}
#VAR etimeleft {-1}
#VAR target {Bob}
#TRIGGER {You raze @target's aura of rebounding with (*).} {
#var etimeleft 10
#call ... |
Topic: looping a database, and showing the list in order of the %key |
Dharkael
Replies: 22
Views: 28624
|
Forum: CMUD General Discussion Posted: Fri Jun 27, 2008 5:49 pm Subject: looping a database, and showing the list in order of the %key |
The problem Shaun is that you modified your NSort to do no sorting at all.
Also... My NSort looks like this:
if zs.numparam < 1 then return "" end
local tbl = zs.param(1 ... |
Topic: looping a database, and showing the list in order of the %key |
Dharkael
Replies: 22
Views: 28624
|
Forum: CMUD General Discussion Posted: Fri Jun 27, 2008 3:53 pm Subject: looping a database, and showing the list in order of the %key |
What follows is 100% untested
From <func name="NSort" language="Lua" id="1">
<value>if zs.numparam < 1 then return "" end
local tbl = zs.p ... |
Topic: manual sort of database variable? |
Dharkael
Replies: 50
Views: 45099
|
Forum: CMUD General Discussion Posted: Wed Jun 25, 2008 6:11 pm Subject: manual sort of database variable? |
If you want to do something sequentially then use a list.
a db variable has no inherent order |
Topic: Gagging from Log? |
Dharkael
Replies: 30
Views: 37550
|
Forum: CMUD General Discussion Posted: Wed Jun 25, 2008 5:21 pm Subject: Gagging from Log? |
How about adding a #WRITELOG while your adding #GAGLOG? |
Topic: Mudlist |
Dharkael
Replies: 1
Views: 5974
|
Forum: zMUD General Discussion Posted: Tue Jun 24, 2008 7:32 pm Subject: Mudlist |
With zMud closed.
In your Zmud install folder rename or delete mudlist.db and mudlist.txt.
create a new mudlist.txt file and open in notepad.
go to http://www.mudconnect.com/zmud/listings_by_date ... |
Topic: CMUD 228 - Lock up during use of #PROMPT |
Dharkael
Replies: 3
Views: 6501
|
Forum: CMUD General Discussion Posted: Tue Jun 24, 2008 4:16 pm Subject: CMUD 228 - Lock up during use of #PROMPT |
There must be something he can do since one doesn't usually have this problem with other programs that use modal dialog boxes. |
Topic: Passing trigger varible %1 to python scripts |
Dharkael
Replies: 12
Views: 21568
|
Forum: CMUD General Discussion Posted: Mon Jun 23, 2008 7:36 pm Subject: Passing trigger varible %1 to python scripts |
I haven't tried but I wonder if if you couldn't enclose the %1 etc in a quotes to have python receive it as a string
someVar = "%1" |
Topic: Proper Format For Placing (%w) (%d) and the like inside of String List Variables |
Dharkael
Replies: 21
Views: 23726
|
Forum: zMUD General Discussion Posted: Mon Jun 23, 2008 7:28 pm Subject: Proper Format For Placing (%w) (%d) and the like inside of String List Variables |
The problem that Ralgith is having is such that the trigger does not even fire.
So it never comes down to %concats or %n
I say now's a good time to help your friends understand the power of regexes ... |
Topic: #URL functionality |
Dharkael
Replies: 3
Views: 7841
|
Forum: zMUD General Discussion Posted: Mon Jun 23, 2008 6:31 pm Subject: #URL functionality |
Alternative
#var xmlHTTP %comcreate("MSXML2.XMLHTTP");
#call @xmlHTTP.open( "GET", "http://www.mydomain.com/counter.php?account=me&accountPassword=mePass ... |
Topic: Proper Format For Placing (%w) (%d) and the like inside of String List Variables |
Dharkael
Replies: 21
Views: 23726
|
Forum: zMUD General Discussion Posted: Mon Jun 23, 2008 5:26 pm Subject: Proper Format For Placing (%w) (%d) and the like inside of String List Variables |
Change the messages in BlockMsgs variable to be regexes à la:
(?rescue:\a+)'s blade barrier blocks .*
...
...
(?rescue:\a+)'s Sword blazes blue white as the power of \a+ pr ... |
Topic: Python Sqlite COM Component for ZMUD/CMUD |
Dharkael
Replies: 199
Views: 381683
|
Forum: Finished MUD Scripts Posted: Thu Jun 19, 2008 1:39 pm Subject: Python Sqlite COM Component for ZMUD/CMUD |
Those are properties.
Try calling them without the parens à la:
#IF (!@comsql.IsOpen) {do something}
....
#IF (@comsql.LastError) {do something} |
Topic: So I'm looking for a regex |
Dharkael
Replies: 16
Views: 25018
|
Forum: CMUD General Discussion Posted: Thu Jun 12, 2008 3:25 pm Subject: So I'm looking for a regex |
Very simple... but it doesn't work. |
Topic: [226] Is is possible to pass spaces as part of string arguments to a function? |
Dharkael
Replies: 5
Views: 8421
|
Forum: CMUD General Discussion Posted: Wed Jun 11, 2008 4:56 pm Subject: [226] Is is possible to pass spaces as part of string arguments to a function? |
Have you tried using quotes?
#SH @setcl("this is x","this is y") |
Topic: Status of LUA dlls |
Dharkael
Replies: 5
Views: 8500
|
Forum: CMUD Beta Forum Posted: Wed Jun 11, 2008 3:13 pm Subject: Status of LUA dlls |
Well you really wouldn't need to include a bunch of dll's if you did decide to include any, just one would do,
same if you decided to simply place them in the download area.
If library is looking fo ... |
Topic: So I'm looking for a regex |
Dharkael
Replies: 16
Views: 25018
|
Forum: CMUD General Discussion Posted: Wed Jun 11, 2008 2:13 pm Subject: So I'm looking for a regex |
I would use something like this.
^\s\s(?:\[((?>\s|\d(?!\s)){3,3}\d)\]\s\b([\w\s'\-]+)\b\s*)(?:\[((?>\ ... |
|