Well I got Vassago's Quest Code to work on my rom24b6. However, theres a problem. Whenever the questmaster sends me on a quest to kill a mobile, it dosent work. Say if I get a quest to kill a hobbit. I kill every single hobbit in the game, and it still dosent let me complete my quest. Says you have not completed your quest. Any help? Here is a portion of my quest.c file, the part where it sends players to kill a mob.
--------------------------------------------- /* Quest to kill a mob */
else
{
switch(number_range(0,1))
{
case 0:
sprintf(buf, "It seems someone has been doing alot of killing lately. This is not good for evil OR good.",victim->short_descr);
do_say(questman, buf);
sprintf(buf, "This problem must be corrected.");
do_say(questman, buf);
break;
case 1:
sprintf(buf, "It seems %s has been doing alot of killing lately. This is not good for evil OR good.",victim->short_descr);
do_say(questman, buf);
sprintf(buf, "Since last night, %s has murdered %d people!",victim->short_descr, number_range(2,20));
do_say(questman, buf);
do_say(questman,"This must be stopped. I look to you to complete this task!");
break;
}
if (room->name != NULL)
{
sprintf(buf, "You can find %s somewhere within the vicinity of %s!",victim->short_descr,room->name);
do_say(questman, buf);
sprintf(buf, "That location is in the general area of %s.",room->area->name);
do_say(questman, buf);
}
ch->pcdata->questmob = victim->pIndexData->vnum;
}
return;
}
------------------------------------
Not sure whats wrong, any help would be most appreciated.
--------------------------------------------- /* Quest to kill a mob */
else
{
switch(number_range(0,1))
{
case 0:
sprintf(buf, "It seems someone has been doing alot of killing lately. This is not good for evil OR good.",victim->short_descr);
do_say(questman, buf);
sprintf(buf, "This problem must be corrected.");
do_say(questman, buf);
break;
case 1:
sprintf(buf, "It seems %s has been doing alot of killing lately. This is not good for evil OR good.",victim->short_descr);
do_say(questman, buf);
sprintf(buf, "Since last night, %s has murdered %d people!",victim->short_descr, number_range(2,20));
do_say(questman, buf);
do_say(questman,"This must be stopped. I look to you to complete this task!");
break;
}
if (room->name != NULL)
{
sprintf(buf, "You can find %s somewhere within the vicinity of %s!",victim->short_descr,room->name);
do_say(questman, buf);
sprintf(buf, "That location is in the general area of %s.",room->area->name);
do_say(questman, buf);
}
ch->pcdata->questmob = victim->pIndexData->vnum;
}
return;
}
------------------------------------
Not sure whats wrong, any help would be most appreciated.