Home

[Package Index | Mudlib Index | Effect Index]

File /std/shops/player_shop/office.c

The standard inheritable object for player-run shop offices.

Description

This office is the nerve centre of the shop. Most of the data structures are defined and maintained from here, and virtually all of the managerial functions are forwarded here. It is this object that passes the common variables across to other files as they call for them. This minimises the complexity of setting up each object - as long as they point to this object, and this object is correctly set up, the objects will know which shop they belong to, who the employees are, who the proprietor is etc.

Before the shop will function correctly, it must be registered with the handler - see set_very_short()

Most of the functions defined in the office are not needed by creators. Those that are needed are shown in the examples. Other functions are not necessary, but may be useful.

The source to this object is split into 15 different files. The main file, office.c includes the other files under the office_code directory. This is intended to ease code maintenance as the total size of the office code (as of December 2000) is around 165k.

In general, the functions contained in office.c are those intended to be used directly by creators. The other functions are called internally by the shop.

The data itself is also saved into several files. The data is arranged into these files to minimise the amount of disk activity when changes are made. For example, employee data changes every time an employee does something. The list of applicants, however, changes only when an application status changes. They are, therefore, saved into seperate files. Also, each save call is subject to a callout, and will limit the amount of disk writing actually done. The only data not stored by this file is the stock data, which is saved by each cabinet individually. All data and logs are saved into several files within a directory "/d/(domain)/save/player_shops/(shop_very_short)/". In addition, some data are cleared if it hasn't been used for a while. This will typically save up to 100k of memory for a store the size of Tarnach's.

The shop supports notice boards, posting all hirings, promotions, bonus amounts in addition to any posts requested in the inheriting object. In the absence of a board, all posts are mailed to each employee and each employee will have access to an additional "memo" command in the office.

Applications are handled automatically, with managers voting whether to accept or reject an application. On gaining positive votes from at least 50% of the managers, an applicant is hired. If they receive more than 50% negative votes, they are rejected. If there are insufficient votes to settle the decision, an applicant will be hired if more managers have voted for than against. Policy suggestions are handled in a similar way.

The shop's two main administration routines are run on a regular basis. The first of these is run every day and is responsible for checking that employees are still valid players (not deleted chars or creators). It conducts automatic promotions, and handles demotions for inactive employees. It also updates the lists of declined applicants and banned people and removes that status if applicable. Finally, it calls the check_hire_list() function to see if we can hire any new employees.

The second is run every Discworld month. This review involves paying employees directly into their nominated bank account, and awarding bonuses based on the current value of the bonus fund.

See also:
/include/player_shop.h, /std/shops/player_shop/mgr_office.c, /std/shops/player_shop/counter.c, /std/shops/player_shop/storeroom.c, /std/shops/player_shop/shop_front.c and /std/shops/player_shop/shopkeeper.c

Written by Ringo

Started 1st August 1999

Example

#include "path.h"

inherit "/std/shops/player_shop/office";

void setup()
{
   set_light(60);
   set_place("Lancre");
   set_language("morporkian");
   set_proprietor("Tarnach Fendertwin");
   set_shop_name("Tarnach Fendertwin's Quality Consumables (Creel Springs)");
   set_very_short("TFQC-CS", PATH + "save/");
   set_channel("tarnachcs", 0);
   set_stock_policy("magical spell components");

   set_shop_front(PATH+ "front");
   set_counter(PATH+ "counter");
   set_storeroom(PATH+ "storeroom");
   set_directions("east", "east", "east");

   set_shopkeeper(PATH + "shopkeeper");

   set_short("office of Tarnach's shop");
   set_long("This room is the office of the Creel Springs branch of "
     "Tarnach Fendertwin's Quality Consumables.  There is a door to the "
     "managers' office in the south wall.\n");
   add_sign("The sign is a small piece of paper stuck to the wall.\n",
     "This seems to be a handwritten note from Tarnach himself.  "
     "The handwriting, not to mention the spelling and the grammar, "
     "is appalling, so it's difficult to make out much.  All you "
     "can understand is something about what the \"office\" is for.",
     "sign", "sign" )->add_property( "there", "on one wall");
   add_exit("east", PATH+ "counter", "door");
   add_manager_exit("south", PATH + "mgr_office");
}

Inherits

This class inherits the following classes /std/room/basic_room.c

Includes

