[Package Index | Mudlib Index | Effect Index]
File /cmds/living/show.c
This is the command to show things
to players without having to give them
up. Other than do_show_object(), there's
nothing interesting in this file that
can be used externally.
Written by Tape
Inherits
This class inherits the following classes /cmds/base.cIncludes
This class includes the following files /include/command.hMethod index
- do_show_object(object, object, object, mixed, int)
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.
- notify_fail(string)
Public Functions
These are functions that everyone can access.
.
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().
- Parameters:
shower - the person doing the showing
item - the item being shown
owner - the object that the item is contained in
target - the person you're showing it to
nomess - set this to 1 if you don't want any "X offers to show Y to you"
- Returns:
1 if the command succeeded, 0 if failed
int notify_fail(string str)