示例#1
0
        static void CreateZonesForLobby()
        {
            // me.CreateZone("lobby", new Vector3(-235, 3, 18), 16);
            me.ZoneManager.Call("CreateOrUpdateZone",
                                "lobby",
                                new string[]
            {
                "radius", "34",
                "autolights", "true",
                "eject", "false",
                "enter_message", "",
                "leave_message", "",
                "killsleepers", "true",
                "nosuicide", "false",
                //"undestr", "true",nosuicide
                "nobuild", "true",
                "nodecay", "true",
                //"nocorpse", "true",
                "nogather", "true",
                "noplayerloot", "true",
                //"nowounded", "true",
                "nodrown", "true",
                "nostability", "true",
                "noupgrade", "true",
                //"nobleed", "true",
                //"pvpgod", "true",
                "nodeploy", "true"
            }, new Vector3(-235, 3, 18));

            IemUtils.CreateSphere(new Vector3(-235, 3, 18), (34 * 2) + 1);
        }
示例#2
0
            void CreateZoneForLobby()
            {
                Vector3 centre_location = new Vector3(location.x - 7, location.y, location.z - 2);

                // me.CreateZone("lobby", new Vector3(-235, 3, 18), 16);
                me.zonelist.Add("lobby_" + centre_location.ToString());
                zonelist.Add("lobby_" + centre_location.ToString());
                me.ZoneManager.Call("CreateOrUpdateZone",
                                    "lobby_" + centre_location.ToString(),
                                    new string[]
                {
                    "radius", "34",
                    "autolights", "true",
                    "eject", "false",
                    "enter_message", "",
                    "leave_message", "",
                    "killsleepers", "true",
                    "nosuicide", "false",
                    "undestr", "true",
                    "nobuild", "true",
                    "nodecay", "true",
                    "nocorpse", "true",
                    "nogather", "true",
                    "noplayerloot", "true",
                    "nowounded", "true",
                    "nodrown", "true",
                    "nostability", "true",
                    "noupgrade", "true",
                    "nobleed", "true",
                    "pvpgod", "true",
                    "nodeploy", "true"
                }, location);

                spheres.Add(IemUtils.CreateSphere(centre_location, (34 * 2) + 1));
            }