Re: [CODE] Call Dragon Spell

From: George (greerga@CIRCLEMUD.ORG)
Date: 04/27/98


On Tue, 28 Apr 1998, Carlo Mocci wrote:

>  act("Evochi un potente drago e ci sali sopra, preparandoti a viaggiare.",
>TRUE, ch, 0, 0, TO_CHAR);

'Tis best to use send_to_char() when not using any $ flags.

>    char_to_room(ch, real_room(ASTRAL_TARGET_ROOM));

Bad things will happen if that room doesn't exist.  You might want to
check for it just in case, like mini-mud mode may not have it.

>    for (i=0; i<1000; i++) stanza[i]=FALSE;

Memset() is your friend.

>    if ( (IS_AFFECTED(k, AFF_GROUP)) && (k->in_room==room_cast) &&
>(GET_POS(k)>= POS_STANDING) )

AFF_FLAGGED is preferred over IS_AFFECTED because it fits in with the rest
of the macros like ROOM_FLAGGED and MOB_FLAGGED.  They do exactly the same
thing though.

Now if only I could read Italian...

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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