Re: [NEWBIE][CODE] locate object

From: Methos (methos@first-rule.net)
Date: 02/06/03


From: "Michael Toomey" <mat70@TXCYBER.COM>
> if (world[i->carried_by->in_room].zone != world[ch->in_room].zone)
>   continue;

Well too simplify things this is what I did and though I believe it should
work, it either crashes
 the mud or doesnt work at all.

if (world[i->in_room].zone != world[ch->in_room].zone)
  continue;
if (world[i->carried_by->in_room].zone != world[ch->in_room].zone)
  continue;
if (world[i->worn_by->in_room].zone != world[ch->in_room].zone)
  continue;
if (world[i->in_obj->in_room].zone != world[ch->in_room].zone)
  continue;

Thanks for the help but Ive already tried that approach. If I have the first
two lines of that code in, it does
actually find objects on the ground, only in the zone your standing in. But
if I add the rest it either crashes
or finds nothing at all when the spell is cast.

Thanks,
Kenneth Southern

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT