On Thu, 18 Dec 1997, Chuck Carson wrote:
>for (vict = world[ch->in_room].people ; vict && !found; vict = >vict_next) {
> if (IS_NPC(vict) || !CAN_SEE(ch, vict) || PRF_FLAGGED(vict, PRF_NOHASSLE))
> continue;
> if (MOB_FLAGGED(ch, MOB_WIMPY) && AWAKE(vict))
> continue;
> if (!MOB_FLAGGED(ch, MOB_AGGR_TO_ALIGN) ||
> (MOB_FLAGGED(ch, MOB_AGGR_EVIL) && IS_EVIL(vict)) ||
> (MOB_FLAGGED(ch, MOB_AGGR_NEUTRAL) && IS_NEUTRAL(vict)) ||
> (MOB_FLAGGED(ch, MOB_AGGR_GOOD) && IS_GOOD(vict))) {
> hit(ch, vict, TYPE_UNDEFINED);
> found = TRUE;
> vict_next = vict->next_in_room;
> }
>}
Take a look at your for loop 'vict = vict_next', now look at where you have
to be to have 'vict_next' assigned to be something valid. (Hint: You're one
} too early.)
>Source file is more recent than executable.
Not good.
>95 for (vict = world[ch->in_room].people ; vict && !found; vict =
>vict_next) {
try : 'info locals'
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST