![]() |
#1 |
New Member
Join Date: Jun 2002
Posts: 12
![]() |
![]() Does any one have any suggestions on how to expose certain lpcmud scripts so that they can be run from web based script?
I want to give the website real time stats on the mud and access to some functions without having to resort to doing the usual wholist thing - storing the results of these funcs in temp files... Thanks in advance for your help |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: May 2002
Posts: 140
![]() |
You could have the script create a file that the MUD will check for every minute or so and process, then output the results into HTML.
|
![]() |
![]() |
![]() |
#3 |
Posts: n/a
|
You could set your mud to respond to http requests on some port other than playport; that's no doubt the most professional way to go about it.
Amnon, buddy, friend... whatever has happened to assault? :( |
![]() |
![]() |
#4 |
Member
Join Date: Dec 2003
Location: Prague
Home MUD: God Wars II
Posts: 134
![]() |
Make a webserver that can process strings generated by functions.
|
![]() |
![]() |
![]() |
#5 |
Senior Member
|
![]() Writing out temp files is nasty. is the way to go.
|
![]() |
![]() |
![]() |
#6 |
Member
Join Date: Apr 2002
Home MUD: DartMUD
Posts: 86
![]() |
We accomplish this by using the erq, which allows certain LPC objects to open up ports. It's how the ftpd for your mud communicates with the mud for verifying login. Half of the erq stuff is compiled into the driver, the other half is certain LPC objects. I don't know if your mudlib has these though.
We've used it for our intermud channels (between our live mud and test installation), for sending email from within the mud for registration and one of our guys setup some web pages that called lpc objects this way. I'm not entirely familiar with how to do it, but it is possible. |
![]() |
![]() |
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macros Vs inline functions | karlan | MUD Coding | 4 | 05-01-2003 09:19 PM |
|
|