DE Runtime Helpers 8 - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어

Hilfsfunktionen 8

Interner Implementierungscode; kein eigenständiges Skript.

ClassicUO.CSharp.CSharpCallbacks.Exists

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string name

Quelle: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:136.

public bool Exists(string name)

Ergebnis: bool.

Aufrufe:

  • Verify
  • routines.ContainsKey
  • (name ?? "").Trim

Interner Implementierungscode; kein eigenständiges Skript.

public bool Exists(string name) { Verify(); lock (sync) return routines.ContainsKey((name ?? "").Trim()); }

ClassicUO.Game.GameActions.Print

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: World world, string message, ushort hue = 946, MessageType type = MessageType.Regular, byte font = 3, bool unicode = true

Quelle: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:481.

public static void Print(World world, string message, ushort hue = 946, MessageType type = MessageType.Regular, byte font = 3, bool unicode = true)

Ergebnis: void.

Bedingungen:

  • systemChat != null && !systemChat.IsDisposed && SystemChatControl.NeedsDirectViewportFallback(messageSequence, systemChat.MessageSequence)

Aufrufe:

  • NormalizeLocalDisplayFont
  • ShouldTrackLocalViewportLine
  • Print
  • SystemChatControl.NeedsDirectViewportFallback
  • systemChat.AddLineIfSequenceUnchanged

Interner Implementierungscode; kein eigenständiges Skript.

public static void Print(World world, string message, ushort hue = 946, MessageType type = MessageType.Regular, byte font = 3, bool unicode = true)
        {
            NormalizeLocalDisplayFont(message, ref font, ref unicode);

            SystemChatControl systemChat = ShouldTrackLocalViewportLine(type) ? UIManager.SystemChat : null;
            long messageSequence = systemChat?.MessageSequence ?? -1;

            Print
            (
                world,
                null,
                message,
                hue,
                type,
                font,
                unicode
            );

            // MessageManager normally delivers local Regular/System lines
            // synchronously to SystemChatControl. If a profile/filter combination did not add the
            // line, put it directly into the same in-world viewport control.
            // The sequence check prevents duplicate lines on the normal route.
            if (systemChat != null && !systemChat.IsDisposed
                && SystemChatControl.NeedsDirectViewportFallback(messageSequence, systemChat.MessageSequence))
            {
                systemChat.AddLineIfSequenceUnchanged(messageSequence, message, font, hue, unicode);
            }
        }

ClassicUO.Game.GameActions.Rename

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: uint serial, string name

Quelle: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:817.

public static void Rename(uint serial, string name)

Ergebnis: void.

Aufrufe:

  • Socket.Send_RenameRequest

Interner Implementierungscode; kein eigenständiges Skript.

public static void Rename(uint serial, string name)
        {
            Socket.Send_RenameRequest(serial, name);
        }

ClassicUO.Game.GameActions.RequestPartyAccept

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: uint serial

Quelle: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:542.

public static void RequestPartyAccept(uint serial)

Ergebnis: void.

Aufrufe:

  • Socket.Send_PartyAccept
  • UIManager.GetGump<PartyInviteGump>
  • .Dispose

Interner Implementierungscode; kein eigenständiges Skript.

public static void RequestPartyAccept(uint serial)
        {
            Socket.Send_PartyAccept(serial);

            UIManager.GetGump<PartyInviteGump>()?.Dispose();
        }

ClassicUO.Game.GameActions.ShouldTrackLocalViewportLine

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: MessageType type

Quelle: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:388.

internal static bool ShouldTrackLocalViewportLine(MessageType type)

Ergebnis: bool.

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

internal static bool ShouldTrackLocalViewportLine(MessageType type) =>
            type == MessageType.Regular || type == MessageType.System;

ClassicUO.Game.GameActions.ToggleWarMode

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: PlayerMobile player

Quelle: Project_Full/src/ClassicUO.Client/Game/GameActions.cs:25.

public static void ToggleWarMode(PlayerMobile player)

Ergebnis: void.

Aufrufe:

  • RequestWarMode

Interner Implementierungscode; kein eigenständiges Skript.

