You are missing a pair of {} ----- Original Message ----- From: "Zizazat Lazuras" <zizazat@HOTMAIL.COM> > switch (GET_CLASS(ch)) { > case CLASS_THIEF: > found = FALSE; > if (GET_POS(ch) == POS_STANDING && (!MOB_FLAGGED(ch, MOB_SPEC)) ) { > for (vict = world[ch->in_room].people; vict && !found; vict = > vict->next_in_room) ADD { > if (vict == ch) { > act("$n thinks stealing from self is a good idea.", FALSE, ch, > 0, 0, TO_ROOM); > continue; > } > if (vict && GET_LEVEL(vict) < LVL_IMMORT && !number(0, 4) ) { > npc_steal(ch, vict); > found = TRUE; > } > } ADD } > break; > } Now your FOR statement encompasses both IF statements instead of just the first IF statement. Hope this helps. -- +---------------------------------------------------------------+ | 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