Quest Code and Marriage code with Quickmud

Posted by Trommerse on Sat 31 May 2003 09:18 PM — 3 posts, 14,625 views.

#0
For the quest code, the only prob is using "quest request", the error in game is that it acts like you are waiting for the next quest. Once you request a quest, it immidiately does a check on how much time you have left, and then displays You can quest now message.
Quote:
'Quest Request' doesn't go through correctly, something to do with recognizing that they aren't on a quest. 'nextquest' is equal to 0 when the quest is requested.


For the marriage code (this is probably simple) when a spouse uses spousetalk, it says they aren't online right after it. The other spouse who is to recieve the message doesnt recieve the message.
Quote:
'spousetalk' appears to not be detecting the other spouse being online properly.
#1
If you have any ideas on how to fix the prob, or want to see any specific code (its a lot of code). Please reply, thanks in advance to any help given.
#2
This is the code, i am still stuck on this:


for ( d = descriptor_list; d != NULL; d = d->next ) {
CHAR_DATA *victim;
victim = (d->original != NULL) ? d->original : d->character;

// This is the problem, it keeps on going
// past this if statement. I tried removing the
// d->connected part and it still doesn't work.
if ( d->connected == CON_PLAYING && d->character->name == ch->pcdata->spouse_name)

What i'm trying to do is have the code figure out if the spouse is online, if they are send the message (but it never goes through even when the spouse is online).