*************************************************************** *Liquid.doc edit files constants.c structs.h olc.h made 7/1/98* *************************************************************** *How to create new liquid types for circlemud. Doc by bosstone* *of Realitymud bosstone1@earthling.net Feel free to use this * *to help you edit your circlemud code.I will not provide email* *support for anything. Thanks -Bosstone * *************************************************************** -=-=-=-=-=-=-=-=-= Open file: constants.c -=-=-=-=-=-=-=-=-= ##############search for################## /* LIQ_x */ const char *drinks[] = { "water", "beer", "wine", "ale", "dark ale", "whisky", "lemonade", "firebreather", "local speciality", "slime mold juice", "milk", "tea", "coffee", "blood", "salt water", "clear water", "\n" }; ***********Change To**************** /* LIQ_x */ const char *drinks[] = { "water", "beer", "wine", "ale", "dark ale", "whisky", "lemonade", "firebreather", "local speciality", "slime mold juice", "milk", "tea", "coffee", "blood", "salt water", "clear water", "coke", "pepsi", "mountain dew", "sprite", "7-up", "surge", "slice", "dr.pepper", "\n" }; ############### Search For ################## /* one-word alias for each drink */ const char *drinknames[] = { "water", "beer", "wine", "ale", "ale", "whisky", "lemonade", "firebreather", "local", "juice", "milk", "tea", "coffee", "blood", "salt", "water", "\n" }; *************** Change To *************** /* one-word alias for each drink */ const char *drinknames[] = { "water", "beer", "wine", "ale", "ale", "whisky", "lemonade", "firebreather", "local", "juice", "milk", "tea", "coffee", "blood", "salt", "water", "coke", "pepsi", "mountain dew", "sprite", "7-up", "surge", "slice", "dr.pepper", "\n" }; ##################### Search For ###################### const int drink_aff[][3] = { {0, 1, 10}, {3, 2, 5}, {5, 2, 5}, {2, 2, 5}, {1, 2, 5}, {6, 1, 4}, {0, 1, 8}, {10, 0, 0}, {3, 3, 3}, {0, 4, -8}, {0, 3, 6}, {0, 1, 6}, {0, 1, 6}, {0, 2, -1}, {0, 1, -2}, {0, 0, 13} }; ****************** Change to ****************** const int drink_aff[][3] = { {0, 1, 10}, {3, 2, 5}, {5, 2, 5}, {2, 2, 5}, {1, 2, 5}, {6, 1, 4}, {0, 1, 8}, {10, 0, 0}, {3, 3, 3}, {0, 4, -8}, {0, 3, 6}, {0, 1, 6}, {0, 1, 6}, {0, 2, -1}, {0, 1, -2}, {0, 0, 13}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0} }; &&&&&&&&& NOTE &&&&&&&&&&& {0, 1, 0}, means 0-hunger 1-thirst 0-drunk [In other words takes off 1 hr of thirst] ################## Search For ##################### /* color of the various drinks */ const char *color_liquid[] = { "clear", "brown", "clear", "brown", "dark", "golden", "red", "green", "clear", "light green", "white", "brown", "black", "red", "clear", "crystal clear", }; **************** Change To *************** /* color of the various drinks */ const char *color_liquid[] = { "clear", "brown", "clear", "brown", "dark", "golden", "red", "green", "clear", "light green", "white", "brown", "black", "red", "clear", "crystal clear", "brown", "clear", "brown", "yellow", "brown", "yellow", "brown", }; -=-=-=-=-=-=-=-=-=-=- Close and save file constants.c -=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=- open file olc.h (if you have olc.h) -=-=-=-=-=-=-=-=-=-=- #################### Search For ##################### #define NUM_LIQ_TYPES XX (xx is the number) ********************change to ************************ #define NUM_LIQ_TYPES XX (the old number + how many new ones you added) -=-=-=-=-=-=-=-=-=-=- close and save file olc.h -=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=- open file structs.h -=-=-=-==-=-=-==-=-=- ###################### Search for ####################### #define LIQ_CLEARWATER 15 ***************** Change to ****************** #define LIQ_CLEARWATER 15 #define LIQ_COKE 16 #define LIQ_PEPSI 17 #define LIQ_MOUNTAINDEW 18 /*(*note* #'s can be diff)*/ #define LIQ_SPRITE 19 #define LIQ_SEVENUP 20 #define LIQ_SURGE 21 #define LIQ_SLICE 22 #define LIQ_DRPEPPER 23 -=-=-=-=-=-=--=-=-= close and save file: structs.h -=-=-=-=-=-=-=-=-=- compile and reboot - Bosstone