Hello
I think i found a bug in the stock circle3.0 bpl17. At the beginning, i
thank that's a bug in my modified version. But it seems (i compiled a stock
bpl17) this bug is in the stock version.
When a mortal player(pc or npc) tell something to another, it don't find the
good player.
And I don't understand the code of ACMD(to_tell) (in act.comm.c):
ACMD(do_tell)
{
struct char_data *vict = NULL;
half_chop(argument, buf, buf2);
if (!*buf || !*buf2)
send_to_char("Who do you wish to tell what??\r\n", ch);
else if (GET_LEVEL(ch) < LVL_IMMORT && !(vict = get_player_vis(ch, buf,
FIND_CHAR_WORLD)))
send_to_char(NOPERSON, ch);
else if (GET_LEVEL(ch) >= LVL_IMMORT && !(vict = get_char_vis(ch, buf,
FIND_CHAR_WORLD)))
send_to_char(NOPERSON, ch);
else if (is_tell_ok(ch, vict))
perform_tell(ch, vict, buf2);
}
A replace this function by:
ACMD(do_tell)
{
struct char_data *vict = NULL;
half_chop(argument, buf, buf2);
if (!*buf || !*buf2)
send_to_char("Who do you wish to tell what??\r\n", ch);
else if (!(vict = get_char_vis(ch, buf, FIND_CHAR_WORLD)))
send_to_char(NOPERSON, ch);
else if (is_tell_ok(ch, vict))
perform_tell(ch, vict, buf2);
}
Now it works properly, but i still don't know if, in the stock version, it
is my fault or not
A+
Angus
--
+---------------------------------------------------------------+
| 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/03/01 PST