mxp clickable exits

Posted by Modnar on Sun 17 Nov 2002 05:50 AM — 4 posts, 16,922 views.

#0
We've just (in the last month) added mxp to our Rom2.4 derived mud. I've been busy with other projects so haven't done much with it except using those great extended colors :). Everything works as it should with the telnet negotiotian, character substitution, etc. but i am having a problem getting the clickable exits to work. this is the element i define in turn_on_mxp()

write_to_buffer( d, MXPTAG("!ELEMENT Ex \"<send href='&dir;' hint='Go &dir;.'\" ATT='dir'"),0);

and this is the line that gets sent with an exit

sprintf(buf, MXPTAG("Ex '%s'")"%s"MXPTAG("/Ex"), dir_name[door], capitalize(dir_name[door]));

this displays correctly and sends the right command on click to zmud users, but not to mushclient users. i suppose its unbalanced somehow or the syntax isn't quite right. can i have a tip on fixing this? if i've left any important info out just let me know :)
Australia Forum Administrator #1
In the MXP configuration page set the debug level to Information, and try it. Please report any relevant messages from the debug window.
Australia Forum Administrator #2
Off the top of my head you don't seem to close the <send> tag. Try this:


write_to_buffer( d, MXPTAG("!ELEMENT Ex \"<send href='&dir;' hint='Go &dir;.'>\" ATT='dir'"),0);

Note the ">" symbol I added to the <send> tag.
#3
thats exactly what it was, thanks :)