Track functions for Merc 2.1 Ported from SillyMUD to Merc by Robert L. Peckham (Rip) To install the enclosed functions... add the appropriate files to your makefile (skills.c, hash.c), or add the functions to other modules. Then, add the appropriate includes for the header files, (hash.h and skills.h), or append these files to the bottom of your merc.h. find_path returns an integer corresponding to direction, 0 -> north, etc, as defined by DIR_NORTH etc in merc.h. The arguments you pass to it are: int vnum room you are tracking from int vnum room you are tracking to CHAR_DATA, character who is tracking, mostly used to determine whether can pass door int distance - the number of rooms it will search for the path. A negative distance means that it will go through doors. int in_zone - fairly useless, as your calling routine ought to check whether they are in zone, but it will fail if in_zone is one and the rooms are in different zones. The function returns -1 if the track fails. (ie: no exit room, such as the Chat room, etc). Have fun, and feel free to post any cleaned up versions >:) -Robert L. Peckham (Rip) 5-18-94 (peckham@hurricane.seas.ucla.edu) (Note: skills.c also contains a test function (do_whichway), and a fairly useless function unless you impment terminators (do_sic_mob). do_whichway is a decent example of how to use find_path however...)