Ejemplo n.º 1
0
        public ShippingCrate(ProfessionalFisherQuest quest)
        {
            m_Quest = quest;
            Movable = false;

            LootType = LootType.Blessed;
        }
Ejemplo n.º 2
0
        public override void OnTalk(PlayerMobile player)
        {
            int      distance = 100;
            BaseBoat boat     = FishQuestHelper.GetBoat(player);

            if (boat == null)
            {
                SayTo(player, 1116514); //Bring yer ship around, I might have some work for ye!);
            }
            else
            {
                bool inRange = InRange(boat.Location, distance) && boat.Map == Map;

                if (!FishQuestHelper.HasFishQuest(player, this, inRange))
                {
                    FishMonger monger = FishQuestHelper.GetRandomMonger(player, this);

                    if (monger == null)
                    {
                        SayTo(player, "It seems my fellow fish mongers are on vacation.  Try again later, or perhaps another Facet.");
                    }
                    else
                    {
                        ProfessionalFisherQuest quest = new ProfessionalFisherQuest(player, monger, this, boat);

                        if (quest != null)
                        {
                            quest.Quester = this;
                            quest.Owner   = player;
                            player.CloseGump(typeof(MondainQuestGump));
                            player.SendGump(new MondainQuestGump(quest));

                            if (boat.IsClassicBoat)
                            {
                                SayTo(player, "Such a weak vessle can only catch a weak line.");
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public ShippingCrate(ProfessionalFisherQuest quest)
 {
     Weight = 1.0;
     Quest  = quest;
 }
Ejemplo n.º 4
0
 public void AddQuest(ProfessionalFisherQuest quest)
 {
     Quest = quest;
 }