示例#1
0
        public override void FinishQuest()
        {
            base.FinishQuest(); // Defined in Quest, changes the state, stores in DB etc ...

            RemoveItem(dalikor, QuestPlayer, necklaceOfDoppelganger);

            // Give reward to player here ...
            if (QuestPlayer.HasAbilityToUseItem(recruitsBoots))
            {
                GiveItem(dalikor, QuestPlayer, recruitsBoots);
            }
            else
            {
                GiveItem(dalikor, QuestPlayer, recruitsQuiltedBoots);
            }

            QuestPlayer.GainExperience(GameLiving.eXPSource.Quest, 40, true);
            long money = Money.GetMoney(0, 0, 0, 4, Util.Random(50));

            QuestPlayer.AddMoney(money, "You recieve {0} as a reward.");
            InventoryLogging.LogInventoryAction("(QUEST;" + Name + ")", QuestPlayer, eInventoryActionType.Quest, money);

            GameEventMgr.RemoveHandler(QuestPlayer, GamePlayerEvent.UseSlot, new DOLEventHandler(PlayerUseSlot));
            GameEventMgr.RemoveHandler(QuestPlayer, GamePlayerEvent.Quit, new DOLEventHandler(PlayerLeftWorld));
        }
示例#2
0
        public override void FinishQuest()
        {
            base.FinishQuest(); // Defined in Quest, changes the state, stores in DB etc ...

            // Give reward to player here ...
            RemoveItem(masterFrederick, QuestPlayer, dustyOldMap);

            if (QuestPlayer.HasAbilityToUseItem(recruitsArms))
            {
                GiveItem(masterFrederick, QuestPlayer, recruitsArms);
            }
            else
            {
                GiveItem(masterFrederick, QuestPlayer, recruitsSleeves);
            }

            QuestPlayer.GainExperience(GameLiving.eXPSource.Quest, 240, true);
            long money = Money.GetMoney(0, 0, 0, 6, Util.Random(50));

            QuestPlayer.AddMoney(money, "You recieve {0} as a reward.");
            InventoryLogging.LogInventoryAction("(QUEST;" + Name + ")", QuestPlayer, eInventoryActionType.Quest, money);

            GameEventMgr.RemoveHandler(QuestPlayer, GamePlayerEvent.UseSlot, new DOLEventHandler(PlayerUseSlot));
            GameEventMgr.RemoveHandler(QuestPlayer, GamePlayerEvent.Quit, new DOLEventHandler(PlayerLeftWorld));
        }
示例#3
0
        public override void AbortQuest()
        {
            base.AbortQuest(); // Defined in Quest, changes the state, stores in DB etc ...

            RemoveItem(QuestPlayer, dragonflyWhip, false);
            RemoveItem(QuestPlayer, dustyOldMap, false);

            if (QuestPlayer.HasAbilityToUseItem(recruitsVest))
            {
                RemoveItem(QuestPlayer, recruitsVest, false);
            }
            else
            {
                RemoveItem(QuestPlayer, recruitsQuiltedVest, false);
            }

            deleteDragonflyHatchling();
        }
示例#4
0
        public override void AbortQuest()
        {
            base.AbortQuest(); // Defined in Quest, changes the state, stores in DB etc ...

            RemoveItem(QuestPlayer, trainerWhip, false);

            if (QuestPlayer.HasAbilityToUseItem(recruitsVest))
            {
                RemoveItem(QuestPlayer, recruitsVest, false);
            }
            else
            {
                RemoveItem(QuestPlayer, recruitsQuiltedVest, false);
            }

            deleteGrifflet();

            GameEventMgr.RemoveHandler(QuestPlayer, GamePlayerEvent.Quit, new DOLEventHandler(PlayerLeftWorld));
        }
示例#5
0
        public override void FinishQuest()
        {
            base.FinishQuest(); // Defined in Quest, changes the state, stores in DB etc ...

            // Give reward to player here ...
            if (QuestPlayer.HasAbilityToUseItem(recruitsLegs))
            {
                GiveItem(dalikor, QuestPlayer, recruitsLegs);
            }
            else
            {
                GiveItem(dalikor, QuestPlayer, recruitsPants);
            }

            QuestPlayer.GainExperience(GameLiving.eXPSource.Quest, 240, true);
            long money = Money.GetMoney(0, 0, 0, 5, Util.Random(50));

            QuestPlayer.AddMoney(money, LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Mid.Frontiers.FinishQuest.Text1"));
            InventoryLogging.LogInventoryAction("(QUEST;" + Name + ")", QuestPlayer, eInventoryActionType.Quest, money);
        }