

- MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA UPDATE
- MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA MANUAL
- MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA PASSWORD
- MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA PC
- MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA DOWNLOAD
MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA MANUAL
:Category:Mudlet Manual - the top-level Manual category.Special:Allpages/Manual: - An automatically generated list of all pages in the Manual: namespace.Readers having trouble finding a particular topic in the section above or the category list may find the following ways of browsing to be helpful.

There are multiple ways to browse through the documentation.

Others Mudlet FAQ Frequently asked questions about Mudlet. Compiling Mudlet | Infrastructure Overview | Links to read | Testing | Versioning For game developers/admins Websockets | Discord Rich Presence | Greg's GMCP snippet Scripting | Lua API and Reference | Geyser GuideĪrchitecture Everything needed to start contributing to Mudlet. This requires encoding the username:password into base64.Introduction to Mudlet | Technical Manual | Migrating to Mudlet Enhancing your Mudlet experience. Some HTTP servers may require you to put your Basic Authentication into the 'Authorization' HTTP header value.

MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA PASSWORD
Many HTTP servers allow you to enter a HTTP Basic Authentication username and password at the beginning of the URL itself, in 2: Authorization Header: If your HTTP endpoint requires authentication to post data, HTTP Basic Authentication is a common method for doing so. to_string ( data ), url, header ) - yajl.to_string converts our Lua table into a JSON-like string so the server can understand it - Pop this into an alias and try it yourself! HTTP Basic Authentication Example sendGMCP ( " - first we create something to handle the success, and tell us what we got registerAnonymousEventHandler ( 'sysPostHttpDone', function ( event, rurl, response ) if rurl = url then display ( response ) else return true end - this will show us the response body, or if it's not the right url, then do not delete the handler end, true ) - this sets it to delete itself after it fires - then we create something to handle the error message, and tell us what went wrong registerAnonymousEventHandler ( 'sysPostHttpError', function ( event, response, rurl ) if rurl = url then display ( response ) else return true end - this will show us the response body, or if it's not the right url, then do not delete the handler end, true ) - this sets it to delete itself after it fires - Lastly, we make the request: postHTTP ( yajl.
MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA UPDATE
This would send "Core.KeepAlive" to the server, which resets the timeout sendGMCP ( "Core.KeepAlive" ) -This would send a request for the server to send an update to the table. See also: GMCP Scripting for Discord status Example When playing an IRE game, a call to send(" ") afterwards is necessary due to a bug in the game with compression (MCCP) is enabled. A call to sendGMCP would not be required in this case. For example, LOOKing in your room prompts the server to send the room description and contents, as well as the GMCP message gmcp.Room. For most GMCP modules, the messages are automatically sent by the server when a relevant event happens in the game. Note that this function is rarely used in practice. The IRE document on GMCP has information about what can be sent, and what tables it will use, etcetera. Need example sendGMCP sendGMCP(command) Sends a GMCP message to the server. instead of using many send() calls, you can use one sendAll sendAll ( "outr paint", "outr canvas", "paint canvas" ) - can also have the commands not be echoed sendAll ( "hi", "bye", false ) sendATCP sendATCP(message, what) Need description See also: ATCP Protocol, ATCP Extensions, Achaea Telnet Client Protocol specification, Description by forum user KaVir (2013), Description by forum user Iocun (2009) Parameters GetConnectionInfo getConnectionInfo() Returns the server address and port that you're currently connected to, and (in Mudlet 4.12+) true or false indicating if you're currently connected to a game.
MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA DOWNLOAD
" players on right now." ) end - register our function to run on the event that something was downloaded registerAnonymousEventHandler ( "sysDownloadDone", "downloaded_file" ) - download a list of fake users for a demo downloadFile ( getMudletHomeDir ().
MUDLET SWORD AND BOARD COMMUNICATION COMMANDS ACHAEA PC
create a function to parse the downloaded webpage and display a result function downloaded_file ( _, filename ) - is the file that downloaded ours? if not filename : find ( "achaea-who-count.html", 1, true ) then return end - read the contents of the webpage in local f, s, webpage = io.open ( filename ) if f then webpage = f : read ( "*a" ) io.close ( f ) end - delete the file on disk, don't clutter os.remove ( filename ) - parse our downloaded file for the player count local pc = webpage : match ( ] ) display ( "Achaea has ".
