Help Added Weekly Quests

P1anetEarth

Loyal Member
Loyal Member
Apr 10, 2018
123
31
45
I know your able to set Daily Quests but i'm wondering would we be able to make it so it doest Weekly Quests as well if so please can someone tell me how

Kind Regards :)

Yes I know the title says "Added" and not "Adding" ahahha
 
Last edited:

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
search for "QuestType.Daily" then see how it works and add something similar for weeks.

also you should really be posting help questions about crystal in the crystal help section.
 
  • Like
Reactions: Sanjian
Upvote 0

Jev

ғᴜᴄᴋɪɴɢ ᴊᴇᴠ
Staff member
Moderator
May 16, 2017
3,350
20
1,896
175
Worthing, West Sussex
search for "QuestType.Daily" then see how it works and add something similar for weeks.

also you should really be posting help questions about crystal in the crystal help section.
I have added these;

Enumus.cs

Code:
public enum QuestType : byte
{
    General = 0,
    Daily = 1,
    Repeatable = 2,
    Story = 3,
    Weekly = 4,

Envir.cs

Code:
private void ClearWeeklyQuests(CharacterInfo info)
        {
            foreach (var quest in QuestInfoList)
            {
                if (quest.Type != QuestType.Weekly) continue;

                for (var i = 0; i < info.CompletedQuests.Count; i++)
                {
                    if (info.CompletedQuests[i] != quest.Index) continue;

                    info.CompletedQuests.RemoveAt(i);
                }
}

            info.Player?.GetCompletedQuests();

It does show up in the quest options in the database but don't feel that it would work.
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
are you calling ClearWeeklyQuests in the correct place too?

why dont you think it would work?
 
Upvote 0