[Package Index | Mudlib Index | Effect Index]
Written by Pinkfish
.
void add_teach_skill(string skill, int teach, int learn)This method sets the teach level for the command. The player must be over this level in the teaching skill to be able to teach this command to the player. If this is set to 0, then teaching is inhibited.
int can_teach_command(object teacher, object student)This method checks to see if the command can be taught or not.
string help()This method returns the help as a string.
function help_function()This method returns the help data as a function pointer. The function pointer needs to be evaluated to create the actual text.
string query_command_name()This method returns the current command name of the command.
string query_nroff_file()This method returns the name of the nroff help file associated with this command.
string query_teach_guild()This method returns the currently set specific guild. If this is 0 then the command can be taught to any guild.
class teach_skill * query_teach_skills()This method returns the current teach skill level.
string query_www_help()This method returns the help in a html format for use with the web.
void set_command_name(string name)This method sets the name of the command. This is used in the teaching to teach the command to the student.
void set_nroff_file(string str)Set the name of the nroff help file.
void set_teach_guild(string guild)This method sets the command to be only able to be taught to a specific guild. If this is set to 0 then the command can be taught to any guild, this is the default.
int teach_command(object teacher, object student)This method actually teaches the command to the student.