public static void ToggleWarMode(PlayerMobile player)
        {
            RequestWarMode(player, !player.InWarMode);
        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Backpack

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:154.

public int Backpack

Ergebnis: int.

Aufrufe:

  • Invoke
  • player.FindItemByLayer

Interner Implementierungscode; kein eigenständiges Skript.

public int Backpack => Invoke(() => _world.Player is { IsDestroyed: false } player

            ? unchecked((int)(player.FindItemByLayer(Layer.Backpack)?.Serial ?? 0)) : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ChangeProfileSelection

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string profileName, string shardName, string characterName

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:521.

public int ChangeProfileSelection(string profileName, string shardName, string characterName)

Ergebnis: int.

Bedingungen:

  • _world.SessionControl != null
  • NetClient.Socket.IsConnected || NetClient.Socket.IsConnecting || _world.InGame
  • _manager.RunningScriptCount > 1
  • string.IsNullOrWhiteSpace(profileName)

Aufrufe:

  • Invoke
  • ReportStatus
  • string.IsNullOrWhiteSpace
  • shardName.Trim
  • ProfileManager.TryResolveProfileCharacter
  • profileName.Trim
  • characterName.Trim
  • ProfileManager.SaveCurrentProfile
  • ProfileManager.UnLoadProfile
  • Settings.GlobalSettings.Save
  • LastCharacterManager.OverrideLastCharacter

Interner Implementierungscode; kein eigenständiges Skript.

public int ChangeProfileSelection(string profileName, string shardName, string characterName) => Invoke(() =>

        {

            if (_world.SessionControl != null)

            {

                ReportStatus("Choose another profile in ClassicUO Manager. A running session keeps its own profile.");

                return -2;

            }

            if (NetClient.Socket.IsConnected || NetClient.Socket.IsConnecting || _world.InGame)

                return -2;

            if (_manager.RunningScriptCount > 1)

                return -3;

            if (string.IsNullOrWhiteSpace(profileName))

                return -4;



            string targetShard = !string.IsNullOrWhiteSpace(shardName)

                ? shardName.Trim()

                : !string.IsNullOrWhiteSpace(ProfileManager.CurrentProfile?.ServerName)

                    ? ProfileManager.CurrentProfile.ServerName

                    : !string.IsNullOrWhiteSpace(_world.ServerName) && _world.ServerName != "_"

                        ? _world.ServerName

                        : Settings.GlobalSettings.LastServerName;

            if (string.IsNullOrWhiteSpace(targetShard))

                return -4;



            if (!ProfileManager.TryResolveProfileCharacter(targetShard, profileName.Trim(), out string storedCharacter))

                return -4;



            string targetCharacter = !string.IsNullOrWhiteSpace(characterName)

                ? characterName.Trim()

                : storedCharacter;



            ProfileManager.SaveCurrentProfile();

            ProfileManager.UnLoadProfile();

            Settings.GlobalSettings.LastServerName = targetShard;

            Settings.GlobalSettings.Save();

            if (!string.IsNullOrWhiteSpace(targetCharacter))

                LastCharacterManager.OverrideLastCharacter(targetCharacter, false);

            return 0;

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ClientTargetResponsePresent

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:931.

public int ClientTargetResponsePresent()

Ergebnis: int.

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

public int ClientTargetResponsePresent() => _clientTargetResponsePresent ? 1 : 0;

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.CloseGumpUnsafe

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Gump gump

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3123.

private void CloseGumpUnsafe(Gump gump)

Ergebnis: void.

Bedingungen:

  • gump?.CanCloseWithRightClick == true
  • ReferenceEquals(_selectedServerGump, gump)

Aufrufe:

  • gump.Dispose
  • ReferenceEquals

Interner Implementierungscode; kein eigenständiges Skript.

private void CloseGumpUnsafe(Gump gump)

        {

            if (gump?.CanCloseWithRightClick == true)

            {

                gump.Dispose();

                if (ReferenceEquals(_selectedServerGump, gump))

                    _selectedServerGump = null;

            }

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Equip

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int layer, int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2213.

public int Equip(int layer, int id)

Ergebnis: int.

Aufrufe:

  • Invoke
  • TryEquipItem

Interner Implementierungscode; kein eigenständiges Skript.

public int Equip(int layer, int id) => Invoke(() => TryEquipItem(layer, id));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetEasyUO

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int number

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3380.

public string GetEasyUO(int number)

Ergebnis: string.

Bedingungen:

  • !OperatingSystem.IsWindows()

Aufrufe:

  • OperatingSystem.IsWindows
  • Registry.CurrentUser.OpenSubKey
  • .GetValue
  • number.ToString
  • .ToString

Interner Implementierungscode; kein eigenständiges Skript.

public string GetEasyUO(int number)

        {

            if (!OperatingSystem.IsWindows())

            {

                return string.Empty;

            }

            using RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\EasyUO", false);

            return key?.GetValue(number.ToString(CultureInfo.InvariantCulture))?.ToString()

                ?? key?.GetValue("*" + number.ToString(CultureInfo.InvariantCulture))?.ToString()

                ?? string.Empty;

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetLastContainer

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:273.

public int GetLastContainer()

Ergebnis: int.

Aufrufe:

  • Invoke

Interner Implementierungscode; kein eigenständiges Skript.

public int GetLastContainer() => Invoke(() => (int)_world.LastContainer);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetName

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:329.

public string GetName(int id)

Ergebnis: string.

Aufrufe:

  • Invoke
  • _world.Get

Interner Implementierungscode; kein eigenständiges Skript.

public string GetName(int id) => Invoke(() => _world.Get((uint)id)?.Name ?? string.Empty);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetScriptsList

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:319.

public int[] GetScriptsList()

Ergebnis: int[].

Aufrufe:

  • _manager.GetScriptsList

Interner Implementierungscode; kein eigenständiges Skript.

public int[] GetScriptsList() => _manager.GetScriptsList();

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GlobalChatJoin

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string channel

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1735.

public void GlobalChatJoin(string channel)

Ergebnis: void.

Aufrufe:

  • Invoke
  • NetClient.Socket.Send_ChatJoinCommand

Interner Implementierungscode; kein eigenständiges Skript.

public void GlobalChatJoin(string channel) => Invoke(() => NetClient.Socket.Send_ChatJoinCommand(channel ?? string.Empty));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.InJournalEx

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string pattern, int limit, bool ignoreCase

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2116.

public int InJournalEx(string pattern, int limit, bool ignoreCase)

Ergebnis: int.

Aufrufe:

  • FindJournal

Interner Implementierungscode; kein eigenständiges Skript.

public int InJournalEx(string pattern, int limit, bool ignoreCase)

            => FindJournal(pattern, null, null, limit, false, ignoreCase);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsContainer

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:246.

public int IsContainer(int id)

Ergebnis: int.

Aufrufe:

  • Invoke
  • _world.Get

Interner Implementierungscode; kein eigenständiges Skript.

public int IsContainer(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Item)?.ItemData.IsContainer == true ? 1 : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsHouse

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:251.

public int IsHouse(int id)

Ergebnis: int.

Aufrufe:

  • Invoke
  • _world.Get

Interner Implementierungscode; kein eigenständiges Skript.

public int IsHouse(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Item)?.IsMulti == true ? 1 : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsTreeTile

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int x, int y

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:674.

public int IsTreeTile(int x, int y)

Ergebnis: int.

Aufrufe:

  • Invoke
  • AnyTileAt
  • StaticFilters.IsTree

Interner Implementierungscode; kein eigenständiges Skript.

public int IsTreeTile(int x, int y) => Invoke(() => AnyTileAt(x, y, tile =>

            tile is Static or Multi && StaticFilters.IsTree(tile.Graphic, out _)) ? 1 : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsWarMode

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2291.

public int IsWarMode(int id)

Ergebnis: int.

Aufrufe:

  • Invoke
  • _world.Get

Interner Implementierungscode; kein eigenständiges Skript.

public int IsWarMode(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.InWarMode == true ? 1 : 0);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.MatchesFindMobile

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Mobile mobile, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, int range, IgnoreTypeFilter ignoredTypes

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4135.

private bool MatchesFindMobile(Mobile mobile, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, int range, IgnoreTypeFilter ignoredTypes)

Ergebnis: bool.

Aufrufe:

  • IsSelfMobile
  • MatchesFindIdentity
  • MatchesFindMobileRange

Interner Implementierungscode; kein eigenständiges Skript.

private bool MatchesFindMobile(Mobile mobile, HashSet<ushort> wantedTypes, HashSet<ushort> wantedColors, int range, IgnoreTypeFilter ignoredTypes)

        {

            return !IsSelfMobile(mobile)

                && MatchesFindIdentity(mobile, wantedTypes, wantedColors, ignoredTypes)

                && MatchesFindMobileRange(mobile, range);

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.OpenContainer

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id, int delay

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1495.

public void OpenContainer(int id, int delay)

Ergebnis: void.

Bedingungen:

  • delay > 0

Aufrufe:

  • UseObject
  • Wait

Interner Implementierungscode; kein eigenständiges Skript.

public void OpenContainer(int id, int delay)

        {

            UseObject(id);

            if (delay > 0)

            {

                Wait(delay);

            }

        }

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.PrintFormattedJournal

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: text, textColorRgb, backgroundColorRgb, fontSize, fontName

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1862.

`public void PrintFormattedJournal(string text, int textColorRgb, int backgroundColorRgb,

        int fontSize, string fontName)`

Ergebnis: void.

Aufrufe: Invoke.

Aufrufe:

  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { using var journalContext = new JournalMessageContext("script"); text ??= string.Empty; int effectivePointSize = Math.Clamp(fontSize <= 0 ? 10 : fontSize, 4, 72); string effectiveFontName = string.IsNullOrWhiteSpace(fontName) ? "Consolas" : fontName.Trim(); uint textArgb = 0xFF000000u | (unchecked((uint)textColorRgb) & 0x00FFFFFFu); ushort hue = ClientFontManager.FindNearestUoHue(textArgb); // ClassicUO's in-world system chat uses UO font IDs rather than arbitrary // desktop point sizes. Map the requested point size to a stable UO font // index while retaining the exact Stealth formatting request in IDE output. byte uoFont = (byte)Math.Clamp((effectivePointSize + 1) / 3, 0, byte.MaxValue); GameActions.Print(_world, text, hue, SCRIPT_PRINT_MESSAGE_TYPE, uoFont, true); string background = backgroundColorRgb < 0 ? "default" : $"#{(unchecked((uint)backgroundColorRgb) & 0x00FFFFFFu):X6}"; _manager.AppendIdeOutput(_scriptKey, $"UO.AddToSystemJournalEx [text=#{(textArgb & 0x00FFFFFFu):X6}; bg={background}; " + $"font='{effectiveFontName}' {effectivePointSize}pt; uoFont={uoFont}; hue=0x{hue:X4}] {text}"); ReportStatus($"UO.AddToSystemJournalEx formatted journal line: {effectiveFontName} " + $"{effectivePointSize}pt, background {background}"); }). Überladungskandidaten: die Quelle bestätigt keine Auswahl eines bestimmten Kandidaten.
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke: Invoke(() => { using var journalContext = new JournalMessageContext("script"); text ??= string.Empty; int effectivePointSize = Math.Clamp(fontSize <= 0 ? 10 : fontSize, 4, 72); string effectiveFontName = string.IsNullOrWhiteSpace(fontName) ? "Consolas" : fontName.Trim(); uint textArgb = 0xFF000000u | (unchecked((uint)textColorRgb) & 0x00FFFFFFu); ushort hue = ClientFontManager.FindNearestUoHue(textArgb); // ClassicUO's in-world system chat uses UO font IDs rather than arbitrary // desktop point sizes. Map the requested point size to a stable UO font // index while retaining the exact Stealth formatting request in IDE output. byte uoFont = (byte)Math.Clamp((effectivePointSize + 1) / 3, 0, byte.MaxValue); GameActions.Print(_world, text, hue, SCRIPT_PRINT_MESSAGE_TYPE, uoFont, true); string background = backgroundColorRgb < 0 ? "default" : $"#{(unchecked((uint)backgroundColorRgb) & 0x00FFFFFFu):X6}"; _manager.AppendIdeOutput(_scriptKey, $"UO.AddToSystemJournalEx [text=#{(textArgb & 0x00FFFFFFu):X6}; bg={background}; " + $"font='{effectiveFontName}' {effectivePointSize}pt; uoFont={uoFont}; hue=0x{hue:X4}] {text}"); ReportStatus($"UO.AddToSystemJournalEx formatted journal line: {effectiveFontName} " + $"{effectivePointSize}pt, background {background}"); }). Überladungskandidaten: die Quelle bestätigt keine Auswahl eines bestimmten Kandidaten.
  • ClassicUO.Game.GameActions.Print: GameActions.Print(_world, text, hue, SCRIPT_PRINT_MESSAGE_TYPE, uoFont, true).
  • ClassicUO.Game.Managers.YokoInjectionManager.AppendIdeOutput: _manager.AppendIdeOutput(_scriptKey, $"UO.AddToSystemJournalEx [text=#{(textArgb & 0x00FFFFFFu):X6}; bg={background}; " + $"font='{effectiveFontName}' {effectivePointSize}pt; uoFont={uoFont}; hue=0x{hue:X4}] {text}").
  • ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReportStatus: ReportStatus($"UO.AddToSystemJournalEx formatted journal line: {effectiveFontName} " + $"{effectivePointSize}pt, background {background}").

Interner Implementierungscode; kein eigenständiges Skript.

public void PrintFormattedJournal(string text, int textColorRgb, int backgroundColorRgb,

            int fontSize, string fontName) => Invoke(() =>

        {

            using var journalContext = new JournalMessageContext("script");

            text ??= string.Empty;

            int effectivePointSize = Math.Clamp(fontSize <= 0 ? 10 : fontSize, 4, 72);

            string effectiveFontName = string.IsNullOrWhiteSpace(fontName) ? "Consolas" : fontName.Trim();

            uint textArgb = 0xFF000000u | (unchecked((uint)textColorRgb) & 0x00FFFFFFu);

            ushort hue = ClientFontManager.FindNearestUoHue(textArgb);



            // ClassicUO's in-world system chat uses UO font IDs rather than arbitrary

            // desktop point sizes. Map the requested point size to a stable UO font

            // index while retaining the exact Stealth formatting request in IDE output.

            byte uoFont = (byte)Math.Clamp((effectivePointSize + 1) / 3, 0, byte.MaxValue);

            GameActions.Print(_world, text, hue, SCRIPT_PRINT_MESSAGE_TYPE, uoFont, true);



            string background = backgroundColorRgb < 0

                ? "default"

                : $"#{(unchecked((uint)backgroundColorRgb) & 0x00FFFFFFu):X6}";

            _manager.AppendIdeOutput(_scriptKey,

                $"UO.AddToSystemJournalEx [text=#{(textArgb & 0x00FFFFFFu):X6}; bg={background}; "

                + $"font='{effectiveFontName}' {effectivePointSize}pt; uoFont={uoFont}; hue=0x{hue:X4}] {text}");

            ReportStatus($"UO.AddToSystemJournalEx formatted journal line: {effectiveFontName} "

                + $"{effectivePointSize}pt, background {background}");

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RenameMobile

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int mobileId, string name

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:297.

public void RenameMobile(int mobileId, string name)

Ergebnis: void.

Aufrufe:

  • Invoke
  • GameActions.Rename

Interner Implementierungscode; kein eigenständiges Skript.

public void RenameMobile(int mobileId, string name) => Invoke(() => GameActions.Rename((uint)mobileId, name ?? string.Empty));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Salute

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1582.

public void Salute()

Ergebnis: void.

Aufrufe:

  • Invoke
  • GameActions.EmoteAction

Interner Implementierungscode; kein eigenständiges Skript.

public void Salute() => Invoke(() => GameActions.EmoteAction("salute"));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Say

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string message

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1567.

public void Say(string message)

Ergebnis: void.

Aufrufe:

  • SendServerSpeech

Interner Implementierungscode; kein eigenständiges Skript.

public void Say(string message) => SendServerSpeech("UO.Say", message);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SendGumpSelect

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int triggerId

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2993.

public int SendGumpSelect(int triggerId)

Ergebnis: int.

Aufrufe:

  • Invoke
  • ServerGumpsUnsafe().LastOrDefault
  • ServerGumpsUnsafe
  • SendGumpButtonUnsafe

Interner Implementierungscode; kein eigenständiges Skript.

public int SendGumpSelect(int triggerId) => Invoke(() =>

        {

            Gump gump = _selectedServerGump != null && !_selectedServerGump.IsDisposed

                ? _selectedServerGump : ServerGumpsUnsafe().LastOrDefault();

            return SendGumpButtonUnsafe(gump, triggerId, "no active server gump");

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetFindVertical

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int distance

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:206.

public void SetFindVertical(int distance)

Ergebnis: void.

Aufrufe:

  • Math.Clamp

Interner Implementierungscode; kein eigenständiges Skript.

public void SetFindVertical(int distance) => State.FindVertical = Math.Clamp(distance, 0, 120);

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetJournalLine

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int index, string text

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2204.

public void SetJournalLine(int index, string text)

Ergebnis: void.

Bedingungen:

  • entry != null

Aufrufe:

  • Invoke
  • GetJournalEntryUnsafe

Interner Implementierungscode; kein eigenständiges Skript.

public void SetJournalLine(int index, string text) => Invoke(() =>

        {

            JournalEntry entry = GetJournalEntryUnsafe(index);

            if (entry != null)

            {

                entry.Text = text ?? string.Empty;

            }

        });

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetSpeechFilter

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int enabled

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3979.

public void SetSpeechFilter(int enabled)

Ergebnis: void.

Aufrufe:

  • Invoke
  • _manager.SetSpeechFilter

Interner Implementierungscode; kein eigenständiges Skript.

public void SetSpeechFilter(int enabled) => Invoke(() => _manager.SetSpeechFilter(enabled != 0));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.WaitTargetObject

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int id

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:847.

public void WaitTargetObject(int id)

Ergebnis: void.

Aufrufe:

  • _manager.QueueTarget

Interner Implementierungscode; kein eigenständiges Skript.

public void WaitTargetObject(int id) => _manager.QueueTarget((uint)id, _cancellationToken);

ClassicUO.Game.Managers.YokoInjectionManager.ClearPendingTargets

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3305.

internal void ClearPendingTargets()

Ergebnis: void.

Aufrufe:

  • _pendingTargets.TryDequeue

Interner Implementierungscode; kein eigenständiges Skript.

internal void ClearPendingTargets()

        {

            lock (_pendingTargetLock)

                while (_pendingTargets.TryDequeue(out _)) { }

        }

ClassicUO.Game.Managers.YokoInjectionManager.GetScriptName

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int index

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:2811.

internal string GetScriptName(int index)

Ergebnis: string.

Aufrufe:

  • ElementAt
  • RunningScripts

Interner Implementierungscode; kein eigenständiges Skript.

internal string GetScriptName(int index) => ElementAt(RunningScripts(), index)?.Name ?? string.Empty;

ClassicUO.Game.Managers.YokoInjectionManager.RequestedAutoloadPath

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3547.

private string RequestedAutoloadPath()

Ergebnis: string.

Aufrufe:

  • string.IsNullOrWhiteSpace
  • Path.GetFullPath
  • Path.Combine
  • Path.GetFileName
  • requested.Trim

Interner Implementierungscode; kein eigenständiges Skript.

private string RequestedAutoloadPath()

        {

            string requested = ProfileManager.CurrentProfile?.YokoAutoloadFile;

            return string.IsNullOrWhiteSpace(requested) ? SelectedAutoloadPath

                : Path.GetFullPath(Path.Combine(AutoloadPath, Path.GetFileName(requested.Trim())));

        }

ClassicUO.Game.Map.Map.GetUsedChunks

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Map/Map.cs:251.

public IEnumerable<Chunk> GetUsedChunks()

Ergebnis: IEnumerable<Chunk>.

Aufrufe:

  • GetChunk

Interner Implementierungscode; kein eigenständiges Skript.

public IEnumerable<Chunk> GetUsedChunks()
        {
            foreach (int i in _usedIndices)
            {
                yield return GetChunk(i);
            }
        }

ClassicUO.Game.UI.Gumps.SystemChatControl.NeedsDirectViewportFallback

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: long before, long after

Quelle: Project_Full/src/ClassicUO.Client/Game/UI/Gumps/SystemChatControl.cs:458.

internal static bool NeedsDirectViewportFallback(long before, long after)

Ergebnis: bool.

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

internal static bool NeedsDirectViewportFallback(long before, long after) => before == after;

InjectionScript.Runtime.FollowStopCondition.Parse

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue value, bool coordinateGoal = false

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/FollowStopCondition.cs:64.

public static FollowStopCondition[] Parse(InjectionValue value, bool coordinateGoal = false)

Ergebnis: FollowStopCondition[].

Bedingungen:

  • value.Kind != InjectionValueKind.Array
  • row.Kind != InjectionValueKind.Array || row.Array.Length != 3 || row.Array[0].Kind != InjectionValueKind.String || row.Array[1].Kind != InjectionValueKind.String || !Fields.TryGetValue((row.Array[0].String ?? string.Empty).Trim(), out FollowStopField field)
  • threshold.Kind != InjectionValueKind.Integer && threshold.Kind != InjectionValueKind.Decimal
  • double.IsNaN(number) || double.IsInfinity(number)

Aufrufe:

  • Fields.TryGetValue
  • (row.Array[0].String ?? string.Empty).Trim
  • row.Array[1].String.Trim
  • double.IsNaN
  • double.IsInfinity

Interner Implementierungscode; kein eigenständiges Skript.

public static FollowStopCondition[] Parse(InjectionValue value, bool coordinateGoal = false)
        {
            if (value.Kind != InjectionValueKind.Array)
                throw new StatementFailedException("Follow: conditions must be an array of [field, comparison, number] rows.");
            var result = new FollowStopCondition[value.Array.Length];
            for (int i = 0; i < result.Length; i++)
            {
                InjectionValue row = value.Array[i];
                if (row.Kind != InjectionValueKind.Array || row.Array.Length != 3
                    || row.Array[0].Kind != InjectionValueKind.String || row.Array[1].Kind != InjectionValueKind.String
                    || !Fields.TryGetValue((row.Array[0].String ?? string.Empty).Trim(), out FollowStopField field))
                    throw new StatementFailedException("Follow: each condition needs a supported field, comparison and numeric threshold.");
                FollowComparison comparison;
                switch (row.Array[1].String.Trim())
                {
                    case "=": comparison = FollowComparison.Equal; break;
                    case "<>": comparison = FollowComparison.NotEqual; break;
                    case "<": comparison = FollowComparison.Less; break;
                    case "<=": comparison = FollowComparison.LessOrEqual; break;
                    case ">": comparison = FollowComparison.Greater; break;
                    case ">=": comparison = FollowComparison.GreaterOrEqual; break;
                    default: throw new StatementFailedException("Follow: comparison must be =, <>, <, <=, > or >=.");
                }
                InjectionValue threshold = row.Array[2];
                if (threshold.Kind != InjectionValueKind.Integer && threshold.Kind != InjectionValueKind.Decimal)
                    throw new StatementFailedException("Follow: threshold must be a number (use 1/0 or true/false for flags).");
                double number = threshold.Kind == InjectionValueKind.Integer ? threshold.Integer : threshold.Decimal;
                if (double.IsNaN(number) || double.IsInfinity(number))
                    throw new StatementFailedException("Follow: threshold must be finite.");
                result[i] = new FollowStopCondition(field, comparison, number);
                if (coordinateGoal && result[i].RequiresMobile)
                    throw new StatementFailedException("Follow: target.* conditions require a character target; use distance, height, elapsed or self.* for coordinates.");
            }
            return result;
        }

InjectionScript.Runtime.InjectionApi.GetWordCount

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string value

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApi.cs:46.

private static int GetWordCount(string value)

Ergebnis: int.

Aufrufe:

  • GetWordCount

Interner Implementierungscode; kein eigenständiges Skript.

private static int GetWordCount(string value) => GetWordCount(value," ");

InjectionScript.Runtime.InjectionApiUO.AddObject

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string name

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3921.

public void AddObject(string name)

Ergebnis: void.

Aufrufe:

  • SystemMessage
  • bridge.AddObject

Interner Implementierungscode; kein eigenständiges Skript.

public void AddObject(string name)

        {

            SystemMessage($"What is {name}");

            bridge.AddObject(name);

        }

InjectionScript.Runtime.InjectionApiUO.ConColor

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue color

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6089.

public void ConColor(InjectionValue color)

Ergebnis: void.

Aufrufe:

  • NumberConversions.ToInt

Interner Implementierungscode; kein eigenständiges Skript.

public void ConColor(InjectionValue color)

        {

            systemMessageColor = NumberConversions.ToInt(color);

        }

InjectionScript.Runtime.InjectionApiUO.Count

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue type, InjectionValue color

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5328.

public int Count(InjectionValue type, InjectionValue color)

Ergebnis: int.

Aufrufe:

  • Count
  • ResolveType
  • NumberConversions.ToInt

Interner Implementierungscode; kein eigenständiges Skript.

public int Count(InjectionValue type, InjectionValue color) 

            => Count(ResolveType(type), NumberConversions.ToInt(color), 0);

InjectionScript.Runtime.InjectionApiUO.CurrentJournalTime

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5613.

private int CurrentJournalTime()

Ergebnis: int.

Bedingungen:

  • milliseconds <= 0d

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

private int CurrentJournalTime()

        {

            double milliseconds = timeSource.SinceStart.TotalMilliseconds;

            if (milliseconds <= 0d)

                return 0;

            return milliseconds >= int.MaxValue ? int.MaxValue : (int)milliseconds;

        }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::SerializeMapFigure

Liefert den Wert des folgenden Ausdrucks.

Parameter: fields, figureText

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1219.

string SerializeMapFigure(int[] fields, string figureText)

Ergebnis: string.

Ergebnis: string.Join("|", fields.Select(value => value.ToString(CultureInfo.InvariantCulture))) + "|" + (figureText ?? string.Empty).

Aufrufe: string.Join, fields.Select.

Interner Implementierungscode; kein eigenständiges Skript.

string SerializeMapFigure(int[] fields, string figureText)

                => string.Join("|", fields.Select(value => value.ToString(CultureInfo.InvariantCulture))) + "|" + (figureText ?? string.Empty);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1638.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "cancelwaittarget": bridge.CancelWaitTarget(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1817.

Ergebnis: new InjectionValue(bridge.CheckLag(Arg(0, 10_000))).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "checklag": return new InjectionValue(bridge.CheckLag(Arg(0, 10_000)));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1820.

Ergebnis: InjectionValue.Unit.

Interner Implementierungscode; kein eigenständiges Skript.

case "clearbadobjectlist": state.BadObjects.Clear(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1290.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "clearshoplist":

                    bridge.ClearAutoShopRules(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1643.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "clientrequestobjecttarget": bridge.RequestClientTarget(false); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1607.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "closeclientgump": bridge.CloseClientGump(Arg(0)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1235.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "fillinfowindow":

                    bridge.TextPrint(Text(0));

                    bridge.TextOpen();

                    return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1371.

Ergebnis: new InjectionValue(arguments.Length > 0 ? bridge.GetDexterity(Arg(0)) : bridge.Dexterity).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "getdex": return new InjectionValue(arguments.Length > 0 ? bridge.GetDexterity(Arg(0)) : bridge.Dexterity);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1883.

Ergebnis: new InjectionValue(Array.Empty<InjectionValue>()).

Bedingungen: bridge is IApiGumpAccess reader; snapshot == null || state.IgnoredGumpIds.Contains(snapshot.Id) || state.IgnoredGumpSerials.Contains(snapshot.Serial).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "getgumpinfo":

                {

                    int index = Arg(0);

                    GumpSnapshot snapshot;

                    if (bridge is IApiGumpAccess reader)

                        snapshot = reader.ReadGump(index);

                    else

                    {

                        int id = bridge.GetGumpId(index);

                        snapshot = id == 0 ? null : new GumpSnapshot(bridge.GetGumpSerial(index), id,

                            bridge.GetGumpTextLines(index), bridge.GetGumpButtonsDescription(index), bridge.GetGumpFullLines(index));

                    }

                    if (snapshot == null || state.IgnoredGumpIds.Contains(snapshot.Id)

                        || state.IgnoredGumpSerials.Contains(snapshot.Serial))

                        return new InjectionValue(Array.Empty<InjectionValue>());

                    return new InjectionValue(new[]

                    {

                        new InjectionValue(snapshot.Serial), new InjectionValue(snapshot.Id), StringArray(snapshot.Text),

                        StringArray(snapshot.Buttons), StringArray(snapshot.Controls)

                    });

                }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1374.

Ergebnis: new InjectionValue(arguments.Length > 0 ? bridge.GetMana(Arg(0)) : bridge.Mana).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "getmana": return new InjectionValue(arguments.Length > 0 ? bridge.GetMana(Arg(0)) : bridge.Mana);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1352.

Ergebnis: new InjectionValue(state.WalkUnmountTimer).

Interner Implementierungscode; kein eigenständiges Skript.

case "getwalkunmounttimer": return new InjectionValue(state.WalkUnmountTimer);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2041.

Ergebnis: new InjectionValue(selectedJournalEntry?.Font ?? 0).

Interner Implementierungscode; kein eigenständiges Skript.

case "linetextfont": return new InjectionValue(selectedJournalEntry?.Font ?? 0);

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1710.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "partycanlootme": bridge.PartyCanLoot(Arg(0) != 0); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1704.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "partyprivatemessageto": bridge.PartySay(Text(1), Arg(0)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1270.

Ergebnis: new InjectionValue(bridge.PlayWav(Text(0))).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "playwav": return new InjectionValue(bridge.PlayWav(Text(0)));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1689.

Ergebnis: new InjectionValue(0); new InjectionValue(bridge.Step(Arg(0) & 7, Arg(1) != 0)).

Bedingungen: state.MoveExitOnDisconnect != 0 && bridge.IsOnline() == 0; state.MoveCheckStamina > 0 && bridge.Stamina < state.MoveCheckStamina; state.MoveOpenDoor != 0.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "step":

                    if (state.MoveExitOnDisconnect != 0 && bridge.IsOnline() == 0)

                        return new InjectionValue(0);

                    if (state.MoveCheckStamina > 0 && bridge.Stamina < state.MoveCheckStamina)

                        return new InjectionValue(0);

                    if (state.MoveOpenDoor != 0)

                        bridge.OpenDoor();

                    return new InjectionValue(bridge.Step(Arg(0) & 7, Arg(1) != 0));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1528.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "stopallscripts": bridge.StopAllScripts(); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1652.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "targettoxyz":

                    bridge.TargetToTile(0, Arg(0), Arg(1), Arg(2)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1721.

Ergebnis: InjectionValue.False; InjectionValue.True.

Bedingungen: !state.MapFigures.ContainsKey(id) || !TryMapFigureArg(1, out int[] figure, out string figureText); bridge.SetMapFigure(id, figure[0], figure[1], figure[2], figure[3], figure[4], figure[5], figure[6], figure[7], figure[8], figure[9], figureText) == 0.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "updatefigure":

                {

                    int id = Arg(0);

                    if (!state.MapFigures.ContainsKey(id) || !TryMapFigureArg(1, out int[] figure, out string figureText))

                        return InjectionValue.False;

                    if (bridge.SetMapFigure(id, figure[0], figure[1], figure[2], figure[3], figure[4], figure[5], figure[6], figure[7], figure[8], figure[9], figureText) == 0)

                        return InjectionValue.False;

                    state.MapFigures[id] = SerializeMapFigure(figure, figureText);

                    return InjectionValue.True;

                }

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1251.

Ergebnis: new InjectionValue(bridge.UseType(ResolveType(arguments[0]), arguments.Length > 1 ? Arg(1) : -1)).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "usetype": return new InjectionValue(bridge.UseType(ResolveType(arguments[0]), arguments.Length > 1 ? Arg(1) : -1));

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1258.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "waitgump": CompactWaitGump(arguments); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1272.

Ergebnis: InjectionValue.Unit.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "waittargetobject": WaitTargetObject(Arg(0)); return InjectionValue.Unit;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2851.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "addtype":

                    AddType(arguments);

                    break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2961.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "fontcolor": state.FontColor = Arg(0, state.FontColor); break;

InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias

Dieser Zweig behandelt nur den angegebenen Befehlsnamen.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3024.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

case "removeneckless": Unequip("Neck"); break;

InjectionScript.Runtime.InjectionApiUO.FindMobile

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3773.

public int FindMobile()

Ergebnis: int.

Aufrufe:

  • FindMobile

Interner Implementierungscode; kein eigenständiges Skript.

public int FindMobile() => FindMobile(new InjectionValue("all"), new InjectionValue("all"),

            new InjectionValue("all"), new InjectionValue("all"));

InjectionScript.Runtime.InjectionApiUO.FindType

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue type, InjectionValue color, InjectionValue container

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4718.

public string FindType(InjectionValue type, InjectionValue color, InjectionValue container)

Ergebnis: string.

Aufrufe:

  • FindType

Interner Implementierungscode; kein eigenständiges Skript.

public string FindType(InjectionValue type, InjectionValue color, InjectionValue container)

            => FindType(type, color, container, new InjectionValue(-1));

InjectionScript.Runtime.InjectionApiUO.FindType

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int type

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4704.

public string FindType(int type)

Ergebnis: string.

Aufrufe:

  • FindType

Interner Implementierungscode; kein eigenständiges Skript.

public string FindType(int type)

            => FindType(type, -1, -1);

InjectionScript.Runtime.InjectionApiUO.GetDistance

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int x1, int y1, int x2, int y2

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3692.

public int GetDistance(int x1, int y1, int x2, int y2)

Ergebnis: int.

Aufrufe:

  • Math.Abs
  • Math.Max

Interner Implementierungscode; kein eigenständiges Skript.

public int GetDistance(int x1, int y1, int x2, int y2)

        {

            int dx = Math.Abs(x1 - x2);

            int dy = Math.Abs(y1 - y2);



            return Math.Max(dx, dy);

        }

InjectionScript.Runtime.InjectionApiUO.GetGump

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string identifier

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3363.

public InjectionValue GetGump(string identifier)

Ergebnis: InjectionValue.

Aufrufe:

  • LastGump

Interner Implementierungscode; kein eigenständiges Skript.

public InjectionValue GetGump(string identifier) => LastGump(identifier, -1);

InjectionScript.Runtime.InjectionApiUO.GetStatus

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string id

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4044.

public void GetStatus(string id)

Ergebnis: void.

Aufrufe:

  • GetStatus
  • GetObject

Interner Implementierungscode; kein eigenständiges Skript.

public void GetStatus(string id) => GetStatus(GetObject(id));

InjectionScript.Runtime.InjectionApiUO.JournalColor

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int index

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5530.

public string JournalColor(int index)

Ergebnis: string.

Aufrufe:

  • bridge.JournalColor

Interner Implementierungscode; kein eigenständiges Skript.

public string JournalColor(int index) => bridge.JournalColor(index);

InjectionScript.Runtime.InjectionApiUO.MoveItem

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue id

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4590.

public int MoveItem(InjectionValue id)

Ergebnis: int.

Aufrufe:

  • CompactMoveItem

Interner Implementierungscode; kein eigenständiges Skript.

public int MoveItem(InjectionValue id)

            => CompactMoveItem(new[] { id });

InjectionScript.Runtime.InjectionApiUO.MoveItem

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue id, InjectionValue amount, InjectionValue targetContainer

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4594.

public int MoveItem(InjectionValue id, InjectionValue amount, InjectionValue targetContainer)

Ergebnis: int.

Aufrufe:

  • CompactMoveItem

Interner Implementierungscode; kein eigenständiges Skript.

public int MoveItem(InjectionValue id, InjectionValue amount, InjectionValue targetContainer)

            => CompactMoveItem(new[] { id, amount, targetContainer });

InjectionScript.Runtime.InjectionApiUO.ParseTypeMask::ResolveEntry

Analysiert oder ermittelt den Argumentwert nach den im Code gezeigten Regeln.

Parameter: entry

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5060.

InjectionValue ResolveEntry(InjectionValue entry)

Ergebnis: InjectionValue.

Ergebnis: entry; new InjectionValue(string.Join("|", parts)).

Aufrufe: (entry.String ?? string.Empty).Split, state.Types.TryGet, graphic.ToString, string.Join.

Bedingungen: entry.Kind != InjectionValueKind.String; state.Types.TryGet(parts[i], out int graphic).

Interner Implementierungscode; kein eigenständiges Skript.

InjectionValue ResolveEntry(InjectionValue entry)

            {

                if (entry.Kind != InjectionValueKind.String) return entry;

                string[] parts = (entry.String ?? string.Empty).Split('|');

                for (int i = 0; i < parts.Length; i++)

                    if (state.Types.TryGet(parts[i], out int graphic))

                        parts[i] = graphic.ToString(CultureInfo.InvariantCulture);

                return new InjectionValue(string.Join("|", parts));

            }

InjectionScript.Runtime.InjectionApiUO.Press

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: int key

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5391.

public void Press(int key)

Ergebnis: void.

Aufrufe:

  • KeyPress

Interner Implementierungscode; kein eigenständiges Skript.

public void Press(int key) => KeyPress(key);

InjectionScript.Runtime.InjectionApiUO.SendGumpSelect

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue gumpIndex, InjectionValue triggerId

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3349.

public int SendGumpSelect(InjectionValue gumpIndex, InjectionValue triggerId)

Ergebnis: int.

Aufrufe:

  • bridge.SendGumpSelect
  • NumberConversions.ToInt

Interner Implementierungscode; kein eigenständiges Skript.

public int SendGumpSelect(InjectionValue gumpIndex, InjectionValue triggerId)

            => bridge.SendGumpSelect(NumberConversions.ToInt(gumpIndex), NumberConversions.ToInt(triggerId));

InjectionScript.Runtime.InjectionApiUO.SetReceivingContainer

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4467.

public void SetReceivingContainer()

Ergebnis: void.

Aufrufe:

  • UnsetReceivingContainer

Interner Implementierungscode; kein eigenständiges Skript.

public void SetReceivingContainer() => UnsetReceivingContainer();

InjectionScript.Runtime.InjectionApiUO.TicksSkill

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3488.

public int TicksSkill()

Ergebnis: int.

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

public int TicksSkill() => ticksSkill;

InjectionScript.Runtime.InjectionApiUO.TicksUse

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3487.

public int TicksUse()

Ergebnis: int.

Aufrufe:

—

Interner Implementierungscode; kein eigenständiges Skript.

public int TicksUse() => ticksUse;

InjectionScript.Runtime.InjectionApiUO.Track

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue flagRaw, InjectionValue x, InjectionValue y

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6108.

public void Track(InjectionValue flagRaw, InjectionValue x, InjectionValue y)

Ergebnis: void.

Aufrufe:

  • Track
  • NumberConversions.ToInt

Interner Implementierungscode; kein eigenständiges Skript.

public void Track(InjectionValue flagRaw, InjectionValue x, InjectionValue y)

            => Track(NumberConversions.ToInt(flagRaw), NumberConversions.ToInt(x), NumberConversions.ToInt(y));

InjectionScript.Runtime.InjectionApiUO.UseType

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string type, string color

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4089.

public int UseType(string type, string color)

Ergebnis: int.

Aufrufe:

  • UseType
  • ResolveType
  • NumberConversions.ToInt

Interner Implementierungscode; kein eigenständiges Skript.

public int UseType(string type, string color) => UseType(ResolveType(type), NumberConversions.ToInt(color));

InjectionScript.Runtime.InjectionApiUO.WaitTargetObjectType

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue id, InjectionValue type, InjectionValue color

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4361.

public void WaitTargetObjectType(InjectionValue id, InjectionValue type, InjectionValue color)

Ergebnis: void.

Bedingungen:

  • first <= 0 || second <= 0

Aufrufe:

  • GetObject
  • bridge.FindType
  • ResolveType
  • NumberConversions.ToInt
  • SystemMessage
  • bridge.CancelNextTarget
  • bridge.WaitTargetObject

Interner Implementierungscode; kein eigenständiges Skript.

public void WaitTargetObjectType(InjectionValue id, InjectionValue type, InjectionValue color)

        {

            int first = GetObject(id);

            int second = bridge.FindType(ResolveType(type), NumberConversions.ToInt(color), 1, -1, false);

            if (first <= 0 || second <= 0)

            {

                SystemMessage("UO.WaitTargetObjectType: object or ground item not found");

                bridge.CancelNextTarget();

                return;

            }

            bridge.WaitTargetObject(first, second);

        }

InjectionScript.Runtime.InjectionApiUO.WaitTargetTile

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: InjectionValue selector

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4301.

public void WaitTargetTile(InjectionValue selector)

Ergebnis: void.

Bedingungen:

  • !name.Equals("lasttile", StringComparison.OrdinalIgnoreCase)
  • tile.Length < 4

Aufrufe:

  • (selector.String ?? string.Empty).Trim
  • name.Equals
  • bridge.LastTile
  • Array.Empty<int>
  • SystemMessage
  • bridge.CancelNextTarget
  • bridge.WaitTargetTile
  • Timer

Interner Implementierungscode; kein eigenständiges Skript.

public void WaitTargetTile(InjectionValue selector)

        {

            string name = selector.Kind == InjectionValueKind.String

                ? (selector.String ?? string.Empty).Trim()

                : string.Empty;

            if (!name.Equals("lasttile", StringComparison.OrdinalIgnoreCase))

                throw new NativeSubrutineException("UO.WaitTargetTile(one argument) accepts only 'lasttile'.");



            int[] tile = bridge.LastTile() ?? Array.Empty<int>();

            if (tile.Length < 4)

            {

                SystemMessage("UO.WaitTargetTile: lasttile is unavailable; next target request canceled.");

                bridge.CancelNextTarget();

                return;

            }

            bridge.WaitTargetTile(tile[0], tile[1], tile[2], tile[3]);

            ticksTarget = Timer();

        }

InjectionScript.Runtime.InjectionApiUO.RegisterCompactSearchApi [FindAnyType]

Der Aufruf führt den gespeicherten Handler-Delegate aus. Die Registrierungsmethode erzeugt ihn beim Aufbau der API.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4712.

values

Ergebnis: values.

Ergebnis: new InjectionValue(FindAnyType(values[0], CombineMask(values, 1))).

Aufrufe: FindAnyType, CombineMask.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

values => new InjectionValue(FindAnyType(values[0], CombineMask(values, 1)))

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [GetDexterity]

Der Aufruf führt den gespeicherten Handler-Delegate aus. Die Registrierungsmethode erzeugt ihn beim Aufbau der API.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1032.

Ergebnis: bridge.Dexterity.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

() => bridge.Dexterity

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [GetFollowers]

Der Aufruf führt den gespeicherten Handler-Delegate aus. Die Registrierungsmethode erzeugt ihn beim Aufbau der API.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1048.

Ergebnis: bridge.Followers.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

() => bridge.Followers

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases [ResistPhysical]

Der Aufruf führt den gespeicherten Handler-Delegate aus. Die Registrierungsmethode erzeugt ihn beim Aufbau der API.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1042.

Ergebnis: bridge.Armor.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

() => bridge.Armor

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases

Liefert den Wert des folgenden Ausdrucks.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.

Ergebnis: getter(bridge.Self).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

() => getter(bridge.Self)

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases

Liefert den Wert des folgenden Ausdrucks.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1013.

value

Ergebnis: value.

Ergebnis: getter(GetObject(value)).

Aufrufe: getter, GetObject.

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

value => getter(GetObject(value))

InjectionScript.Runtime.InjectionApiUO.RegisterCharacterGetterAliases

Liefert den Wert des folgenden Ausdrucks.

Parameter: Keine Parameter.

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.

Ergebnis: getter(bridge.Self).

Aufrufe:

Interner Implementierungscode; kein eigenständiges Skript.

() => getter(bridge.Self)

InjectionScript.Runtime.State.Globals.SetGlobal

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: string name, int value

Quelle: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/State/Globals.cs:43.

public void SetGlobal(string name, int value)

Ergebnis: void.

Aufrufe:

  • SetGlobal
  • value.ToString

Interner Implementierungscode; kein eigenständiges Skript.

public void SetGlobal(string name, int value) => SetGlobal(name, value.ToString(CultureInfo.InvariantCulture));

ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.InspectableGumpsUnsafe

Führt die gezeigten Aufrufe und Zustandsänderungen aus.

Parameter: Keine Parameter.

Quelle: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4252.

private List<Gump> InspectableGumpsUnsafe()

Ergebnis: List<Gump>.

Aufrufe:

  • `UIManager.Gumps.Where(g => ReferenceEquals(g.World, _world)

              && !g.IsDisposed && g.IsVisible && g is not YokoInfoGump)
    
              .Reverse().Select(g => (Gump)g.SessionState ?? g).Distinct().ToList`
    
  • `UIManager.Gumps.Where(g => ReferenceEquals(g.World, _world)

              && !g.IsDisposed && g.IsVisible && g is not YokoInfoGump)
    
              .Reverse().Select(g => (Gump)g.SessionState ?? g).Distinct`
    
  • `UIManager.Gumps.Where(g => ReferenceEquals(g.World, _world)

              && !g.IsDisposed && g.IsVisible && g is not YokoInfoGump)
    
              .Reverse().Select`
    
  • `UIManager.Gumps.Where(g => ReferenceEquals(g.World, _world)

              && !g.IsDisposed && g.IsVisible && g is not YokoInfoGump)
    
              .Reverse`
    
  • UIManager.Gumps.Where

  • ReferenceEquals

  • ServerGumpsUnsafe().Where(g => !visible.Contains(g)).Concat(visible).ToList

  • ServerGumpsUnsafe().Where(g => !visible.Contains(g)).Concat

  • ServerGumpsUnsafe().Where

  • ServerGumpsUnsafe

  • visible.Contains

Interner Implementierungscode; kein eigenständiges Skript.

private List<Gump> InspectableGumpsUnsafe()

        {

            // Inspector windows must not inspect themselves. Use session-owned

            // records for server dialogs and the actual controls for local UI.

            List<Gump> visible = UIManager.Gumps.Where(g => ReferenceEquals(g.World, _world)

                && !g.IsDisposed && g.IsVisible && g is not YokoInfoGump)

                .Reverse().Select(g => (Gump)g.SessionState ?? g).Distinct().ToList();

            return ServerGumpsUnsafe().Where(g => !visible.Contains(g)).Concat(visible).ToList();

        }
⚠️ **GitHub.com Fallback** ⚠️