Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
sabman
Novice


Joined: 17 Aug 2007
Posts: 34

PostPosted: 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?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
sabman
Novice


Joined: 17 Aug 2007
Posts: 34

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
sabman
Novice


Joined: 17 Aug 2007
Posts: 34

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net