--- [EMAIL PROTECTED] wrote:
> Does anyone know of a Rom snippet that would give
> Immunity to fire or cold or such for a certain
> amount of
> time (to a person)? If not, do you have any advice
> on
> how to make such a spell?
>
how about this
void somespell(yadda)
{
/* normal spell stuff and variables here */
af.type = skill_lookup("some spell");
af.level = ch->level;
af.duration = number_fuzzy(ch->level / 3);
af.where = TO_RESIST;
af.modifier = 0;
af.location = APPLY_NONE;
af.bitvector = RES_FIRE;
send_to_char("You no longer fear fire.\n\r",ch);
if (!IS_SET(ch->res_flags,RES_FIRE))
affect_to_char(ch,&af);
}
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com