Re: [newbie] [code] Mising patches:

From: Eduo (eduo@ciateq.mx)
Date: 11/30/98


On Sun, 29 Nov 1998, Christian Loth wrote:

> I think this is a nice and easy coding exercise...try the following
> 'recipes':

Maybe it is precisely what you wanted to do, since it is not as hard:

> > AutoLoot
> Browse through the contents of the corpse, and add the stuff to the
> players inventory. Check the code of 'get all' to get some
> inspiriation.

I'd put the command "take all corpse" right after a killing, executed by
the one that did the killing.

> > AutoAssist
> With every pulse of violence check all members of a group; if a group
> member is fighting let them assist. Check the code of 'assist' to get
> inspiration.

The group member check is nice, I had only seen pure autoassist (cityguard
style).

> > Autosplit (automatically break up taken gold between the group)
> Get the gold of the mob, and devide it by the amount of people in the
> group. Do the same operation as modulo, and give that result to the
> one who killed the mob.

There is the command "split", so what you have to do is check whenever you
get money from a corpse (a subset from the above "get all corpse") and if
there is money use the "split" command.

> > Also, I have looked at what I could find for race/clan codes, but they all
> > apply to older versions of circlemud (latest i saw applied to patch Level
> > 12). Does anyone have some race and/or clan patches that will apply to

> Look through the patches, and try to get their idea. Then try to
> 'handpatch' your source.

The easiest way to add clans and races is just to duplicate the class code
(or the relevant parts of it) so you make another iteration of separation
between mud playuers. Things like an advanced clan system (with ranks,
descriptions and the like) or an advanced race system (with different
physical attributes, like wings, tentacles or the like) are higher in the
coding evolutionary scale of the mud..:)

> This is a good exercise, and if you take your MUD somewhat serious,
> sooner or later you need to add code by yourself anyways. Code as in
> own code :)

I agree... In the worst case see what other have done, understand it and
maybe then adapt it or make your own version. Other people's solution may
not suit you..:)

Eduo

---------------------------------------------------------------------------
Eduardo Gutierrez de Oliveira   Mythago//On   eduo@ciateq.mx   ICQ# 3824675
 Centro de Investigacion  CIATEQ,A.C. -- MEXICO  Research Center Queretaro
General Electric Center of Excellence   -    Manager of Information Systems


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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