Quick question for those who have pfiles and AutoQuest by Mike Steinmann. @@ -1825,7 +1842,13 @@ void store_to_char(struct char_file_u * ch->player.weight = st->weight; ch->player.height = st->height; - + + ch->current_quest = st->current_quest; + ch->num_completed_quests = -1; + + for (i=0; st->completed_quests[i] != -1; i++) + add_completed_quest(ch, st->completed_quests[i]); + ch->real_abils = st->abilities; ch->aff_abils = st->abilities; ch->points = st->points; @@ -1937,7 +1960,14 @@ void char_to_store(struct char_data * ch st->points.armor = 100; st->points.hitroll = 0; st->points.damroll = 0; - + + st->current_quest = ch->current_quest; + + for (i=0; i < MAX_COMPLETED_QUESTS;i++) + st->completed_quests[i] = -1; + for (i=0; i <= ch->num_completed_quests; i++) + st->completed_quests[i] = ch->completed_quests[i]; + if (GET_TITLE(ch)) strcpy(st->title, GET_TITLE(ch)); else How did you go about converting this to pfile? plus what did you use for GET_QUEST.... stuff.. Thanks, Shay +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT