> 
> Turn on the light in the room.
> 
> Honestly, the easiest way is to switch into the mob and see what
> you have in your inventory.
> 
> Edwin

A little more time saver and easy to implement would be 'as'.\
Then you can just do: 'as shopkeeper inv'

void do_as (CHAR_DATA *ch, char *argument)

{

   CHAR_DATA *vic;

   DESCRIPTOR_DATA *orig;

   char arg[MAX_INPUT_LENGTH];

 

   argument = one_argument (argument, arg);

   vic = get_char_world(ch, arg);

   if (!vic){

      printf_to_char(ch, "No one here by that name.\n\r");

      return;

   }

 

   orig = vic->desc;

   vic->desc = ch->desc;

   ch->desc = NULL;

 

   interpret (vic, argument);

 

   ch->desc = vic->desc;

   vic->desc = orig;

} 

Reply via email to