|
lodi Newbie
Joined: 31 Aug 2007 Posts: 4
|
Posted: Fri Aug 31, 2007 10:21 pm
Pictures with Mxp |
Hey everyone.
Im trying to figure out how to use Zmud to display pictures in the mud.
I saw it on one mud that had their mud logo on startup.
And from what i've understand you use mxp. Simular to sounds and so on.
But what to do with the mud? I do need to type a line in there, like if i want a pic
in a room desc, then i'd had to type something in it. And have the pictures on the server comp right?
Hope you understand where im getting at, help will be much apprechiated |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri Aug 31, 2007 10:30 pm |
Are you talking about ASCII? Or actual pictures?
Charneus |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Aug 31, 2007 10:36 pm |
The MXP specification is here and will explain how to enable and then use MXP. Only people whose clients support MXP and the image tag will see the images. More information on the image tag specifically is here.
|
|
|
|
lodi Newbie
Joined: 31 Aug 2007 Posts: 4
|
Posted: Sat Sep 01, 2007 1:23 am |
I see, but where do i type the tags? Like how do i put it in the actual code?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Sep 01, 2007 6:56 am |
You can just send open MXP commands as part of any text and it'll be parsed by the client (but make sure the client has an MXP enabled, either by asking them to enable MXP mode or by querying SB 91). For secure commands, you need to send ESC [ 1 z ; before you start using the command. I'm fairly sure that image is a secure tag.
|
|
|
|
lodi Newbie
Joined: 31 Aug 2007 Posts: 4
|
Posted: Sat Sep 01, 2007 5:15 pm |
oh i see. So you can just do it where ever you want to in descripts and so on.
Altho i quite don't understand the secure command part. If its not to much to ask for, may you give an example of how a line would look like? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Sep 01, 2007 5:39 pm |
Simply, <ESC>[1z;<image>hello.jpg</image>
But like I said before, you need to make sure the client has MXP enabled or they'll just see the tags. |
|
|
|
lodi Newbie
Joined: 31 Aug 2007 Posts: 4
|
Posted: Sat Sep 01, 2007 6:17 pm |
I must be doing something wrong. Do i have to place the picture in a specific folder somewhere? or do i type in the directory in the image tag?
like: "<ESC>[1z;<image>/home/mudplace/picture/hello.jpg</image> "
Hope im not angering you with this, hehe |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Sep 01, 2007 6:45 pm |
<ESC> is a character (ASCII number 33), not the string "<ESC>". The images can be on the web or they can be on the user's computer - I'm not sure how CMUD chooses the directory for either, you'll need to experiment.
|
|
|
|
|
|