Ejemplo n.º 1
0
        public void SpawnSigil()
        {
            Point3D p = CityInfo.Infos[City].SigilLocs[Utility.Random(CityInfo.Infos[City].SigilLocs.Length)];

            Sigil = new VvVSigil(this, p);

            Sigil.MoveToWorld(p, Map.Felucca);

            UpdateAllGumps();
        }
Ejemplo n.º 2
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (ViceVsVirtueSystem.Instance == null || Battle == null)
            {
                return(false);
            }

            VvVPlayerEntry entry = ViceVsVirtueSystem.Instance.GetPlayerEntry <VvVPlayerEntry>(from);

            if (from.InRange(Location, 2) && entry != null && ViceVsVirtueSystem.IsVvV(from) && dropped is VvVSigil)
            {
                VvVSigil sigil = dropped as VvVSigil;
                Battle.Update(null, entry, VvVType == VvVType.Vice ? UpdateType.TurnInVice : UpdateType.TurnInVirtue);

                sigil.Delete();
                Battle.Sigil = null;
            }

            return(false);
        }