> for (i = character_list; i; i = i->next)
> for (af = i->affected; af; af = next) {
> next = af->next;
> if (af->duration >= 1) {
> af->duration--;
> > if (af->duration == 1) {
> > if (IS_AFFECTED(ch, AFF_FLY))
> > send_to_char("The flying spell is wearing off.", ch);
> > if (IS_AFFECTED(ch, AFF_WATERWALK))
> > send_to_char("The waterwalk spell is wearing off.", ch);
"ch" is designated "i" in this case. you may also want a carriage return
after these warning messages. |
|
if (IS_AFFECTED(i, AFF_FLY))
send_to_char("The flying spell is wearing off.\r\n", i);
if (IS_AFFECTED(i, AFF_WATERWALK))
send_to_char("The waterwalk spell is wearing off.\r\n", i);
For the death, I think what you want may be die(i); ..but best to check
the sequence ..in fight.c I believe it is..look for die and raw_kill. It's
been a while since I've seen it..
-K
This archive was generated by hypermail 2b30 : 12/07/00 PST