if(IS_NPC(victim) && !IS_NPC(ch) && IS_SET(ch->act, PLR_HOLYLIGHT)) {
char dbuf[1024] = {'\0'};
snprintf(dbuf, 1024, "[%d]", victim->pIndexData->vnum);
strcat(buf, dbuf);
}
strcat( buf, "\n\r" );
buf[0] = UPPER(buf[0]);
send_to_char( buf, ch );
if (!IS_NPC(ch) && IS_SET(ch->act, PLR_HOLYLIGHT)) {
char buf[MAX_STRING_LENGTH];
sprintf( buf, "[%d] ", victim->pIndexData->vnum);
send_to_char( buf, ch );
if (!IS_NPC(ch) && IS_SET(ch->act, PLR_HOLYLIGHT))
{
if (fShort)
{
if(obj->short_descr !=NULL)
sprintf (buf, "[%5d] ", obj->pIndexData->vnum);
}
else
{
if (obj->description != NULL)
sprintf (buf, "[%5d] ", obj->pIndexData->vnum);
}
}
if ( IS_OBJ_STAT(obj, ITEM_INVIS) ) strcat( buf, "(Invis) " );
/* S: Holylight: Vnum on Mobs */
if (!IS_NPC(ch) && IS_SET(ch->act, PLR_HOLYLIGHT))
{
char buf[MAX_STRING_LENGTH];
sprintf( buf, "[%5d] ", IS_NPC(victim) ? victim->pIndexData->vnum : 0);
send_to_char( buf, ch );
}
/* E: Holylight: Vnum on Mobs */
/* S: Holylight: Vnum on Objects */
if (!IS_NPC(ch) && IS_SET(ch->act, PLR_HOLYLIGHT))
{
if (fShort)
{
if(obj->short_descr !=NULL)
sprintf (buf, "[%5d] ", obj->pIndexData->vnum);
}
else
{
if (obj->description != NULL)
sprintf (buf, "[%5d] ", obj->pIndexData->vnum);
}
}
/* E: Holylight: Vnum on Objects */
/* S: Holylight: Show Closed and Locked Exits */
if ( ( pexit = ch->in_room->exit[door] ) != NULL
&& pexit->u1.to_room != NULL
&& can_see_room(ch,pexit->u1.to_room)
&& IS_SET(pexit->exit_info, EX_CLOSED)
&& !IS_NPC(ch)
&& IS_SET(ch->act, PLR_HOLYLIGHT))
{
found = TRUE;
if ( fAuto )
{
strcat( buf, " (" );
strcat( buf, dir_name[door] );
if IS_SET(pexit->exit_info, EX_LOCKED)
{strcat (buf, "*");}
strcat( buf, ")" );
}
else
{
sprintf( buf + strlen(buf), "(%-5s - %s)",
capitalize( dir_name[door] ),
room_is_dark( pexit->u1.to_room )
? "Too dark to tell"
: pexit->u1.to_room->name
);
if (IS_IMMORTAL(ch))
sprintf(buf + strlen(buf),
" [Room %d]\n\r",pexit->u1.to_room->vnum);
else
sprintf(buf + strlen(buf), "\n\r");
}
}
/* E: Holylight: Show Closed and Locked Exits */
I wish to improve the functionality of the holylight immortal command in these three ways:
A. Autoexit would show all exits to immortals with holylight on, even if closed/locked.
Ex:
[Exits: North East South (Down) (West)] <- Down and west are closed exits.
B. Look would show mob and object vnums in the room with holylight on, similar to the way it does with room names.
Ex:
The Temple Square [Room 3005]
You are standing …
[Exits: North East South West Up]
A small white fountain gushes forth. [3135]
A cityguard stands here. [3060]
C. Lastly, inventory would show vnums to an immortal with holylight on.
Ex:
You are carrying:
a map of the city of Midgaard [3162]
I apologize for such a huge request on my first post, and again if you don't wish to tell me directly how to do it, some clues would be appreciated.
Thank you,
Camtire