protected static void RunAudit(string @event)
        {
            var dm      = NWGameObject.OBJECT_SELF;
            var targets = NWNXEvents.DMEvents_GetTargetList();
            var details = "Target List: ";

            foreach (var target in targets)
            {
                var name = GetName(target);
                details += "(" + name + ") ";
            }

            WriteLog(dm, @event, details);
        }
Пример #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);
        }