I am experiencing two problems, I call the function below whenever the prompt is called. This seems to cause the player a quarter/second or so of lag.
Also, the mxp variables show up for wintin.NET and zmud, but I can't seem to find them anywhere in mushclient. Any chance someone has an idea or two to toss out,whether it has to do with the lag or missing variables in mush?
void mxp_add_prompt_tags(struct descriptor_data *descriptor)
{
char mxp_entity[ 10000 ], mxp_buf[ 10000 ];
if (!descriptor->character)
return;
if((descriptor->mxp) && IS_SET(descriptor->character->specials.player_act,PLR_MXP))
{
snprintf( mxp_buf, 10000, "%s%s%s%s%s%s%s%s", MXP_SECURE_STRING,
"<!ENTITY CurrentHP %i PUBLISH>", "<!ENTITY CurrentMana %i PUBLISH>",
"<!ENTITY CurrentMove %i PUBLISH>", "<!ENTITY MaxHP %i PUBLISH>",
"<!ENTITY MaxMana %i PUBLISH>", "<!ENTITY MaxMove %i PUBLISH>",
MXP_LOCKED_STRING );
snprintf( mxp_entity, 10000, mxp_buf, GET_HIT(descriptor->character),
GET_MANA(descriptor->character), GET_MOVE(descriptor->character),
GET_MAX_HIT(descriptor->character), GET_MAX_MANA(descriptor->character),
GET_MAX_MOVE(descriptor->character));
write_to_descriptor(descriptor, mxp_entity);
}
Then I call this function in comm.c(DIKU) where make_prompt is called... |