Gr 'weaponsmaster'
Affc 'focus' 6 27 19 0 0 2
End
Gr 'weaponsmaster'
End
interp.h"(140,20): DECLARE_DO_FUN( do_focus );
merc.h"(1012,13): #define AFF_FOCUS (B)
merc.h"(2100,20): extern sh_int gsn_focus;
act_info.c"(3119,9): void do_focus (CHAR_DATA * ch, char *argument)
act_info.c"(3123,31): if (IS_AFFECTED2 (ch, AFF_FOCUS))
act_info.c"(3125,34): send_to_char ("You are already focusing on your surroundings.\r\n", ch);
act_info.c"(3129,32): send_to_char ("You attempt to focus on your surroundings.\r\n", ch);
act_info.c"(3131,48): if (number_percent () < get_skill (ch, gsn_focus))
act_info.c"(3133,29): check_improve (ch, gsn_focus, TRUE, 3);
act_info.c"(3135,23): af.type = gsn_focus;
act_info.c"(3140,28): af.bitvector = AFF_FOCUS;
act_info.c"(3145,32): check_improve (ch, gsn_focus, FALSE, 3);
act_info.c"(3146,29): send_to_char ("You try to focus but get distracted.\r\n", ch);
act_move.c"(280,63): || (IS_AFFECTED2 (ch, AFF_CREEP) && IS_AFFECTED2 (fch, AFF_FOCUS))))
act_move.c"(299,63): || (IS_AFFECTED2 (ch, AFF_CREEP) && IS_AFFECTED2 (fch, AFF_FOCUS))))
const.c"(2051,7): "focus", {53, 53, 1, 12}, {0, 0, 4, 6},
const.c"(2053,11): &gsn_focus, SLOT (0), 0, 12,
const.c"(2054,29): "", "You begin to lose focus on your surroundings.", ""},
db.c"(161,12): sh_int gsn_focus;
handler.c"(2713,30): && (!IS_AFFECTED2 (ch, AFF_FOCUS)
handler.c"(2903,19): if (vector & AFF_FOCUS)
handler.c"(2904,24): strcat (buf, " focus");
interp.c"(271,7): {"focus", do_focus, POS_STANDING, 0, LOG_NORMAL, 1},
tables.c"(170,4): {"focus", B, TRUE},
struct (spell effect) is either not being saved or loaded correctly. Show us the code for
saving (should be at almost the end of fwrite_char() in save.c, probably a loop using paf
and writing with the tag of Affc) and loading (in fread_char() in save.c the Affc if in the A
case). Other then this, I would look in your pfile and see if you have the Affc line (should
be right before the objects). If that looks ok, then I would check if you have some code
stripping the spell effect but not clearing the affected2_by flag.
Hmmm, I think it may be as you said.. this is what I have at the end of fread_char() in save.c:
What should it look like? Just duplicate and make it "ch->affected2" and "Affc2" ?