[Package Index | Mudlib Index | Effect Index]
Written by Tape
.
int do_show_object(object shower,
                   object item,
                   object owner,
                   mixed targets,
                   int nomess)
You can use this function to indirectly access the show command and
have an npc show an 'item' that he is not carrying to someone.  If
he is carrying the 'item', you might as well use the command
normally with do_command().
Although the 'shower' does not have to be carrying the 'item',
the parameter 'owner' is checked when the show offer is accepted,
to see if the 'item' is still contained inside it.  If owner is
0, the offer is processed successfully _always_.  This means that
you can still show objects with no environment, but it isn't
recommended.  And no, I can't think of an outright reason why not.
When a player uses the command, 'shower' == 'owner' == this_player().
int notify_fail(string str)