Re: [CODE] Unique Guildmasters on a per class spiel

From: Daniel Koepke (
Date: 02/05/97

On Wed, 5 Feb 1997, pjh wrote:

> I am not much of one who has studied all the philosophies behind memory
> usage and efficiency in code.  Pretty much if it works I smile.  But when
> i thinking about coding in 'class_switching' in which it checks for what
> class the guildmaster is a part of (or master to) in a routine I got
> stumped and in my ever-vescent ability have decided that making 8
> seperated SPECIAL(guild_thief) SPECIAL(guild_fighter) etc masters is the
> easiest and most obvious way of doing this.  BUttttttt it doesn't seem to
> be the most efficient.  Any ideas on a superior way of doing it?  I just
> simply want it so that the guildmaster will check to see what class_type
> that it is.  Thanks for any help. Preciate it.

Using e-procs (is that what they're called?) you can assign them a
class.  Just create the new mobile classes (#define CLASS_MOB_MAGE,
etc.) along with the existing (unused?) mobile classes.  Then you
can just do a GET_CLASS on the mobile. :)

Daniel Koepke
Forgive me father, for I am sin.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST