I'm not entirely sure what you mean with so little of information, but it sounds
like you aren't setting the type right.
I.E. this is wrong:
                  AFFECT_DATA af;
                  af.where = TO_AFFECTS;
                  af.type = 0; /*should be gsn_nagabite*/
                  af.level = ch->level;
                  int jake;
                  jake = (6 - (victim->size *2)) + 18;
                  af.duration = UMIN(30, jake);
                  af.location = APPLY_STR;
                  af.modifier = -3;
                  af.bitvector = AFF_NAGAPOISON;
                  affect_to_char (victim, &af);

Why? Type = 0, and if you look up the first entry in const.c, it is 'reserved'.
Set your type to the gsn of your spell/skill.
Here's bless, for example:

    AFFECT_DATA af;
    af.where = TO_AFFECTS;
    af.type = sn;
    af.level = level;
    af.duration = 6 + level;
    af.location = APPLY_HITROLL;
    af.modifier = level / 8;
    af.bitvector = 0;
    affect_to_char (victim, &af);

    af.location = APPLY_SAVING_SPELL;
    af.modifier = 0 - level / 8;
    affect_to_char (victim, &af);

And yes, obviously, you can stack affects onto chars using the same type.


----- Original Message -----
From: "Nicholas Hutzell" <[EMAIL PROTECTED]>
To: "ROM" <[email protected]>
Sent: Friday, July 19, 2002 9:47 PM
Subject: affect's


> I am having a problem with spells in the affect list
> showing up as "reserved". The are all fine in magic.c
> and all the setting for the affects list. It only
> seems to do it when i try to set the affect on the
> pfile in the code. Anyone have an idea what could be
> causing this??
>
> __________________________________________________


Reply via email to