Hallo:-) > >and does anyone know how to give them permanent effects, like > >infravision? My solution: in class.c: in do_advance(): before save_char(ch, NOWHERE) /*VladoN - 230401 - infravision for dwarf, assasin */ if (GET_RACE(ch) == RACE_DWARF || GET_CLASS(ch) == CLASS_ASSASIN) { af.type = SPELL_INFRAVISION; af.modifier = 0; af.location = APPLY_NONE; af.duration = -1; af.bitvector = AFF_INFRAVISION; affect_from_char(ch, SPELL_INFRAVISION); affect_join(ch, &af, TRUE, FALSE, FALSE, FALSE); } and in fight.c: raw_kill(): before death_cry(ch) /*VladoN - 260401 - when player killed - return infravision to PC */ if (!IS_NPC(ch) && (GET_RACE(ch) == RACE_DWARF || GET_CLASS(ch) == CLASS_ASSASIN)) { af.type = SPELL_INFRAVISION; af.modifier = 0; af.location = APPLY_NONE; af.duration = -1; af.bitvector = AFF_INFRAVISION; affect_join(ch, &af, TRUE, FALSE, FALSE, FALSE); } I'm using modified bpl18. VladoN This email has been swept by MIMEsweeper for the presence of computer viruses. -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT