Пример #1
0
        public static void LoadQuests()
        {
            allquests = new Dictionary <uint, Quest>();

            SpeakQuest quest1 = new SpeakQuest((uint)1)
            {
                QUEST_ID          = 1,
                name              = "Chega ai parceiro",
                Description       = "Fale com Lapa",
                RewardDescription = "Aprovação em LP II",
                GainedGold        = 50,
                GainedXP          = 100
            };

            allquests.Add(1, quest1);

            SpeakQuest quest2 = new SpeakQuest((uint)2)
            {
                QUEST_ID          = 2,
                name              = "Conheça o mundo",
                Description       = "Veja a Quimera debaixo da plataforma",
                RewardDescription = "Ouro e Joias",
                GainedGold        = 10,
                GainedXP          = 1000,
                GainedItem        = new Inventory_Scripts.Slot(7, 10)
            };

            allquests.Add(2, quest2);
        }
Пример #2
0
        public void EventoFalaComNPCDaQuest(object source, EventArgs arg, uint id)
        {
            SpeakQuest generic = new SpeakQuest(id);

            foreach (Quest q in allQuests)
            {
                if (q.QUEST_ID == generic.QUEST_ID)
                {
                    generic            = (SpeakQuest)q;
                    generic.isComplete = true;
                    this.actualQuest   = generic;
                }
            }
        }