22 Jul, 2009, Xrakisis wrote in the 1st comment:
Votes: 0
Hi, The account system was recently put into my ROM mud and now when a player tries to kill a mob…

A lizard slithers up to you.
A snail is trying to get out of your way.

<20/20hp 100/100m 99/100mv (0exp)>
k liz
Join a clan if you want to kill players.

its like the mud thinks NPC's are PC's.. anyone know why this would happen?
-Xrak
22 Jul, 2009, Zeno wrote in the 2nd comment:
Votes: 0
Grep for that message in the source.
22 Jul, 2009, Xrakisis wrote in the 3rd comment:
Votes: 0
bool is_safe (CHAR_DATA * ch, CHAR_DATA * victim)
{
if (victim->in_room == NULL || ch->in_room == NULL)
return TRUE;

if (victim->fighting == ch || victim == ch)
return FALSE;

if (IS_IMMORTAL (ch) && ch->level > LEVEL_IMMORTAL)
return FALSE;

/* killing mobiles */
if (IS_NPC (victim))
{

/* safe room? */
if (IS_SET (victim->in_room->room_flags, ROOM_SAFE))
{
send_to_char ("Not in this room.\n\r", ch);
return TRUE;
}

if (victim->pIndexData->pShop != NULL)
{
send_to_char ("The shopkeeper wouldn't like that.\n\r", ch);
return TRUE;
}

/* no killing healers, trainers, etc */
if (IS_SET (victim->act, ACT_TRAIN)
|| IS_SET (victim->act, ACT_PRACTICE)
|| IS_SET (victim->act, ACT_IS_HEALER)
|| IS_SET (victim->act, ACT_IS_CHANGER))
{
send_to_char ("I don't think Mota would approve.\n\r", ch);
return TRUE;
}

if (!IS_NPC (ch))
{
/* no pets */
if (IS_SET (victim->act, ACT_PET))
{
act ("But $N looks so cute and cuddly…",
ch, NULL, victim, TO_CHAR);
return TRUE;
}

/* no charmed creatures unless owner */
if (IS_AFFECTED (victim, AFF_CHARM) && ch != victim->master)
{
send_to_char ("You don't own that monster.\n\r", ch);
return TRUE;
}
}
}
/* killing players */
else
{
/* NPC doing the killing */
if (IS_NPC (ch))
{
/* safe room check */
if (IS_SET (victim->in_room->room_flags, ROOM_SAFE))
{
send_to_char ("Not in this room.\n\r", ch);
return TRUE;
}

/* charmed mobs and pets cannot attack players while owned */
if (IS_AFFECTED (ch, AFF_CHARM) && ch->master != NULL
&& ch->master->fighting != victim)
{
send_to_char ("Players are your friends!\n\r", ch);
return TRUE;
}
}
/* player doing the killing */
else
{
if (!is_clan (ch))
{
send_to_char ("Join a clan if you want to kill players.\n\r",
ch);
return TRUE;
}

if (IS_SET (victim->act, PLR_KILLER)
|| IS_SET (victim->act, PLR_THIEF))
return FALSE;

if (!is_clan (victim))
{
send_to_char ("They aren't in a clan, leave them alone.\n\r",
ch);
return TRUE;
}

if (ch->level > victim->level + 8)
{
send_to_char ("Pick on someone your own size.\n\r", ch);
return TRUE;
}
}
}
return FALSE;
}
22 Jul, 2009, Tijer wrote in the 4th comment:
Votes: 0
just connected to your mud and it doesnt show prompts, have you added a new field to a structure and not done a clean compile? (showed prompts last night when i connected)
22 Jul, 2009, Xrakisis wrote in the 5th comment:
Votes: 0
i added ch->disease and ch->blood
22 Jul, 2009, Xrakisis wrote in the 6th comment:
Votes: 0
I fixed it.. thanks guys.. im not sure why what i did fixed it but its fixed..
0.0/6