Пример #1
0
            protected override void OnTarget(Mobile from, object target)
            {
                if (!(target is PokerDealer))
                {
                    from.SendMessage("That isn't a poker dealer!");
                    return;
                }

                PokerDealer dealer = (PokerDealer)target;

                if (dealer.AddPokerSeat(from, from.Location))
                {
                    // add a stool just because :3
                    Stool stool = new Stool();
                    stool.Visible = false;
                    stool.Movable = false;
                    stool.MoveToWorld(from.Location, from.Map);

                    from.SendMessage(0x22, "A new seat was successfully created.");
                }
                else
                {
                    from.SendMessage(0x22, "There is no more room at that table for another seat. Try increasing the value of MaxPlayers first.");
                }
            }
Пример #2
0
            public static void CreateDecore(Point3D pointLocation, Map mapLocation)
            {
                Point3D stool = new Point3D(1545, 1768, 10);

                if (!FindDecore(mapLocation, pointLocation))
                {
                    if (pointLocation == stool)
                    {
                        Stool sto = new Stool();
                        sto.Movable = false;
                        sto.MoveToWorld(pointLocation, mapLocation);
                    }
                }
            }