I installed the gohome.txt snippet from the ftp, but it doesn't
seem to be working correctly.
if an Imm does the givehome command ie:
givehome <player> <vnum> it accepts
but the problem is, it is making its own vnum
instead of assigning the given. has anyone had this problem?
here is ACMD(do_givehome)
ACMD(do_givehome)
{
struct char_data *vict;
int home;
half_chop(argument, arg, buf);
if (!*arg || !*buf || !isdigit(*buf))
{
send_to_char("Usage: givehome <player> <location>\r\n", ch);
return;
}
if (!(vict = get_char_vis(ch, arg)))
{
send_to_char(NOPERSON, ch);
return;
}
if (GET_GOHOME(vict) != 0)
{
send_to_char("Character already has a gohome, remove the old one
first!\r\n"
, ch);
return;
}
home = atoi(buf);
if (real_room(home) < 0)
{
send_to_char("Room does not exist.\r\n", ch);
return;
}
GET_GOHOME(vict) = home;
GET_LOADROOM(vict) = home;
sprintf(buf1, "You make %s a gohome!\r\n", GET_NAME(vict));
send_to_char(buf1, ch);
sprintf(buf1, "%s makes you a gohome!\r\n", GET_NAME(ch));
send_to_char(buf1, vict);
}
/* end of snippet */
Bill
Insane ramblings of an Immortal.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST