[Package Index | Mudlib Index | Effect Index]
Written by Macchirton
inherit "/std/room/basic_room"; inherit "/std/shops/engrave"; void init() { basic_room::init(); engrave_init(); } /* init() */
.
void engrave_init()This method should be called in the inheriting room's init function. IUt will setup the commands to allow the object to be engraved.
int engrave_objects(object * obs, int cost)This method is called when the engrave is successful. This should be overridden in the inheritable to print out the message you wish to say. If this function returns 1 then the default failed message is not used.
void set_engrave_language(string lang)This method sets which language (for example, "agatean", or "morporkian") to be used when engraving. It defaults to "general", which is not to be recommended.
int do_engrave(object * things, string message)This method does the actual engraving.
int engrave_living(object * obs)This method is called when a living object is attempted to be engraved. This should be overridden in the inheritable to print out the message you wish to say. If this function returns 1 then the default failed message is not used.
int engrave_no_money(object * obs, int cost)This method is called if the player does not have enough money to complete the engraving. This should be overridden in the inheritable to print out the message you wish to say. If this function returns 1 then the default failed message is not used.
int engrave_wrong_items(object * obs)This method is called if the objects in question are unable to be engraved. This should be overridden in the inheritable to print out the message you wish to say. If this function returns 1 then the default failed message is not used.