Re: [newbie][code] act question

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 08/11/01


robert tavares wrote:
>
> In Spells.c
>
>  act("$p is filled.", FALSE, ch, obj, 0, TO_CHAR);
>
> I understand what the act("$p is filled.", ..........
> part does. but the rest has me a tad baffled as to its purpose.
>
> Anyone care to assist me in clarifying this?

Check the documentation that came with your CircleMUD.  There's an
entire file dedicated to explaining this one function.

> Also in spells.c
>
>   SET_BIT(GET_OBJ_EXTRA(obj), ITEM_MAGIC);
>
>   obj->affected[0].location = APPLY_HITROLL;
>   obj->affected[0].modifier = 1 + (level >= 18);
>
>   obj->affected[1].location = APPLY_DAMROLL;
>   obj->affected[1].modifier = 1 + (level >= 20);
>
> When ppl change the # of max lvls in their muds. do you guys scale this as well? just an idle preference question.

You can but you don't have to.

> In spec_proc.c
>
>       const char close_path[] =
>  "W3a3003b33000c111d0d111CE333333CE22c222112212111a1S.";
>
> totally befuddled...
>
> never seen anything resembling this before.

You can use grep (or find files if on Wondoze) to search for other
places where this constant is used and follow the code there to see what
it's used for.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST