Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Sending files via API
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Janua
(1 post) Bio
|
Date
| Sat 22 Feb 2014 08:42 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 24 Feb 2014 09:37 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
8,735 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top