Server Entities

Posted by Etreus on Tue 25 Nov 2003 07:19 AM — 2 posts, 13,323 views.

#0
I was reading through the "MXP Sound Problems" post, and I was wondering if there might be an easier way to do that. I've got a similar situation where my moo defines stuff via MXP. It seems, however, to capture the strings and remove all the junk to get the data you need is a backwards kind of way to do it. When I type "/world.debug "server_entities" I get this;


maxhitpts  = 1023
maxmanapts = 1245
maxmovepts = 1172
hitpts     = 1023
manapts    = 1245
movepts    = 1172


It seems MushClient already knows the names, and values of those entities. Is there a way to harvest that information from the client instead of from each line the server sends? It'd seem to be a faster, easier way to do so, instead of interpreting each line twice (once by MushClient, internally, and twice by the script).
Australia Forum Administrator #1
See this posting:

http://www.gammon.com.au/forum/?bbsubject_id=3234

The plugin callback routine "OnPluginMXPsetVariable" is called when an MXP entity is changed, so you could detect it there.