예제 #1
0
        public void GetExodusAlter(Mobile from)
        {
            bool checktome = false;

            foreach (Item item in World.Items.Values)
            {
                if (item is ExodusTomeAltar)
                {
                    checktome = true;
                }
            }

            if (!checktome)
            {
                if (CheckParty(from))
                {
                    if (from.Region != null && (from.Map == Map.Trammel || from.Map == Map.Felucca))
                    {
                        ExodusTomeAltar alter;

                        if (CheckExodus())
                        {
                            if (from.Region.IsPartOf("Shrine of Compassion"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(1858, 875, 12), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Honesty"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(4209, 564, 60), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Honor"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(1727, 3528, 15), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Humility"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(4274, 3697, 12), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Justice"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(1301, 634, 28), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Sacrifice"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(3355, 290, 16), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Spirituality"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(1606, 2490, 20), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                            else if (from.Region.IsPartOf("Shrine of Valor"))
                            {
                                alter = new ExodusTomeAltar(from);
                                alter.MoveToWorld(new Point3D(2492, 3931, 17), from.Map);
                                PeerlessExodusAltar.m_Rituals.Add(new RitualArray {
                                    RitualMobile = from, Ritual1 = false, Ritual2 = false
                                });
                                this.Delete();
                                return;
                            }
                        }
                    }

                    from.SendMessage("That is not the right place to permorm thy ritual.");
                }
                else
                {
                    from.SendLocalizedMessage(1153595); // You must first join the party of the person who built this altar.
                }
            }
            else
            {
                from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
            }
        }
예제 #2
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is StaticTarget staticTarget)
                {
                    if (IsValidTile(staticTarget.ItemID) && (from.Map == Map.Felucca || from.Map == Map.Trammel))
                    {
                        bool alter = false;

                        foreach (var x in from.Map.GetItemsInRange(staticTarget.Location, 5))
                        {
                            if (x is ExodusTomeAltar)
                            {
                                alter = true;
                                break;
                            }
                        }

                        if (alter)
                        {
                            from.SendLocalizedMessage(1153590); // An altar has already been built here.
                        }
                        else if (ExodusTomeAltar.Altar == null && VerLorRegController.Active && VerLorRegController.Mobile != null && CheckExodus())
                        {
                            Point3D p = Point3D.Zero;

                            if (from.Region.IsPartOf("Shrine of Compassion"))
                            {
                                p = new Point3D(1858, 875, 12);
                            }
                            else if (from.Region.IsPartOf("Shrine of Honesty"))
                            {
                                p = new Point3D(4209, 564, 60);
                            }
                            else if (from.Region.IsPartOf("Shrine of Honor"))
                            {
                                p = new Point3D(1727, 3528, 15);
                            }
                            else if (from.Region.IsPartOf("Shrine of Humility"))
                            {
                                p = new Point3D(4274, 3697, 12);
                            }
                            else if (from.Region.IsPartOf("Shrine of Justice"))
                            {
                                p = new Point3D(1301, 634, 28);
                            }
                            else if (from.Region.IsPartOf("Shrine of Sacrifice"))
                            {
                                p = new Point3D(3355, 290, 16);
                            }
                            else if (from.Region.IsPartOf("Shrine of Spirituality"))
                            {
                                p = new Point3D(1606, 2490, 20);
                            }
                            else if (from.Region.IsPartOf("Shrine of Valor"))
                            {
                                p = new Point3D(2492, 3931, 17);
                            }
                            else
                            {
                                from.SendLocalizedMessage(500269); // You cannot build that there.
                                return;
                            }

                            if (p != Point3D.Zero)
                            {
                                ExodusTomeAltar altar = new ExodusTomeAltar();
                                altar.MoveToWorld(p, from.Map);
                                altar.Owner = from;
                                m_Deed.Delete();
                            }
                        }
                        else
                        {
                            from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
                        }
                    }
                    else
                    {
                        from.SendLocalizedMessage(500269); // You cannot build that there.
                    }
                }
                else
                {
                    from.SendLocalizedMessage(500269); // You cannot build that there.
                }
            }
예제 #3
0
        public void GetExodusAlter(Mobile from)
        {
            if (ExodusTomeAltar.Altar == null && VerLorRegController.Active && VerLorRegController.Mobile != null && CheckExodus())
            {
                if (CheckParty(from))
                {
                    if (from.Region != null && (from.Map == Map.Trammel || from.Map == Map.Felucca))
                    {
                        Point3D p = Point3D.Zero;

                        if (from.Region.IsPartOf("Shrine of Compassion"))
                        {
                            p = new Point3D(1858, 875, 12);
                        }
                        else if (from.Region.IsPartOf("Shrine of Honesty"))
                        {
                            p = new Point3D(4209, 564, 60);
                        }
                        else if (from.Region.IsPartOf("Shrine of Honor"))
                        {
                            p = new Point3D(1727, 3528, 15);
                        }
                        else if (from.Region.IsPartOf("Shrine of Humility"))
                        {
                            p = new Point3D(4274, 3697, 12);
                        }
                        else if (from.Region.IsPartOf("Shrine of Justice"))
                        {
                            p = new Point3D(1301, 634, 28);
                        }
                        else if (from.Region.IsPartOf("Shrine of Sacrifice"))
                        {
                            p = new Point3D(3355, 290, 16);
                        }
                        else if (from.Region.IsPartOf("Shrine of Spirituality"))
                        {
                            p = new Point3D(1606, 2490, 20);
                        }
                        else if (from.Region.IsPartOf("Shrine of Valor"))
                        {
                            p = new Point3D(2492, 3931, 17);
                        }

                        if (p != Point3D.Zero)
                        {
                            ExodusTomeAltar altar = new ExodusTomeAltar(from);
                            altar.MoveToWorld(p, from.Map);
                            altar.Rituals.Add(new RitualArray {
                                RitualMobile = from, Ritual1 = false, Ritual2 = false
                            });
                            this.Delete();
                        }
                    }
                    else
                    {
                        from.SendMessage("That is not the right place to perform thy ritual.");
                    }
                }
                else
                {
                    from.SendLocalizedMessage(1153595); // You must first join the party of the person who built this altar.
                }
            }
            else
            {
                from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
            }
        }