This class includes the following files /include/refresh.h, /include/money.h, /include/board.h, /std/shops/player_shop/office_code/stock.c, /std/shops/player_shop/office_code/policies.c, /std/shops/player_shop/office_code/personnel.c, /std/shops/player_shop/office_code/logging.c, /std/shops/player_shop/office_code/lists.c, /std/shops/player_shop/office_code/cabinets.c, /std/shops/player_shop/office_code/applications.c, /std/shops/player_shop/office_code/admin.c, /include/move_failures.h, /include/mail.h, /std/shops/player_shop/office_code/save.c, /std/shops/player_shop/office_code/review.c, /std/shops/player_shop/office_code/memo.c, /std/shops/player_shop/office_code/masked.c, /std/shops/player_shop/office_code/emp_cmd.c, /std/shops/player_shop/office_code/baddies.c, /std/shops/player_shop/office.h, /include/shops/bank.h and /include/player_shop.h

Method index

Public Functions

These are functions that everyone can access.

.

    get_applicants
    mapping get_applicants()
    

    Query the list of applicants. This method returns the list of applicants as a mapping formatted as follows:
    ([ "name": type, time, ({ for }), ({ against }), ({ abstain }), ])
    • Returns:
      the applicants mapping formatted as above.
    get_baddies
    mapping get_baddies()
    

    Query the people banned from the shop. This method returns a mapping of the people banned from this shop, along with the time that they were banned, the person banning them, and the reason they were banned. The format for this mapping is:
    ([ person:({ reason, banner, time }) ])
    • Returns:
      the mapping, formatted as above.
        get_employees
        string * get_employees()
        

        Query the list of employees. This method returns the list of employees, sorted alphabetically.
        • Returns:
          the sorted array of employees.
        • See also:
          get_supervisors(), get_managers() and get_retired()
            get_managers
            string * get_managers()
            

            Query the list of managers. This method returns the list of managers, sorted alphabetically.
            • Returns:
              the sorted array of managers.
            • See also:
              get_employees(), get_supervisors() and get_retired()
                get_new_policies
                mapping get_new_policies()
                

                Query the policy suggestions. These are the policies that have been proposed but not yet implemented.
                • Returns:
                  a mapping of the suggested shop policies.
                • See also:
                  get_policies() and query_policy()
                    get_policies
                    mapping get_policies(int type)
                    

                    Query the policies. These are the policies currently in effect.
                    • Returns:
                      a mapping of the shop policies.
                    • See also:
                      get_new_policies() and query_policy()
                        get_retired
                        string * get_retired()
                        

                        Query the list of retired managers. This method returns the list of retired managers, sorted alphabetically.
                        • Returns:
                          the sorted array of retired managers.
                        • See also:
                          get_employees(), get_supervisors() and get_managers()
                            get_supervisors
                            string * get_supervisors()
                            

                            Query the list of supervisors. This method returns the list of supervisors, sorted alphabetically.
                            • Returns:
                              the sorted array of supervisors.
                            • See also:
                              get_employees(), get_managers() and get_retired()
                                num_employees_in
                                int num_employees_in()
                                

                                Query the number of employees currently clocked in. This function will also clock out any employees that are no longer on DW.
                                • Returns:
                                  the number of employees clocked in.
                                    query_applicant
                                    int query_applicant(string player)
                                    

                                    Determine if this person has applied for a job.
                                    • Parameters:
                                      player - the player to query.
                                    • Returns:
                                      APPLIED if applied, HIRED if voted in, AWAITING if awaiting a vacancy. Otherwise, will return FALSE.
                                        query_baddie
                                        int query_baddie(string player)
                                        

                                        Determine if this person is banned from the shop.
                                        • Parameters:
                                          player - the player to query.
                                        • Returns:
                                          the time of the ban if banned, FALSE if not banned.
                                            query_bonus
                                            int query_bonus()
                                            

                                            Query the value of the bonus account. This is the current value of the bonus account. Will need converting to local currency if it is to be displayed.
                                            • Returns:
                                              the value of the bonus account.
                                            • See also:
                                              query_profit()
                                                query_channel
                                                string query_channel()
                                                

                                                Query the channel used by the shop.
                                                • Returns:
                                                  the channel in use by this shop
                                                • See also:
                                                  set_channel()
                                                    query_counter
                                                    string query_counter()
                                                    

                                                    Query the path to the shop counter.
                                                    • Returns:
                                                      the path to the counter.
                                                    • See also:
                                                      set_counter()
                                                        query_creator
                                                        void query_creator(string creator)
                                                        

                                                        Query the maintainer of this shop's files.
                                                        • Returns:
                                                          the person responsible for this shop.
                                                        • See also:
                                                          set_creator()
                                                            query_declined
                                                            int query_declined(string player)
                                                            

                                                            Determine if a player was declined for a job. This method is used to determine if there is a declined application registered for a player.
                                                            • Parameters:
                                                              player - the player to query.
                                                            • Returns:
                                                              FALSE, or the time at which the applicant was declined.
                                                                query_employee
                                                                int query_employee(string player)
                                                                

                                                                Determine if this person is an employee of the shop.
                                                                • Parameters:
                                                                  player - the player to query.
                                                                • Returns:
                                                                  the employee's points, or FALSE if not an employee.
                                                                • See also:
                                                                  query_supervisor(), query_manager() and query_retired()
                                                                    query_employees
                                                                    mapping query_employees()
                                                                    

                                                                    Return the employee data. This includes only active employees - retired managers are not included. The data is formatted as:
                                                                    ([ employee:({ points, time, bank, pay, inactive, nobonus, nopromote }) ])

                                                                    • Returns:
                                                                      the employee mapping, formatted as above.
                                                                        query_language
                                                                        string query_language()
                                                                        

                                                                        Query the language used in communications with this shop. Useful for signs, books, etc.
                                                                        • Returns:
                                                                          the language used in communications with this shop.
                                                                        • See also:
                                                                          set_language()
                                                                            query_list_array
                                                                            string * query_list_array()
                                                                            

                                                                            Query the list of items sold by the shop. Generates an array of the keys to the list mapping.
                                                                            • Returns:
                                                                              the list of items in array form.
                                                                            • See also:
                                                                              query_list_mapping() and query_list_string()
                                                                                query_list_mapping
                                                                                mapping query_list_mapping()
                                                                                

                                                                                Query the list of items sold by the shop.
                                                                                • Returns:
                                                                                  the list of items in mapping form.
                                                                                • See also:
                                                                                  query_list_array() and query_list_string()
                                                                                    query_list_string
                                                                                    string query_list_string()
                                                                                    

                                                                                    Query the list of items sold by the shop. Generates a list of all items bought & sold by this shop, and outputs a multiple short string for use in displays.
                                                                                    • Returns:
                                                                                      the list of items.
                                                                                    • See also:
                                                                                      query_list_array() and query_list_mapping()
                                                                                        query_manager
                                                                                        int query_manager(string player)
                                                                                        

                                                                                        Determine if this person is a manager of this shop.
                                                                                        • Parameters:
                                                                                          player - the player to query.
                                                                                        • Returns:
                                                                                          TRUE or FALSE
                                                                                        • See also:
                                                                                          query_employee(), query_supervisor() and query_retired()
                                                                                            query_maxemp
                                                                                            int query_maxemp()
                                                                                            

                                                                                            Query the maximum number of employees.
                                                                                            • Returns:
                                                                                              the maximum number of employees allowed at this shop.
                                                                                                query_mgr_office
                                                                                                string query_mgr_office()
                                                                                                

                                                                                                Query the path to the managers' office.
                                                                                                • Returns:
                                                                                                  the path to the managers' office.
                                                                                                    query_num_cabinets
                                                                                                    int query_num_cabinets()
                                                                                                    

                                                                                                    Query the number of storeroom cabinets.
                                                                                                    • Returns:
                                                                                                      the number of cabinets in the storeroom.
                                                                                                        query_pay
                                                                                                        int query_pay()
                                                                                                        

                                                                                                        Query the base pay rate. This is the base pay rate set by the managers; the amount each employee will receive for a single transaction.
                                                                                                        • Returns:
                                                                                                          the value of the base pay rate
                                                                                                            query_place
                                                                                                            string query_place()
                                                                                                            

                                                                                                            Query the location of this shop.
                                                                                                            • Returns:
                                                                                                              the location of the shop
                                                                                                            • See also:
                                                                                                              set_place()
                                                                                                                query_policy
                                                                                                                int query_policy(string policy)
                                                                                                                

                                                                                                                Determine if a shop policy exists.
                                                                                                                • Parameters:
                                                                                                                  policy - The name of the policy to query.
                                                                                                                • Returns:
                                                                                                                  2 if it is already policy, 1 if it is a proposal, else 0
                                                                                                                • See also:
                                                                                                                  get_policies() and get_new_policies()
                                                                                                                    query_profit
                                                                                                                    int query_profit()
                                                                                                                    

                                                                                                                    Query the value of the profit account. This is the current value of the profit account. Will need converting to local currency if it is to be displayed.
                                                                                                                    • Returns:
                                                                                                                      the value of the profit account
                                                                                                                    • See also:
                                                                                                                      query_bonus()
                                                                                                                        query_proprietor
                                                                                                                        string query_proprietor()
                                                                                                                        

                                                                                                                        Query the name of the proprietor.
                                                                                                                        • Returns:
                                                                                                                          the name of the proprietor
                                                                                                                        • See also:
                                                                                                                          set_proprietor()
                                                                                                                            query_retired
                                                                                                                            int query_retired(string player)
                                                                                                                            

                                                                                                                            Determine if this person is a retired manager of this shop.
                                                                                                                            • Parameters:
                                                                                                                              player - The player to query.
                                                                                                                            • Returns:
                                                                                                                              TRUE or FALSE
                                                                                                                            • See also:
                                                                                                                              query_employee(), query_supervisor() and query_manager()
                                                                                                                                query_shop_front
                                                                                                                                string query_shop_front()
                                                                                                                                

                                                                                                                                Query the path to the shop front.
                                                                                                                                • Returns:
                                                                                                                                  the path to the shop front
                                                                                                                                • See also:
                                                                                                                                  set_shop_front()
                                                                                                                                    query_shop_name
                                                                                                                                    string query_shop_name()
                                                                                                                                    

                                                                                                                                    Query the full name of the shop.
                                                                                                                                    • Returns:
                                                                                                                                      the full name of the shop
                                                                                                                                    • See also:
                                                                                                                                      set_shop_name()
                                                                                                                                        query_shopkeeper
                                                                                                                                        string query_shopkeeper()
                                                                                                                                        

                                                                                                                                        Query the shopkeeper name.
                                                                                                                                        • Returns:
                                                                                                                                          the name of the shopkeeper
                                                                                                                                        • See also:
                                                                                                                                          set_shopkeeper()
                                                                                                                                            query_stock
                                                                                                                                            int query_stock(string items)
                                                                                                                                            

                                                                                                                                            Query number of items in stock. Determines the number of a specific item currently held by this shop.
                                                                                                                                            • Parameters:
                                                                                                                                              items - the item to query
                                                                                                                                            • Returns:
                                                                                                                                              the number of 'items' in stock
                                                                                                                                                query_storeroom
                                                                                                                                                string query_storeroom()
                                                                                                                                                

                                                                                                                                                Query the path to the storeroom.
                                                                                                                                                • Returns:
                                                                                                                                                  the path to the storeroom
                                                                                                                                                • See also:
                                                                                                                                                  set_storeroom()
                                                                                                                                                    query_supervisor
                                                                                                                                                    int query_supervisor(string player)
                                                                                                                                                    

                                                                                                                                                    Determine if this person is a supervisor of this shop.
                                                                                                                                                    • Parameters:
                                                                                                                                                      player - The player to query.
                                                                                                                                                    • Returns:
                                                                                                                                                      TRUE or FALSE
                                                                                                                                                    • See also:
                                                                                                                                                      query_employee(), query_manager() and query_retired()
                                                                                                                                                        shop_very_short
                                                                                                                                                        string shop_very_short()
                                                                                                                                                        

                                                                                                                                                        Query the very short name of the shop.
                                                                                                                                                        • Returns:
                                                                                                                                                          the very short name of the shop.
                                                                                                                                                        • See also:
                                                                                                                                                          set_very_short()

                                                                                                                                                          Protected Functions

                                                                                                                                                          These are functions that only objects inheriting the class can access.

                                                                                                                                                            add_manager_exit
                                                                                                                                                            void add_manager_exit(string dir,
                                                                                                                                                                                  string path)
                                                                                                                                                            

                                                                                                                                                            Set the exit to the managers' office. This method also modifies the exit to allow only managers to enter the managers' office.
                                                                                                                                                            • Parameters:
                                                                                                                                                              dir - the direction of the exit.
                                                                                                                                                              path - the full path and filename to the managers' office of the shop.
                                                                                                                                                            • Example:
                                                                                                                                                              add_manager_exit( "east", PATH + "tarnach's_man_office" );
                                                                                                                                                                save_emps
                                                                                                                                                                void save_emps()
                                                                                                                                                                

                                                                                                                                                                Save the employee data file. This method uses a call_out to help minimise the amount of disk activity during normal operations of the shop. The very short name of the shop must have been set previously.
                                                                                                                                                                • See also:
                                                                                                                                                                  save_me() and set_very_short()
                                                                                                                                                                    save_me
                                                                                                                                                                    void save_me()
                                                                                                                                                                    

                                                                                                                                                                    Save the shop data file. This method uses a call_out to help minimise the amount of disk activity during normal operations of the shop. The very short name of the shop must have been set previously.
                                                                                                                                                                    • See also:
                                                                                                                                                                      save_emps() and set_very_short()
                                                                                                                                                                        set_channel
                                                                                                                                                                        void set_channel(string name,
                                                                                                                                                                                         int board)
                                                                                                                                                                        

                                                                                                                                                                        Set the channel used by the shop. This sets the channel used by the employees' badges, and also the name of the board. If a board has been set-up for this shop, this function will also add the board into the room.
                                                                                                                                                                        • Parameters:
                                                                                                                                                                          name - the name of the channel.
                                                                                                                                                                          board - non-zero if a board exists for this shop.
                                                                                                                                                                        • See also:
                                                                                                                                                                          query_channel()
                                                                                                                                                                        • Example:
                                                                                                                                                                          set_channel( "tarnachcs", 0 );
                                                                                                                                                                            set_counter
                                                                                                                                                                            void set_counter(string path)
                                                                                                                                                                            

                                                                                                                                                                            Set the path to the counter. This is the full path and filename of the counter object to be used by this shop.
                                                                                                                                                                            • Parameters:
                                                                                                                                                                              path - The full path and filename to the shop's counter.
                                                                                                                                                                            • See also:
                                                                                                                                                                              query_counter()
                                                                                                                                                                            • Example:
                                                                                                                                                                              set_counter( PATH + "counter" );
                                                                                                                                                                                set_creator
                                                                                                                                                                                void set_creator(string creator)
                                                                                                                                                                                

                                                                                                                                                                                Set the creator of this shop. This person will receive all applications, complaints, suggestions etc in the absence of any managers. Default is set by CREATOR in
                                                                                                                                                                                • Parameters:
                                                                                                                                                                                  creator - The person responsible for this shop.
                                                                                                                                                                                • See also:
                                                                                                                                                                                  query_creator()
                                                                                                                                                                                • Example:
                                                                                                                                                                                  set_creator( "ringo" );
                                                                                                                                                                                    set_directions
                                                                                                                                                                                    void set_directions(string store,
                                                                                                                                                                                                        string counter,
                                                                                                                                                                                                        string shop)
                                                                                                                                                                                    

                                                                                                                                                                                    Set the directions to other parts of the shop. This function is used by the npc shopkeeper to navigate around the shop, using the exits at the given directions. These directions should be the standard "north", "south", "up" etc.
                                                                                                                                                                                    • Parameters:
                                                                                                                                                                                      store - the direction to the storeroom.
                                                                                                                                                                                      counter - the direction to the counter.
                                                                                                                                                                                      shop - the direction to the shop front.
                                                                                                                                                                                    • Example:
                                                                                                                                                                                      set_directions( "southeast", "southeast", "southeast" );
                                                                                                                                                                                        set_language
                                                                                                                                                                                        void set_language(string language)
                                                                                                                                                                                        

                                                                                                                                                                                        Set the language for all communications with this shop. This is used by signs, books, and all sorts of other readable and listenable things.
                                                                                                                                                                                        • Parameters:
                                                                                                                                                                                          language - the language of this shop.
                                                                                                                                                                                        • See also:
                                                                                                                                                                                          query_language()
                                                                                                                                                                                        • Example:
                                                                                                                                                                                          set_language( "djelian" );
                                                                                                                                                                                            set_place
                                                                                                                                                                                            void set_place(string place)
                                                                                                                                                                                            

                                                                                                                                                                                            Set the location of the shop. This is used by the money handling functions to determine which currency to use and therefore should be one of the locations returned by the query_all_places() function in /obj/handlers/money_handler
                                                                                                                                                                                            • Parameters:
                                                                                                                                                                                              place - the location of this shop.
                                                                                                                                                                                            • See also:
                                                                                                                                                                                              query_location()
                                                                                                                                                                                            • Example:
                                                                                                                                                                                              set_place( "Lancre" );
                                                                                                                                                                                                set_proprietor
                                                                                                                                                                                                void set_proprietor(string name)
                                                                                                                                                                                                

                                                                                                                                                                                                Set the name of the proprietor. A fictional name; the owner of this establishment. All administration board posts & mudmails will be sent by this name.
                                                                                                                                                                                                • Parameters:
                                                                                                                                                                                                  name - the name of the proprietor.
                                                                                                                                                                                                • See also:
                                                                                                                                                                                                  query_proprietor()
                                                                                                                                                                                                • Example:
                                                                                                                                                                                                  set_proprietor( "Tarnach Fendertwin" );
                                                                                                                                                                                                    set_shop_front
                                                                                                                                                                                                    void set_shop_front(string path)
                                                                                                                                                                                                    

                                                                                                                                                                                                    Set the path to the customer area.
                                                                                                                                                                                                    • Parameters:
                                                                                                                                                                                                      path - the full path and filename to the customer area of the shop.
                                                                                                                                                                                                    • See also:
                                                                                                                                                                                                      query_shop_front()
                                                                                                                                                                                                    • Example:
                                                                                                                                                                                                      set_shop_front( PATH + "shopfront" );
                                                                                                                                                                                                        set_shop_name
                                                                                                                                                                                                        void set_shop_name(string name)
                                                                                                                                                                                                        

                                                                                                                                                                                                        Set the full name of the shop. This is used throughout the shop, and passed to the shop front as the short description for the shop.
                                                                                                                                                                                                        • Parameters:
                                                                                                                                                                                                          name - the name of the shop.
                                                                                                                                                                                                        • See also:
                                                                                                                                                                                                          query_shop_name()
                                                                                                                                                                                                        • Example:
                                                                                                                                                                                                          set_shop_name( "Tarnach Fendertwin's Quality Consumables (Creel Springs)" );
                                                                                                                                                                                                            set_shopkeeper
                                                                                                                                                                                                            void set_shopkeeper(string path)
                                                                                                                                                                                                            

                                                                                                                                                                                                            Set the npc shopkeeper object. Call this after setting up the shop's paths (i.e. to the front room, stock room, etc.), because the shopkeeper has to know where these things are!
                                                                                                                                                                                                            • Parameters:
                                                                                                                                                                                                              path - the full path to the shopkeeper.
                                                                                                                                                                                                            • See also:
                                                                                                                                                                                                              /std/shops/player_shop/shopkeeper.c
                                                                                                                                                                                                            • Example:
                                                                                                                                                                                                              set_shopkeeper( PATH + "shopkeeper" );
                                                                                                                                                                                                                set_stock_policy
                                                                                                                                                                                                                void set_stock_policy(string desc)
                                                                                                                                                                                                                

                                                                                                                                                                                                                Set the stock's main policy. This is a general description of the items that this store deals in.
                                                                                                                                                                                                                • Parameters:
                                                                                                                                                                                                                  desc - the main stock description.
                                                                                                                                                                                                                • Example:
                                                                                                                                                                                                                  set_stock_policy( "magical spell components" );
                                                                                                                                                                                                                    set_storeroom
                                                                                                                                                                                                                    void set_storeroom(string path)
                                                                                                                                                                                                                    

                                                                                                                                                                                                                    Set the path to the storeroom.
                                                                                                                                                                                                                    • Parameters:
                                                                                                                                                                                                                      path - the full path and filename to the storeroom of the shop.
                                                                                                                                                                                                                    • See also:
                                                                                                                                                                                                                      query_storeroom()
                                                                                                                                                                                                                    • Example:
                                                                                                                                                                                                                      set_storeroom( PATH + "storeroom" );
                                                                                                                                                                                                                        set_very_short
                                                                                                                                                                                                                        void set_very_short(string name,
                                                                                                                                                                                                                                            string savedir)
                                                                                                                                                                                                                        

                                                                                                                                                                                                                        Set the very short name of the shop. This is used in many places including save-file names, setting up player-titles, and mail headers. It should be no more than around 4 or 5 chars in length. This function also restores all saved data. You must register this name by calling add_shop() in the handler.
Valid HTML 4.01 Transitional
Valid CSS!
Read More