[Package Index | Mudlib Index | Effect Index]
.
varargs int add_gatherables(string type, string desc, mixed args ...)Add a gatherable item (or items) to an outside room. This function takes care of everything needed to enable players to gather stuff in outside rooms. It utilizes the gathering system and encapsulates the whole process into a single function. The only caveat is that in order to be gathered the item(s) must already be registered with the gather handler.
add_gatherables("flowers", "Here and there spring flowers are clustered on the " "forest floor. It appears that there are bluebells and " "primroses among them.", "bluebells", 15, "primroses", 25, "snowdrops", 5);
int can_use_for_co_ords(string other)
string cloud_look()Returns the cloud look for the cloud item.
string query_climate()This method returns the climate type for this room
int query_day_light()This method returns the current level of day light in the room. The day light is the light level the room is set to if there was full sun and no darkness at all. Mostly a percentage of this is calculated in the query_light() method.
int query_fast_clean_up()This function allows you to check whether or not fast clean-up is currently allowed.
string * query_gatherables()List the gatherables registered in this room.
string query_light_change()
string query_weather_handler()This returns the path to the weather handler currently being used.
string rain_look()Returns the rain look for the rain item.
int remove_gatherable(string item)Remove a registered gatherable.
int set_climate(string climate)This method sets the climate for this room from the standard climate types.
void set_fast_clean_up(int number)This function allows you to disable the fast clean-up of outside rooms.
void set_light_change(string s)Sets the function that is called when the light level in a room changes from day to night, and vice versa. The light change function is called with an argument of 0 for sunset, and 1 for sunrise. Note that the light change function is called from reset(), so it is imperative to call ::reset() if you have masked reset() and want this method to work. This also means that the function will not trigger immediately the time changes from day to night, but during the next reset.
void set_weather_handler(string handler)This sets the weather handler that the room will use. NOTE: this call will eventually be removed, so don't use it.
string sleet_look()Returns the sleet look for the sleet item.
string snow_look()Returns the snow look for the snow item.