Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD and RPG Webmasters (http://www.topmudsites.com/forums/forumdisplay.php?f=13)
-   -   Accesing mud functions from outside (http://www.topmudsites.com/forums/showthread.php?t=819)

snowfruit 06-10-2004 10:20 AM

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

Amnon 06-10-2004 11:55 AM

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.

erdos 06-10-2004 01:31 PM

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? :(

Angie 06-10-2004 04:48 PM

Make a webserver that can process strings generated by functions.

Yui Unifex 06-10-2004 04:49 PM

Writing out temp files is nasty. is the way to go.

Ogma 06-10-2004 05:15 PM

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.


All times are GMT -4. The time now is 10:58 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022