|
sabman Novice
Joined: 17 Aug 2007 Posts: 34
|
Posted: Fri Aug 17, 2007 1:55 am
PHP and CMUD |
So I've already had PHP set up from when I was using MUSH, and I figured why not try CMUD since it appears it can do the same.
I want to start of asking what I need to do to get my PHP scripts to perform CMUD commands. Any ideas? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Aug 17, 2007 9:27 am |
If PHP is recognized by the Windows scripting host then you need look no further the the #MSS command.
If it is not however, then you'd need to try and find a package that provides this support. I think the ActiveState project for PHP does this, but I'm not sure. |
|
_________________ Asati di tempari! |
|
|
|
sabman Novice
Joined: 17 Aug 2007 Posts: 34
|
Posted: Fri Aug 17, 2007 12:54 pm |
Tech wrote: |
If PHP is recognized by the Windows scripting host then you need look no further the the #MSS command.
If it is not however, then you'd need to try and find a package that provides this support. I think the ActiveState project for PHP does this, but I'm not sure. |
The php5activescript.dll does this. See, I've been using MUSH as my client because it would parse PHP and let me echo strings in hex color. But I also love the buttons and status stuff...so if CMUD can do the same for me, I'll purchase it.
Although I don't think it can do the hex color processing. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Aug 17, 2007 1:15 pm |
Hex colors are available. The syntax from #CW and #COLOR is #CW #xxxxxx. You can also use #MXP <color #xxxxxx>some text</color> to do what you want. I can't quite recall whether $xxxxxx is still supported, but I think it is supported in all those examples. So you could use which ever symbol your more comfortable with. There is also a number of colors defined by name; you can use the names directly and they can be found in the %colorlist help.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
sabman Novice
Joined: 17 Aug 2007 Posts: 34
|
Posted: Fri Aug 17, 2007 1:28 pm |
For some reason I haven't been able to get the commands to work using hex color. Never pops up. I keep trying, though.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Aug 17, 2007 5:57 pm |
#say boo
#color #0000ff
is working fine for me.
CMUD commands currently aren't accessible from languages using the Windows Script Host. I'm not sure if 2.0 supports this yet, but adding that support is still on the to-do list. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Aug 20, 2007 2:33 am |
If it helps the commands will be available in Lua which will have direct integration in v. 2.0.
|
|
_________________ Asati di tempari! |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Aug 20, 2007 9:06 am |
As far as I'm aware, the same thing should be true of the other WSH languages as well - the new zs object replaces the existing zvar object.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Aug 20, 2007 5:31 pm |
Yeah, the "zs object" for the other WSH languages probably won't make it into the first 2.0 version, sorry. It's planned soon, but I want to get the bugs out of it (using it with Lua) before I port it to the other WSH languages.
|
|
|
|
|
|