Пример #1
0
        public static void Main()
        {
            var dm       = NWGameObject.OBJECT_SELF;
            var position = Vector(
                NWNXEvents.OnDMJumpToPoint_GetX(),
                NWNXEvents.OnDMJumpToPoint_GetY(),
                NWNXEvents.OnDMJumpToPoint_GetZ());
            var area     = NWNXEvents.OnDMJumpToPoint_GetArea();
            var areaName = GetName(area);

            var log = $"{areaName} - {position.X}, {position.Y}, {position.Z}";

            WriteLog(dm, "Jump All Players to Point", log);
        }
Пример #2
0
        public static void Main()
        {
            var dm       = NWGameObject.OBJECT_SELF;
            var position = Vector(
                NWNXEvents.OnDMJumpToPoint_GetX(),
                NWNXEvents.OnDMJumpToPoint_GetY(),
                NWNXEvents.OnDMJumpToPoint_GetZ());
            var area        = NWNXEvents.OnDMJumpToPoint_GetArea();
            var targets     = NWNXEvents.DMEvents_GetTargetList();
            var areaName    = GetName(area);
            var targetNames = string.Empty;

            foreach (var target in targets)
            {
                var targetName = GetName(target);
                targetNames += "(" + targetName + ") ";
            }

            var log = $"{areaName} - {position.X}, {position.Y}, {position.Z} - [{targetNames}]";

            WriteLog(dm, "Jump Target to Point", log);
        }