Edward Felch scrawled the following:
> 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;
> }
These won't work because the room number for in_room is an rnum (yech).
if (ZONE_FLAGGED(victim->in_room->zone, ZONE_NORECALL)) {
should work.
(not sure if its '->' or '.' before zone, but you get the idea. Rnums have
little or nothing to do with the vnums you built them with :)
--
Anton Graham aka Dionysus Implementor of Etruria
bladehawke.darktech.org:4000
Death is only the beginning.... -- Not Open to the Public --
--
+---------------------------------------------------------------+
| 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