We have zone flags in and am trying to get them to work, unfortunetly, im not very sure how to actually check if the flag is set correctly in utils.h: #define ZONE_FLAGS(loc) (zone_table[(loc)].zone_flags) #define ZONE_FLAGGED(loc, flag) (IS_SET(ZONE_FLAGS(loc), (flag))) an example of trying to use the zone flags: if (ZONE_FLAGGED(victim->in_room/100, ZONE_NORECALL)) { send_to_char("1 You can't recall from this area.\r\n", ch); return; } if (ZONE_FLAGGED(victim->in_room, ZONE_NORECALL)) { send_to_char("2 You can't recall from this area.\r\n", ch); return; } if (ZONE_FLAGGED(victim->in_room/10, ZONE_NORECALL)) { send_to_char("3 You can't recall from this area.\r\n", ch); return; } all of these really dont work correctly, i was able to recall out of zones that should not have been able to, and i couldnt recall from zones that were normal, i used combos and tests of the above 3 and it didnt lead to anything helpful Thanks for any input on this -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST