Sending files via API

Posted by Janua on Sat 22 Feb 2014 08:42 PM — 2 posts, 11,751 views.

#0
I use input files with MUSHclient to write room/mob/object descriptions because it's so much easier than working in any in-game editor. I'd like to take that a step further and do all of my building in a graphical area designer, then send each room to the MUD via input files. I enlisted my hubby (a developer) to write an area designer for me (in C#, if that matters). I'm wondering if there's an API to send files.

I know I can save each file from the designer, then input it via the menu from MUSHclient, but it would be a lot easier to just goto the room in MUSHclient, then push a button in my area designer to send the file for that room. I hope that makes sense.
Australia Forum Administrator #1
I don't know about an API call that, in one line, does that, but a couple of lines in Lua should do that.

Something like this:

http://www.gammon.com.au/scripts/doc.php?lua=f:lines

Change "print" to "Send" and that would more-or-less do it.