Register forum user name Search FAQ

Gammon Forum

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 ➜ MXP and Pueblo ➜ MXP Tags

MXP Tags

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Thalor   (3 posts)  Bio
Date Tue 11 May 2004 03:32 PM (UTC)
Message
I have a problem with MXP.

The element entry is thus....

/* Immortal tag to load/edit/slay/stat/kill mobs that you see */
write_to_buffer( d, MXPTAG
("!ELEMENT Mobs \"<send href='"
"medit &#39;&vnum;&#39;|"
"load mob &#39;&vnum;&#39;|"
"kill &#39;&desc;&#39;|"
"slay &#39;&desc;&#39;|"
"stat mob &#39;&desc;&#39;"
"' "
"hint='RH mouse click to use this object|"
"Edit &desc;|"
"Load &desc;|"
"Kill &desc;|"
"Slay &desc;|"
"Stat &desc;"
"'>\" ATT='vnum name desc'"),
0);


The code to show it to MXP enabled clients is this.

if (IS_NPC(victim) && IS_IMMORTAL(ch) && (!IS_SET (ch->comm,COMM_NOVNUM)))
{
sprintf( buf3, "[" MXPTAG ("mobs %d %s %s") "%d" MXPTAG("/mobs")"]",victim->pIndexData->vnum,victim->name,victim->short_descr,victim->pIndexData->vnum);
strcat(buf,buf3);
}


I *THOUGHT* I did this correctly. Can someone point out my error?

When I hit Edit I need it to medit <vnum>
When I hit Load I need it to load mob <vnum>
When I hit kill I need it to kill <name>
When I hit slay I need it to slay <name>
When I hit stat I need it to stat mob <name>

The last 3 work but I cant get the medit and load mob to show vnums. It instead gives me medit <name> and load mob <name>...

What am I missing?

TIA!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 12 May 2004 10:12 PM (UTC)
Message
It looks OK - can you turn up the MXP debug level and copy and paste the actual tag that is sent to the client?

I am expecting something like:

<mobs 1234 foo bar>1234</mobs>

but maybe it will be something else.

- 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.


11,708 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.