} else if (ch->pcdata->questmob > 0)
{
CHAR_DATA *mob;
/* the problem is right here get_char_vnum is not a function that is
available. i've tried writing my own but i'm just not getting it right. I
was wondering if one of you might be able to point me in the right direction
Or perhaps theirs anoter way of writing it that i'm overlooking either way
let me know */
- if ((mob = get_char_vnum(ch->pcdata->questmob)) == NULL)
+ for(mob = char_list; mob != NULL; mob = mob->next)
+ if(IS_NPC(mob) && mob->pIndexData->vnum ==
ch->pcdata->questmob)
+ found == TRUE;
+
+ if (!found)
end_quest(ch, 5);
else
{
ch->pcdata->questloc = mob->in_room->vnum;
do_quest(ch, "info");
chsend("\n\r", ch);
}
}
}
+---------------------------+
| Ryan Jennings aka Markanth|
| Devils Lament MUD: |
| telnet://dlmud.com:3778 |
| http://www.dlmud.com/ |
+---------------------------+