Ok, I think I have it all pretty much going thanks to Mr.Greer, now I
just am not seeing characters....it just skips down...anyone see my
problem??
anthony
PS - What should I change the IN_ROOM(ch) = is_in; too? just get rid of
it?
<BEGIN CODE>
ACMD(do_scan)
{
struct char_data *i;
int is_in, dir, dis, maxdis, found = 0;
if (IS_AFFECTED(ch, AFF_BLIND)) {
send_to_char("You can't see a damn thing! You are
blind!\r\n",ch);
return;
}
is_in = ch->in_room;
for (dir = 0; dir < NUM_OF_DIRS; dir++) {
if (W_EXIT(EXIT(ch, dir)->to_room, dir)) {
for (i = world[ch->in_room].people; i; i = i->next_in_room) {
if (ch != i && CAN_SEE(ch, i)) {
sprintf(buf, "Looking %s:\r\n%s is here.\r\n",
dirs[dir], GET_NAME(i));
send_to_char(buf, ch);
found++;
}
}
}
}
if (found == 0)
send_to_char("Nobody is around.\r\n",ch);
IN_ROOM(ch) = is_in;
}
<END CODE>
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST