Repository navigation
EN Runtime Helpers 1
uk · ru · en · de · fr · it · es · zh-tw · ja · ko
Internal implementation code; this is not a standalone script.
Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:116.
internal void Verify()
Result: void.
Calls: token.ThrowIfCancellationRequested, Cancellation.ThrowIfCancellationRequested, CSharpExecutionScope.VerifyActive.
Conditions: IsDisposed.
Calls:
-
ClassicUO.CSharp.CSharpExecutionScope.VerifyActive:CSharpExecutionScope.VerifyActive().
Internal implementation code; this is not a standalone script.
internal void Verify()
{
token.ThrowIfCancellationRequested();
Cancellation.ThrowIfCancellationRequested();
if (IsDisposed) throw new OperationCanceledException("The C# callback execution has ended.", token);
CSharpExecutionScope.VerifyActive();
}Checks the conditions below and returns the displayed result.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Configuration/ProfileManager.cs:372.
internal static bool ResetCurrentProfileToDefault()
Result: bool.
Result: false; true.
Calls: string.IsNullOrWhiteSpace, NewFromDefault, ValidateFields, SaveCurrentProfile, ClientFontManager.Invalidate.
Conditions: CurrentProfile == null || string.IsNullOrWhiteSpace(ProfilePath).
Calls:
-
ClassicUO.Configuration.ProfileManager.NewFromDefault:NewFromDefault(). -
ClassicUO.Configuration.ProfileManager.ValidateFields:ValidateFields(reset). -
ClassicUO.Configuration.ProfileManager.SaveCurrentProfile:SaveCurrentProfile(). -
ClassicUO.Game.Managers.ClientFontManager.Invalidate:ClientFontManager.Invalidate().
Internal implementation code; this is not a standalone script.
internal static bool ResetCurrentProfileToDefault()
{
if (CurrentProfile == null || string.IsNullOrWhiteSpace(ProfilePath))
return false;
string username = CurrentProfile.Username;
string serverName = CurrentProfile.ServerName;
string characterName = CurrentProfile.CharacterName;
Profile reset = NewFromDefault();
reset.Username = username;
reset.ServerName = serverName;
reset.CharacterName = characterName;
ValidateFields(reset);
CurrentProfile = reset;
SaveCurrentProfile();
ClientFontManager.Invalidate();
return true;
}Performs the displayed calls and state updates.
Parameters: runMount, runUnmount, walkMount, walkUnmount
Source: Project_Full/src/ClassicUO.Client/Game/Data/MovementSpeed.cs:32.
internal static void ConfigureYokoMovementTimers( int runMount, int runUnmount, int walkMount, int walkUnmount)
Result: void.
Calls: Math.Clamp.
Internal implementation code; this is not a standalone script.
internal static void ConfigureYokoMovementTimers(
int runMount, int runUnmount, int walkMount, int walkUnmount)
{
// Script settings may slow movement down, never exceed the client's
// standard cadence. Apply the floor here as well as in the runtime
// so old settings and direct bridge calls cannot bypass it.
_mountRunDelay = Math.Clamp(runMount, STEP_DELAY_MOUNT_RUN, 2000);
_runDelay = Math.Clamp(runUnmount, STEP_DELAY_RUN, 2000);
_mountWalkDelay = Math.Clamp(walkMount, STEP_DELAY_MOUNT_WALK, 2000);
_walkDelay = Math.Clamp(walkUnmount, STEP_DELAY_WALK, 2000);
}Checks the conditions below and returns the displayed result.
Parameters: g, index
Source: Project_Full/src/ClassicUO.Client/Game/Data/StaticFilters.cs:240.
public static bool IsTree(ushort g, out int index)
Result: bool.
Result: true; false.
Conditions: (flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP) != 0; (flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP_HATCHED) != 0.
Internal implementation code; this is not a standalone script.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsTree(ushort g, out int index)
{
STATIC_TILES_FILTER_FLAGS flag = _filteredTiles[g];
if ((flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP) != 0)
{
if ((flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP_HATCHED) != 0)
{
index = 0;
}
else
{
index = 1;
}
return true;
}
index = 0;
return false;
}Performs the displayed calls and state updates.
Parameters: text
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1958.
public void AddJournalIgnore(string text)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => JournalManager.AddYokoIgnoredText(text)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => JournalManager.AddYokoIgnoredText(text)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.JournalManager.AddYokoIgnoredText:JournalManager.AddYokoIgnoredText(text).
Internal implementation code; this is not a standalone script.
public void AddJournalIgnore(string text) => Invoke(() => JournalManager.AddYokoIgnoredText(text));Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1119.
public void CancelNextTarget()
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _manager.CancelNextServerTarget(_cancellationToken)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _manager.CancelNextServerTarget(_cancellationToken)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.YokoInjectionManager.CancelNextServerTarget:_manager.CancelNextServerTarget(_cancellationToken).
Internal implementation code; this is not a standalone script.
public void CancelNextTarget() => Invoke(() => _manager.CancelNextServerTarget(_cancellationToken));Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:702.
public void ClearContextMenu()
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ServerMenus.Context?.Dispose()). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ServerMenus.Context?.Dispose()). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public void ClearContextMenu() => Invoke(() => _world.ServerMenus.Context?.Dispose());Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:167.
public int FollowersMax
Result: int.
Result: Invoke(() => CurrentPlayer?.FollowersMax ?? 0).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => CurrentPlayer?.FollowersMax ?? 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => CurrentPlayer?.FollowersMax ?? 0). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public int FollowersMax => Invoke(() => CurrentPlayer?.FollowersMax ?? 0);Returns the value of the expression below.
Parameters: id
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2728.
public int GetColor(int id)
Result: int.
Result: WithEntity(id, e => e.Hue).
Calls: WithEntity.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.WithEntity:WithEntity(id, e => e.Hue).
Internal implementation code; this is not a standalone script.
public int GetColor(int id) => WithEntity(id, e => e.Hue);Returns the value of the expression below.
Parameters: id
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:232.
public int GetDexterity(int id)
Result: int.
Result: Invoke(() => _world.Player is { IsDestroyed: false } player && player.Serial == unchecked((uint)id) ? player.Dexterity : 0).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.Player is { IsDestroyed: false } player && player.Serial == unchecked((uint)id) ? player.Dexterity : 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.Player is { IsDestroyed: false } player && player.Serial == unchecked((uint)id) ? player.Dexterity : 0). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public int GetDexterity(int id) => Invoke(() => _world.Player is { IsDestroyed: false } player && player.Serial == unchecked((uint)id) ? player.Dexterity : 0);Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:199.
public int GetFindDistance()
Result: int.
Result: State.FindDistance.
Internal implementation code; this is not a standalone script.
public int GetFindDistance() => State.FindDistance;Returns the value of the expression below.
Parameters: gumpId, identifier, key
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2916.
public string GetGumpValue(int gumpId, string identifier, int key)
Result: string.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { Gump gump = ResolveGumpUnsafe(gumpId); if (gump == null) { return string.Empty; } List<Control> controls = Descendants(gump).ToList(); List<Control> buttons = controls.Where(IsButtonControl).ToList(); List<string> texts = controls.Select(GetControlText).Where(text => text != null).ToList(); switch ((identifier ?? string.Empty).ToLowerInvariant()) { case "serial": return $"0x{gump.LocalSerial:X8}"; case "gumpid": return $"0x{gump.ServerSerial:X8}"; case "injid": return ServerGumpsUnsafe().IndexOf(gump).ToString(CultureInfo.InvariantCulture); case "replyed": return "0"; case "inclient": return gump.IsDisposed ? "0" : "1"; case "buttonlen": return buttons.Count.ToString(CultureInfo.InvariantCulture); case "button": return key >= 0 && key < buttons.Count ? ControlButtonId(buttons[key]).ToString(CultureInfo.InvariantCulture) : "0"; case "textlen": return texts.Count.ToString(CultureInfo.InvariantCulture); case "text": return key >= 0 && key < texts.Count ? texts[key] : string.Empty; case "objectcount": return controls.Count.ToString(CultureInfo.InvariantCulture); case "object": return key >= 0 && key < controls.Count ? ControlTypeName(controls[key]) : string.Empty; case "command": return key >= 0 && key < controls.Count ? DescribeControl(controls[key]) : string.Empty; default: return string.Empty; } }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { Gump gump = ResolveGumpUnsafe(gumpId); if (gump == null) { return string.Empty; } List<Control> controls = Descendants(gump).ToList(); List<Control> buttons = controls.Where(IsButtonControl).ToList(); List<string> texts = controls.Select(GetControlText).Where(text => text != null).ToList(); switch ((identifier ?? string.Empty).ToLowerInvariant()) { case "serial": return $"0x{gump.LocalSerial:X8}"; case "gumpid": return $"0x{gump.ServerSerial:X8}"; case "injid": return ServerGumpsUnsafe().IndexOf(gump).ToString(CultureInfo.InvariantCulture); case "replyed": return "0"; case "inclient": return gump.IsDisposed ? "0" : "1"; case "buttonlen": return buttons.Count.ToString(CultureInfo.InvariantCulture); case "button": return key >= 0 && key < buttons.Count ? ControlButtonId(buttons[key]).ToString(CultureInfo.InvariantCulture) : "0"; case "textlen": return texts.Count.ToString(CultureInfo.InvariantCulture); case "text": return key >= 0 && key < texts.Count ? texts[key] : string.Empty; case "objectcount": return controls.Count.ToString(CultureInfo.InvariantCulture); case "object": return key >= 0 && key < controls.Count ? ControlTypeName(controls[key]) : string.Empty; case "command": return key >= 0 && key < controls.Count ? DescribeControl(controls[key]) : string.Empty; default: return string.Empty; } }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ResolveGumpUnsafe:ResolveGumpUnsafe(gumpId). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Descendants:Descendants(gump). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ServerGumpsUnsafe:ServerGumpsUnsafe(). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ControlButtonId:ControlButtonId(buttons[key]). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ControlTypeName:ControlTypeName(controls[key]). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.DescribeControl:DescribeControl(controls[key]).
Internal implementation code; this is not a standalone script.
public string GetGumpValue(int gumpId, string identifier, int key) => Invoke(() =>
{
Gump gump = ResolveGumpUnsafe(gumpId);
if (gump == null)
{
return string.Empty;
}
List<Control> controls = Descendants(gump).ToList();
List<Control> buttons = controls.Where(IsButtonControl).ToList();
List<string> texts = controls.Select(GetControlText).Where(text => text != null).ToList();
switch ((identifier ?? string.Empty).ToLowerInvariant())
{
case "serial": return $"0x{gump.LocalSerial:X8}";
case "gumpid": return $"0x{gump.ServerSerial:X8}";
case "injid": return ServerGumpsUnsafe().IndexOf(gump).ToString(CultureInfo.InvariantCulture);
case "replyed": return "0";
case "inclient": return gump.IsDisposed ? "0" : "1";
case "buttonlen": return buttons.Count.ToString(CultureInfo.InvariantCulture);
case "button": return key >= 0 && key < buttons.Count ? ControlButtonId(buttons[key]).ToString(CultureInfo.InvariantCulture) : "0";
case "textlen": return texts.Count.ToString(CultureInfo.InvariantCulture);
case "text": return key >= 0 && key < texts.Count ? texts[key] : string.Empty;
case "objectcount": return controls.Count.ToString(CultureInfo.InvariantCulture);
case "object": return key >= 0 && key < controls.Count ? ControlTypeName(controls[key]) : string.Empty;
case "command": return key >= 0 && key < controls.Count ? DescribeControl(controls[key]) : string.Empty;
default: return string.Empty;
}
});Returns the value of the expression below.
Parameters: id
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:234.
public int GetMana(int id)
Result: int.
Result: Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Mana ?? 0).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Mana ?? 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Mana ?? 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.World.Get:_world.Get(unchecked((uint)id)).
Internal implementation code; this is not a standalone script.
public int GetMana(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Mana ?? 0);Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1560.
public string GlobalChatActiveChannel()
Result: string.
Result: Invoke(() => _world.ChatManager.CurrentChannelName ?? string.Empty).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChatManager.CurrentChannelName ?? string.Empty). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChatManager.CurrentChannelName ?? string.Empty). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public string GlobalChatActiveChannel() => Invoke(() => _world.ChatManager.CurrentChannelName ?? string.Empty);Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1561.
public string[] GlobalChatChannels()
Result: string[].
Result: Invoke(() => _world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray()).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray()). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray()). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public string[] GlobalChatChannels() => Invoke(() => _world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray());Returns the value of the expression below.
Parameters: pattern, startTime, endTime, limit, ignoreCase
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1910.
public int InJournalBetweenTimesEx(string pattern, int startTime, int endTime, int limit, bool ignoreCase)
Result: int.
Result: FindJournal(pattern, start, end, limit, false, ignoreCase).
Calls: now.AddMilliseconds, Math.Max, Math.Min, FindJournal.
Internal implementation code; this is not a standalone script.
public int InJournalBetweenTimesEx(string pattern, int startTime, int endTime, int limit, bool ignoreCase)
{
DateTime now = DateTime.Now;
DateTime start = now.AddMilliseconds(-Math.Max(startTime, endTime));
DateTime end = now.AddMilliseconds(-Math.Min(startTime, endTime));
return FindJournal(pattern, start, end, limit, false, ignoreCase);
}Returns the value of the expression below.
Parameters: index
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1966.
public int JournalSerialInt(int index)
Result: int.
Result: GetJournalEntry(index) is JournalEntry entry ? unchecked((int)entry.Serial) : 0.
Calls: GetJournalEntry.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetJournalEntry:GetJournalEntry(index).
Internal implementation code; this is not a standalone script.
public int JournalSerialInt(int index) => GetJournalEntry(index) is JournalEntry entry ? unchecked((int)entry.Serial) : 0;Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:597.
public string LastMessage()
Result: string.
Result: GetJournalText(0).
Calls: GetJournalText.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetJournalText:GetJournalText(0).
Internal implementation code; this is not a standalone script.
public string LastMessage() => GetJournalText(0);Performs the displayed calls and state updates.
Parameters: key
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3133.
public void MakeStepByKey(int key)
Result: void.
Calls: Invoke.
Conditions: !State.MoveEnabled; direction.HasValue.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { _manager.StopFollowing(); _world.Player?.Walk(direction.Value, false); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { _manager.StopFollowing(); _world.Player?.Walk(direction.Value, false); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.YokoInjectionManager.StopFollowing:_manager.StopFollowing().
Internal implementation code; this is not a standalone script.
public void MakeStepByKey(int key)
{
if (!State.MoveEnabled)
{
return;
}
Direction? direction = key switch
{
33 => (Direction)0,
39 => (Direction)1,
34 => (Direction)2,
40 => (Direction)3,
35 => (Direction)4,
37 => (Direction)5,
36 => (Direction)6,
38 => (Direction)7,
>= 0 and <= 7 => (Direction)key,
_ => null
};
if (direction.HasValue)
{
Invoke(() =>
{
_manager.StopFollowing();
_world.Player?.Walk(direction.Value, false);
});
}
}Performs the displayed calls and state updates.
Parameters: delayMs, quantity, type, destination, x, y, z
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1272.
public void MassMove(int delayMs, int quantity, int type, int destination, int x, int y, int z)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _manager.MassMover.Configure(delayMs, quantity, type, destination, x, y, z)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _manager.MassMover.Configure(delayMs, quantity, type, destination, x, y, z)). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public void MassMove(int delayMs, int quantity, int type, int destination, int x, int y, int z)
=> Invoke(() => _manager.MassMover.Configure(delayMs, quantity, type, destination, x, y, z));Performs the displayed calls and state updates.
Parameters: type
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2135.
public void Morph(int type)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { if (_world.Player == null) { return; } if (_originalGraphic == 0) { _originalGraphic = _world.Player.Graphic; } _world.Player.Graphic = type == 0 ? _originalGraphic : (ushort)type; }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { if (_world.Player == null) { return; } if (_originalGraphic == 0) { _originalGraphic = _world.Player.Graphic; } _world.Player.Graphic = type == 0 ? _originalGraphic : (ushort)type; }). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public void Morph(int type) => Invoke(() =>
{
if (_world.Player == null)
{
return;
}
if (_originalGraphic == 0)
{
_originalGraphic = _world.Player.Graphic;
}
_world.Player.Graphic = type == 0 ? _originalGraphic : (ushort)type;
});Performs the displayed calls and state updates.
Parameters: down, up
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4001.
private static void MouseButton(uint down, uint up)
Result: void.
Calls: mouse_event.
Internal implementation code; this is not a standalone script.
private static void MouseButton(uint down, uint up)
{
mouse_event(down, 0, 0, 0, UIntPtr.Zero);
mouse_event(up, 0, 0, 0, UIntPtr.Zero);
}Checks the conditions below and returns the displayed result.
Parameters: id, amount, targetContainerId, x, y, z
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1159.
public int MoveItem(int id, int amount, int targetContainerId, int x, int y, int z)
Result: int.
Result: moved ? 1 : 0.
Calls: Invoke, Wait.
Conditions: moved && State.GrabDelay > 0.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => TryMoveItemRequest(id, amount, targetContainerId, x, y, z)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => TryMoveItemRequest(id, amount, targetContainerId, x, y, z)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.TryMoveItemRequest:TryMoveItemRequest(id, amount, targetContainerId, x, y, z). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Wait:Wait(State.GrabDelay).
Internal implementation code; this is not a standalone script.
public int MoveItem(int id, int amount, int targetContainerId, int x, int y, int z)
{
bool moved = Invoke(() => TryMoveItemRequest(id, amount, targetContainerId, x, y, z));
if (moved && State.GrabDelay > 0)
{
Wait(State.GrabDelay);
}
return moved ? 1 : 0;
}Performs the displayed calls and state updates.
Parameters: enabled
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1555.
public void PartyCanLoot(bool enabled)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { _world.Party.CanLoot = enabled; GameActions.RequestPartyLootState(enabled); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { _world.Party.CanLoot = enabled; GameActions.RequestPartyLootState(enabled); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.GameActions.RequestPartyLootState:GameActions.RequestPartyLootState(enabled).
Internal implementation code; this is not a standalone script.
public void PartyCanLoot(bool enabled) => Invoke(() =>
{
_world.Party.CanLoot = enabled;
GameActions.RequestPartyLootState(enabled);
});Returns the value of the expression below.
Parameters: serial, gumpId, triggerId
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2767.
public int SendGumpSelect(int serial, int gumpId, int triggerId)
Result: int.
Result: SendGumpSelect(serial, gumpId, triggerId, 0).
Calls: SendGumpSelect.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SendGumpSelect:SendGumpSelect(serial, gumpId, triggerId, 0).
Internal implementation code; this is not a standalone script.
public int SendGumpSelect(int serial, int gumpId, int triggerId)
=> SendGumpSelect(serial, gumpId, triggerId, 0);Performs the displayed calls and state updates.
Parameters: light
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1670.
public void SetLight(int light)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { byte value = (byte)Math.Max(0, Math.Min(30, light)); _world.Light.Overall = _world.Light.RealOverall = value; }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { byte value = (byte)Math.Max(0, Math.Min(30, light)); _world.Light.Overall = _world.Light.RealOverall = value; }). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public void SetLight(int light) => Invoke(() =>
{
byte value = (byte)Math.Max(0, Math.Min(30, light));
_world.Light.Overall = _world.Light.RealOverall = value;
});Performs the displayed calls and state updates.
Parameters: index, name
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:317.
public void SetScriptName(int index, string name)
Result: void.
Calls: _manager.SetScriptName.
Calls:
-
ClassicUO.Game.Managers.YokoInjectionManager.SetScriptName:_manager.SetScriptName(index, name).
Internal implementation code; this is not a standalone script.
public void SetScriptName(int index, string name) => _manager.SetScriptName(index, name);Performs the displayed calls and state updates.
Parameters: season
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1669.
public void SetSeason(int season)
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChangeSeason((Season)Math.Max(0, Math.Min(4, season)), -1)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.ChangeSeason((Season)Math.Max(0, Math.Min(4, season)), -1)). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.World.ChangeSeason:_world.ChangeSeason((Season)Math.Max(0, Math.Min(4, season)), -1).
Internal implementation code; this is not a standalone script.
public void SetSeason(int season) => Invoke(() => _world.ChangeSeason((Season)Math.Max(0, Math.Min(4, season)), -1));Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:169.
public int Sex
Result: int.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => CurrentPlayer is { } player ? Math.Max(0, ((int)player.Race - 1) * 2) + (player.IsFemale ? 1 : 0) : 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => CurrentPlayer is { } player ? Math.Max(0, ((int)player.Race - 1) * 2) + (player.IsFemale ? 1 : 0) : 0). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public int Sex => Invoke(() => CurrentPlayer is { } player
? Math.Max(0, ((int)player.Race - 1) * 2) + (player.IsFemale ? 1 : 0) : 0);Reads the current character value from the local client model.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:150.
public int Strength
Result: int.
Result: Invoke(() => _world.Player is { IsDestroyed: false } player ? player.Strength : 0).
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.Player is { IsDestroyed: false } player ? player.Strength : 0). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => _world.Player is { IsDestroyed: false } player ? player.Strength : 0). Overload candidates: the source does not establish which candidate is selected.
Internal implementation code; this is not a standalone script.
public int Strength => Invoke(() => _world.Player is { IsDestroyed: false } player ? player.Strength : 0);Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1743.
public void TextOpen()
Result: void.
Calls: Invoke.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { YokoTextWindowGump.Show(_world, _textWindow); ReportStatus("UO.TextOpen: text window is visible"); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Invoke:Invoke(() => { YokoTextWindowGump.Show(_world, _textWindow); ReportStatus("UO.TextOpen: text window is visible"); }). Overload candidates: the source does not establish which candidate is selected. -
ClassicUO.Game.UI.Gumps.YokoTextWindowGump.Show:YokoTextWindowGump.Show(_world, _textWindow). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReportStatus:ReportStatus("UO.TextOpen: text window is visible").
Internal implementation code; this is not a standalone script.
public void TextOpen()
{
_textWindowOpen = true;
Invoke(() =>
{
YokoTextWindowGump.Show(_world, _textWindow);
ReportStatus("UO.TextOpen: text window is visible");
});
}Performs the displayed calls and state updates.
Parameters: ms
Source: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:184.
public void Wait(int ms)
Result: void.
Calls: _cancellationToken.ThrowIfCancellationRequested, _cancellationToken.WaitHandle.WaitOne.
Conditions: ms <= 0; _cancellationToken.WaitHandle.WaitOne(ms).
Internal implementation code; this is not a standalone script.
public void Wait(int ms)
{
if (ms <= 0)
{
_cancellationToken.ThrowIfCancellationRequested();
return;
}
if (_cancellationToken.WaitHandle.WaitOne(ms))
{
_cancellationToken.ThrowIfCancellationRequested();
}
}Performs the displayed calls and state updates.
Parameters: serial, entry
Source: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:975.
internal void SetContextMenuHook(uint serial, int entry)
Result: void.
Internal implementation code; this is not a standalone script.
internal void SetContextMenuHook(uint serial, int entry)
{
_contextMenuSerial = serial;
_contextMenuEntry = entry;
}Performs the displayed calls and state updates.
Parameters: enabled
Source: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:727.
internal void SetWeatherFilter(bool enabled)
Result: void.
Calls: _world.Weather.Reset.
Conditions: enabled.
Internal implementation code; this is not a standalone script.
internal void SetWeatherFilter(bool enabled)
{
_weatherFilterEnabled = enabled;
if (enabled) _world.Weather.Reset();
}Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3154.
public void StopAll()
Result: void.
Calls: TerminateProcedures.
Calls:
-
ClassicUO.Game.Managers.YokoInjectionManager.TerminateProcedures:TerminateProcedures("all").
Internal implementation code; this is not a standalone script.
public void StopAll()
{
TerminateProcedures("all");
}Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:290.
internal void StopFollowing()
Result: void.
Calls: .Stop.
Internal implementation code; this is not a standalone script.
internal void StopFollowing() => _follow?.Stop();Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4309.
public void CancelTarget()
Result: void.
Calls: bridge.GetWaitTargetQueue, bridge.IsTargeting, bridge.CancelTarget, SystemMessage.
Conditions: waitTargetQueue.Length > 0 || bridge.IsTargeting() != 0.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetWaitTargetQueue:bridge.GetWaitTargetQueue(). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsTargeting:bridge.IsTargeting(). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.CancelTarget:bridge.CancelTarget(). -
InjectionScript.Runtime.InjectionApiUO.SystemMessage:SystemMessage("Targeting cancelled"). -
InjectionScript.Runtime.InjectionApiUO.SystemMessage:SystemMessage("Error: no target to cancel").
Internal implementation code; this is not a standalone script.
public void CancelTarget()
{
var waitTargetQueue = bridge.GetWaitTargetQueue();
if (waitTargetQueue.Length > 0 || bridge.IsTargeting() != 0)
{
bridge.CancelTarget();
SystemMessage("Targeting cancelled");
}
else
SystemMessage("Error: no target to cancel");
}Checks the conditions below and returns the displayed result.
Parameters: value
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6385.
private int ConvertClientSearchContainer(InjectionValue value)
Result: int.
Result: 1; -1; serial; container == 0 || container == -1 ? 1 : container.
Calls: value.String.Trim, name.Equals, NumberConversions.TryStr2Int, TryGetObject, NumberConversions.ToInt.
Conditions: value.Kind == InjectionValueKind.String; name.Equals("ground", StringComparison.OrdinalIgnoreCase); name.Equals("my", StringComparison.OrdinalIgnoreCase); !NumberConversions.TryStr2Int(name, out container).
Calls:
-
InjectionScript.Runtime.NumberConversions.TryStr2Int:NumberConversions.TryStr2Int(name, out container). -
InjectionScript.Runtime.InjectionApiUO.TryGetObject:TryGetObject(name, out int serial). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(value).
Internal implementation code; this is not a standalone script.
private int ConvertClientSearchContainer(InjectionValue value)
{
int container;
if (value.Kind == InjectionValueKind.String)
{
string name = value.String.Trim();
if (name.Equals("ground", StringComparison.OrdinalIgnoreCase)) return 1;
if (name.Equals("my", StringComparison.OrdinalIgnoreCase)) return -1;
if (!NumberConversions.TryStr2Int(name, out container))
{
if (TryGetObject(name, out int serial)) return serial;
throw new NativeSubrutineException($"Unknown search container '{name}'. Use ground, backpack, an object name or a serial.");
}
}
else container = NumberConversions.ToInt(value);
// Ground() returns zero. Retain the historical Stealth -1 sentinel
// as well, without changing compact APIs where -1 means inventory.
return container == 0 || container == -1 ? 1 : container;
}Performs the displayed calls and state updates.
Parameters: fromX, fromY, toX, toY
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5270.
public void Drag(int fromX, int fromY, int toX, int toY)
Result: void.
Calls: bridge.Drag.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Drag:bridge.Drag(fromX, fromY, toX, toY).
Internal implementation code; this is not a standalone script.
public void Drag(int fromX, int fromY, int toX, int toY) => bridge.Drag(fromX, fromY, toX, toY);Performs the displayed calls and state updates.
Parameters: layer, type
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5717.
public void EquipT(InjectionValue layer, InjectionValue type)
Result: void.
Calls: bridge.FindType, ResolveType, SystemMessage, Equip, bridge.Equip, NumberConversions.ToInt.
Conditions: obj == 0; layer.Kind == InjectionValueKind.String.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FindType:bridge.FindType(ResolveType(type), -1, bridge.Backpack, -1, true). -
InjectionScript.Runtime.InjectionApiUO.ResolveType:ResolveType(type). -
InjectionScript.Runtime.InjectionApiUO.SystemMessage:SystemMessage("No item found."). -
InjectionScript.Runtime.InjectionApiUO.Equip:Equip(layer.String, obj). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Equip:bridge.Equip(NumberConversions.ToInt(layer), obj). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(layer). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Backpack:bridge.Backpack.
Internal implementation code; this is not a standalone script.
public void EquipT(InjectionValue layer, InjectionValue type)
{
var obj = bridge.FindType(ResolveType(type), -1, bridge.Backpack, -1, true);
if (obj == 0)
{
SystemMessage("No item found.");
return;
}
if (layer.Kind == InjectionValueKind.String)
Equip(layer.String, obj);
else
bridge.Equip(NumberConversions.ToInt(layer), obj);
}Returns the value of the expression below.
Parameters: layer, type
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5905.
public int Equipt(int layer, int type)
Result: int.
Result: item == 0 ? 0 : bridge.Equip(layer, item).
Calls: bridge.FindType, bridge.Equip.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.FindType:bridge.FindType(type, -1, bridge.Backpack, -1, true). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Equip:bridge.Equip(layer, item). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Backpack:bridge.Backpack.
Internal implementation code; this is not a standalone script.
public int Equipt(int layer, int type)
{
int item = bridge.FindType(type, -1, bridge.Backpack, -1, true);
return item == 0 ? 0 : bridge.Equip(layer, item);
}Returns the value of the expression below.
Parameters: x, y, z, accuracy, running, accuracyZ, optimized, stepCallback
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1225.
`int MoveTo(int x, int y, int z, int accuracy, bool running, int accuracyZ = 255,
bool optimized = true, string stepCallback = null)`
Result: int.
Result: MoveToCanonical(x, y, z, accuracy, running, accuracyZ, optimized, stepCallback).
Calls: MoveToCanonical.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.MoveToCanonical:MoveToCanonical(x, y, z, accuracy, running, accuracyZ, optimized, stepCallback).
Internal implementation code; this is not a standalone script.
int MoveTo(int x, int y, int z, int accuracy, bool running, int accuracyZ = 255,
bool optimized = true, string stepCallback = null)
=> MoveToCanonical(x, y, z, accuracy, running, accuracyZ, optimized, stepCallback);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1376.
Result: new InjectionValue(bridge.Armor).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Armor:bridge.Armor.
Internal implementation code; this is not a standalone script.
case "armor": return new InjectionValue(bridge.Armor);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1798.
Result: InjectionValue.Unit.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(1). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.BookSetPageText:bridge.BookSetPageText(page + 1, state.BookPages[page]).
Internal implementation code; this is not a standalone script.
case "booksetpagetext":
{
int page = Math.Max(0, Arg(0) - 1);
while (state.BookPages.Count <= page) state.BookPages.Add(string.Empty);
state.BookPages[page] = Text(1);
bridge.BookSetPageText(page + 1, state.BookPages[page]);
return InjectionValue.Unit;
}This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1819.
Result: InjectionValue.Unit.
Internal implementation code; this is not a standalone script.
case "clearbadlocationlist": state.BadLocations.Clear(); return InjectionValue.Unit;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2030.
Result: InjectionValue.Unit.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ClearJournalIgnore:bridge.ClearJournalIgnore().
Internal implementation code; this is not a standalone script.
case "clearjournalignore": bridge.ClearJournalIgnore(); return InjectionValue.Unit;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1544.
Result: InjectionValue.Unit; new InjectionValue(state.DressSpeed).
Conditions: arguments.Length > 0.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.SetDressSpeed:SetDressSpeed(Arg(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0).
Internal implementation code; this is not a standalone script.
case "dressspeed":
if (arguments.Length > 0) { SetDressSpeed(Arg(0)); return InjectionValue.Unit; }
return new InjectionValue(state.DressSpeed);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1522.
Result: new InjectionValue(bridge.GetScriptName(Arg(0))).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetScriptName:bridge.GetScriptName(Arg(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0).
Internal implementation code; this is not a standalone script.
case "getscriptname": return new InjectionValue(bridge.GetScriptName(Arg(0)));This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1578.
Result: new InjectionValue(bridge.GetSkillValue(Text(0), true, false)).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetSkillValue:bridge.GetSkillValue(Text(0), true, false). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
Internal implementation code; this is not a standalone script.
case "getskillcurrentvalue": return new InjectionValue(bridge.GetSkillValue(Text(0), true, false));This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1247.
Result: new InjectionValue(CompactGrab(arguments)).
Calls:
-
InjectionScript.Runtime.InjectionApiUO.CompactGrab:CompactGrab(arguments).
Internal implementation code; this is not a standalone script.
case "grab": return new InjectionValue(CompactGrab(arguments));This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1488.
Result: new InjectionValue(0).
Internal implementation code; this is not a standalone script.
case "ground": return new InjectionValue(0);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1956.
Result: new InjectionValue(httpHeader).
Internal implementation code; this is not a standalone script.
case "http_header": return new InjectionValue(httpHeader);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1504.
Result: new InjectionValue(bridge.IsFemale(Arg(0, bridge.Self))).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsFemale:bridge.IsFemale(Arg(0, bridge.Self)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0, bridge.Self). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
Internal implementation code; this is not a standalone script.
case "isfemale": return new InjectionValue(bridge.IsFemale(Arg(0, bridge.Self)));This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1599.
Result: new InjectionValue(bridge.GetGumpCount() > 0 ? 1 : 0).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetGumpCount:bridge.GetGumpCount().
Internal implementation code; this is not a standalone script.
case "isgump": return new InjectionValue(bridge.GetGumpCount() > 0 ? 1 : 0);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1296.
Result: new InjectionValue(bridge.LastAttack).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.LastAttack:bridge.LastAttack.
Internal implementation code; this is not a standalone script.
case "lastattack":
case "wartargetid": return new InjectionValue(bridge.LastAttack);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1683.
Result: new InjectionValue(MoveTo(Arg(0), Arg(1), bridge.GetZ(bridge.Self), Arg(3), Arg(4) != 0, 255, Arg(2) != 0)).
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::MoveTo:MoveTo(Arg(0), Arg(1), bridge.GetZ(bridge.Self), Arg(3), Arg(4) != 0, 255, Arg(2) != 0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetZ:bridge.GetZ(bridge.Self). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(3). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(4). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(2). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
Internal implementation code; this is not a standalone script.
case "movexy":
return new InjectionValue(MoveTo(Arg(0), Arg(1), bridge.GetZ(bridge.Self), Arg(3), Arg(4) != 0, 255, Arg(2) != 0));This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1703.
Result: InjectionValue.Unit.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.PartySay:bridge.PartySay(Text(0), 0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
Internal implementation code; this is not a standalone script.
case "partysay": bridge.PartySay(Text(0), 0); return InjectionValue.Unit;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1860.
Result: new InjectionValue(bridge.GetStaticTiles(Arg(0), Arg(1), Arg(2)).Select(value => new InjectionValue(value)).ToArray()).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetStaticTiles:bridge.GetStaticTiles(Arg(0), Arg(1), Arg(2)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(2).
Internal implementation code; this is not a standalone script.
case "readstaticsxy":
return new InjectionValue(bridge.GetStaticTiles(Arg(0), Arg(1), Arg(2)).Select(value => new InjectionValue(value)).ToArray());This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1821.
Result: InjectionValue.Unit.
Conditions: x < 0 || x > ushort.MaxValue || y < 0 || y > ushort.MaxValue.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1).
Internal implementation code; this is not a standalone script.
case "setbadlocation":
{
int x = Arg(0), y = Arg(1);
if (x < 0 || x > ushort.MaxValue || y < 0 || y > ushort.MaxValue)
throw new NativeSubrutineException("UO.SetBadLocation requires world X/Y in 0..65535.");
state.BadLocations.Add(x + "," + y);
return InjectionValue.Unit;
}This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1989.
Result: InjectionValue.Unit.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.SetDress:SetDress("__stealth_saved_set__").
Internal implementation code; this is not a standalone script.
case "setdress": SetDress("__stealth_saved_set__"); return InjectionValue.Unit;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1990.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.TradeCheck:bridge.TradeCheck(Arg(0), tradeSide - 1, 0, false). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0).
Internal implementation code; this is not a standalone script.
case "tradecheck":
// The compatibility reader uses participants 1/2; the legacy
// one/three-argument forms use checkbox indices 0/1.
int tradeSide = Arg(1);
return new InjectionValue(tradeSide is 1 or 2
? bridge.TradeCheck(Arg(0), tradeSide - 1, 0, false) : 0);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1334.
Result: new InjectionValue(state.MoveThroughCorner).
Conditions: arguments.Length > 0.
Calls:
Internal implementation code; this is not a standalone script.
case "movethroughcorner": if (arguments.Length > 0) state.MoveThroughCorner = Arg(0) != 0 ? 1 : 0; return new InjectionValue(state.MoveThroughCorner);This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
Internal implementation code; this is not a standalone script.
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
Internal implementation code; this is not a standalone script.
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3019.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RenameMobile:bridge.RenameMobile(Arg(0, bridge.LastTarget), Text(1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(0, bridge.LastTarget). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Text:Text(1). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.LastTarget:bridge.LastTarget.
Internal implementation code; this is not a standalone script.
case "rename": bridge.RenameMobile(Arg(0, bridge.LastTarget), Text(1)); break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3029.
Conditions: arguments.Length > 1.
Calls:
-
InjectionScript.Runtime.State.RuntimeDictionary.Set:state.Objects.Set(Text(0), Arg(1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Text:Text(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(1).
Internal implementation code; this is not a standalone script.
case "setdefault":
if (arguments.Length > 1) state.Objects.Set(Text(0), Arg(1));
break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3053.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ShowJournal:bridge.ShowJournal().
Internal implementation code; this is not a standalone script.
case "showjournal": bridge.ShowJournal(); break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3081.
Internal implementation code; this is not a standalone script.
case "shutdownwindows":
throw new NativeSubrutineException("shutdownwindows is intentionally blocked: scripts may not shut down Windows.");This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3054.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.UseObject:bridge.UseObject(Arg(0, bridge.LastTarget)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(0, bridge.LastTarget). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.LastTarget:bridge.LastTarget.
Internal implementation code; this is not a standalone script.
case "snoop": bridge.UseObject(Arg(0, bridge.LastTarget)); break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3074.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.UnsetReceivingContainer:UnsetReceivingContainer().
Internal implementation code; this is not a standalone script.
case "unsetcatchbag": UnsetReceivingContainer(); break;This branch handles only the specified command name.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3062.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.SetGumpValue:bridge.SetGumpValue(-1, "textentry", Arg(index), Text(index + 1)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Arg:Arg(index). -
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::Text:Text(index + 1).
Internal implementation code; this is not a standalone script.
case "waitgumpentry":
for (int index = 0; index + 1 < arguments.Length; index += 2)
bridge.SetGumpValue(-1, "textentry", Arg(index), Text(index + 1));
break;Checks the conditions below and returns the displayed result.
Parameters: type, notoriety, distance, nearest, maxZ, color, includeSelf
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4974.
`private int FindFilteredMobileSerial(int type, InjectionValue notoriety, int distance, bool nearest,
int maxZ, int color, bool includeSelf)`
Result: int.
Result: mobiles.FirstOrDefault().
Calls: FilterMobiles, mobiles.OrderBy(id => bridge.GetDistance(id)).ThenBy, mobiles.OrderBy, mobiles.FirstOrDefault.
Conditions: nearest.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.FilterMobiles:FilterMobiles(distance, notoriety, new InjectionValue(type), maxZ, color, includeSelf). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetDistance:bridge.GetDistance(id).
Internal implementation code; this is not a standalone script.
private int FindFilteredMobileSerial(int type, InjectionValue notoriety, int distance, bool nearest,
int maxZ, int color, bool includeSelf)
{
IEnumerable<int> mobiles = FilterMobiles(distance, notoriety, new InjectionValue(type), maxZ, color, includeSelf);
if (nearest)
mobiles = mobiles.OrderBy(id => bridge.GetDistance(id)).ThenBy(id => id);
return mobiles.FirstOrDefault();
}Returns the value of the expression below.
Parameters: index
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3284.
public string GListPosName(int index)
Result: string.
Result: index >= 0 && index < globalList.Count ? globalList[index].Key : string.Empty.
Internal implementation code; this is not a standalone script.
public string GListPosName(int index) => index >= 0 && index < globalList.Count ? globalList[index].Key : string.Empty;Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5492.
public int GetFoundedTextTimer()
Result: int.
Result: selectedJournalEntry != null ? JournalEntryTime(selectedJournalEntry.Timestamp) : 0.
Calls: JournalEntryTime.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.JournalEntryTime:JournalEntryTime(selectedJournalEntry.Timestamp).
Internal implementation code; this is not a standalone script.
public int GetFoundedTextTimer() => selectedJournalEntry != null ? JournalEntryTime(selectedJournalEntry.Timestamp) : 0;Returns the value of the expression below.
Parameters: x, y, index
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6202.
public InjectionValue GetStaticTileAt(InjectionValue x, InjectionValue y, InjectionValue index)
Result: InjectionValue.
Result: GetStaticTileAt(x, y, new InjectionValue(bridge.WorldNumber), index).
Calls: GetStaticTileAt.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.GetStaticTileAt:GetStaticTileAt(x, y, new InjectionValue(bridge.WorldNumber), index). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.WorldNumber:bridge.WorldNumber.
Internal implementation code; this is not a standalone script.
public InjectionValue GetStaticTileAt(InjectionValue x, InjectionValue y, InjectionValue index)
=> GetStaticTileAt(x, y, new InjectionValue(bridge.WorldNumber), index);Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4369.
public int Grab()
Result: int.
Result: bridge.RequestInteractiveGrabTarget().
Calls: bridge.RequestInteractiveGrabTarget.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RequestInteractiveGrabTarget:bridge.RequestInteractiveGrabTarget().
Internal implementation code; this is not a standalone script.
public int Grab() => bridge.RequestInteractiveGrabTarget();Returns the value of the expression below.
Parameters: idText
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3767.
public int Hidden(string idText)
Result: int.
Result: Hidden(GetObject(idText)).
Calls: Hidden, GetObject.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.Hidden:Hidden(GetObject(idText)). -
InjectionScript.Runtime.InjectionApiUO.GetObject:GetObject(idText).
Internal implementation code; this is not a standalone script.
public int Hidden(string idText) => Hidden(GetObject(idText));Performs the displayed calls and state updates.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3184.
public void Hide()
Result: void.
Calls: bridge.RequestInteractiveHideTarget.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.RequestInteractiveHideTarget:bridge.RequestInteractiveHideTarget().
Internal implementation code; this is not a standalone script.
public void Hide()
{
// Action command: the bridge owns UI/error reporting. A missing/non-interactive
// target surface must not turn a void compatibility command into a script failure.
bridge.RequestInteractiveHideTarget();
}Performs the displayed calls and state updates.
Parameters: serial
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3191.
public void Hide(InjectionValue serial)
Result: void.
Calls: bridge.ClientHide, NumberConversions.ToInt.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ClientHide:bridge.ClientHide(NumberConversions.ToInt(serial)). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(serial).
Internal implementation code; this is not a standalone script.
public void Hide(InjectionValue serial)
{
bridge.ClientHide(NumberConversions.ToInt(serial));
}Returns the value of the expression below.
Parameters: value
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3787.
public string Int2Hex(InjectionValue value)
Result: string.
Result: NumberConversions.ToHex(NumberConversions.ToInt(value)).
Calls: NumberConversions.ToHex, NumberConversions.ToInt.
Calls:
-
InjectionScript.Runtime.NumberConversions.ToHex:NumberConversions.ToHex(NumberConversions.ToInt(value)). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(value).
Internal implementation code; this is not a standalone script.
public string Int2Hex(InjectionValue value) => NumberConversions.ToHex(NumberConversions.ToInt(value));Returns the value of the expression below.
Parameters: id
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3643.
public int IsNpc(int id)
Result: int.
Result: bridge.IsNpc(id).
Calls: bridge.IsNpc.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsNpc:bridge.IsNpc(id).
Internal implementation code; this is not a standalone script.
public int IsNpc(int id) => bridge.IsNpc(id);Returns the value of the expression below.
Parameters: x, y
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3307.
public int IsWaterTile(InjectionValue x, InjectionValue y)
Result: int.
Result: bridge.IsWaterTile(NumberConversions.ToInt(x), NumberConversions.ToInt(y)).
Calls: bridge.IsWaterTile, NumberConversions.ToInt.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.IsWaterTile:bridge.IsWaterTile(NumberConversions.ToInt(x), NumberConversions.ToInt(y)). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(x). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(y).
Internal implementation code; this is not a standalone script.
public int IsWaterTile(InjectionValue x, InjectionValue y) => bridge.IsWaterTile(NumberConversions.ToInt(x), NumberConversions.ToInt(y));Returns the value of the expression below.
Parameters: index
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5411.
public string JournalSerial(int index)
Result: string.
Result: bridge.JournalSerial(index).
Calls: bridge.JournalSerial.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.JournalSerial:bridge.JournalSerial(index).
Internal implementation code; this is not a standalone script.
public string JournalSerial(int index) => bridge.JournalSerial(index);Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3796.
public int LastTargetY()
Result: int.
Result: bridge is ITargetSnapshotBridge snapshot ? snapshot.LastTargetY : bridge.GetY(bridge.LastTarget).
Calls: bridge.GetY.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetY:bridge.GetY(bridge.LastTarget). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.LastTarget:bridge.LastTarget.
Internal implementation code; this is not a standalone script.
public int LastTargetY() => bridge is ITargetSnapshotBridge snapshot ? snapshot.LastTargetY : bridge.GetY(bridge.LastTarget);Checks the conditions below and returns the displayed result.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3529.
public int Move()
Result: int.
Result: result.
Calls: bridge.Move, Timer.
Conditions: result != 0.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Move:bridge.Move(). -
InjectionScript.Runtime.InjectionApiUO.Timer:Timer().
Internal implementation code; this is not a standalone script.
public int Move()
{
int result = bridge.Move();
if (result != 0)
ticksAnim = Timer();
return result;
}Performs the displayed calls and state updates.
Parameters: id
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3930.
public void OpenContainer(InjectionValue id)
Result: void.
Calls: bridge.OpenContainer, GetObject.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.OpenContainer:bridge.OpenContainer(GetObject(id), 0). -
InjectionScript.Runtime.InjectionApiUO.GetObject:GetObject(id).
Internal implementation code; this is not a standalone script.
public void OpenContainer(InjectionValue id) => bridge.OpenContainer(GetObject(id), 0);Performs the displayed calls and state updates.
Parameters: x, y, z
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3505.
public void PMove(int x, int y, int z)
Result: void.
Calls: PMove.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.PMove:PMove(x, y).
Internal implementation code; this is not a standalone script.
public void PMove(int x, int y, int z) => PMove(x, y);Performs the displayed calls and state updates.
Parameters: id, timeout
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3929.
public void ReceiveObjectName(InjectionValue id, InjectionValue timeout)
Result: void.
Calls: bridge.ReceiveObjectName, GetObject, NumberConversions.ToInt.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ReceiveObjectName:bridge.ReceiveObjectName(GetObject(id), NumberConversions.ToInt(timeout)). -
InjectionScript.Runtime.InjectionApiUO.GetObject:GetObject(id). -
InjectionScript.Runtime.NumberConversions.ToInt:NumberConversions.ToInt(timeout).
Internal implementation code; this is not a standalone script.
public void ReceiveObjectName(InjectionValue id, InjectionValue timeout) => bridge.ReceiveObjectName(GetObject(id), NumberConversions.ToInt(timeout));These functions register the API. They do not run again for every command call.
Parameters: getter, names
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:981.
void AddInteger(Func<int> getter, params string[] names)
Result: void.
Calls: metadata.NativeSubrutineExists, metadata.Add, metadata.IntrinsicVariableExists, metadata.AddIntrinsicVariable.
Conditions: !metadata.NativeSubrutineExists(name, 0); !metadata.IntrinsicVariableExists(name).
Calls:
-
InjectionScript.Runtime.Metadata.NativeSubrutineExists:metadata.NativeSubrutineExists(name, 0). -
InjectionScript.Runtime.Metadata.Add:metadata.Add(new NativeSubrutineDefinition(name, getter)). -
InjectionScript.Runtime.Metadata.IntrinsicVariableExists:metadata.IntrinsicVariableExists(name). -
InjectionScript.Runtime.Metadata.AddIntrinsicVariable:metadata.AddIntrinsicVariable(new NativeSubrutineDefinition(name, getter)).
Internal implementation code; this is not a standalone script.
void AddInteger(Func<int> getter, params string[] names)
{
foreach (string shortName in names)
{
string name = "UO." + shortName;
if (!metadata.NativeSubrutineExists(name, 0))
metadata.Add(new NativeSubrutineDefinition(name, getter));
if (!metadata.IntrinsicVariableExists(name))
metadata.AddIntrinsicVariable(new NativeSubrutineDefinition(name, getter));
}
}Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3366.
public int TicksTarget()
Result: int.
Result: ticksTarget.
Internal implementation code; this is not a standalone script.
public int TicksTarget() => ticksTarget;Returns the value of the expression below.
Parameters: abilityName
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5886.
public int UseAbility(string abilityName)
Result: int.
Result: abilityId > 0 ? bridge.UseAbility(abilityId) : 0.
Calls: bridge.ResolveAbility, bridge.UseAbility.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ResolveAbility:bridge.ResolveAbility(abilityName). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.UseAbility:bridge.UseAbility(abilityId).
Internal implementation code; this is not a standalone script.
public int UseAbility(string abilityName)
{
int abilityId = bridge.ResolveAbility(abilityName);
return abilityId > 0 ? bridge.UseAbility(abilityId) : 0;
}Performs the displayed calls and state updates.
Parameters: prompt, choice
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3259.
public void WaitMenu(string prompt, string choice)
Result: void.
Calls: bridge.WaitMenu.
Internal implementation code; this is not a standalone script.
public void WaitMenu(string prompt, string choice)
=> bridge.WaitMenu(prompt, choice);Returns the value of the expression below.
Parameters: delay, menuCount
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3310.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount)
Result: int.
Result: WaitingForMenu(delay, menuCount, InjectionValue.Zero, new InjectionValue(string.Empty), InjectionValue.Zero).
Calls: WaitingForMenu.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.WaitingForMenu:WaitingForMenu(delay, menuCount, InjectionValue.Zero, new InjectionValue(string.Empty), InjectionValue.Zero).
Internal implementation code; this is not a standalone script.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount) => WaitingForMenu(delay, menuCount, InjectionValue.Zero, new InjectionValue(string.Empty), InjectionValue.Zero);Returns the value of the expression below.
Parameters: delay, menuCount, blockMenu, menuName
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3312.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount, InjectionValue blockMenu, InjectionValue menuName)
Result: int.
Result: WaitingForMenu(delay, menuCount, blockMenu, menuName, InjectionValue.Zero).
Calls: WaitingForMenu.
Calls:
-
InjectionScript.Runtime.InjectionApiUO.WaitingForMenu:WaitingForMenu(delay, menuCount, blockMenu, menuName, InjectionValue.Zero).
Internal implementation code; this is not a standalone script.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount, InjectionValue blockMenu, InjectionValue menuName) => WaitingForMenu(delay, menuCount, blockMenu, menuName, InjectionValue.Zero);The call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1032.
Result: bridge.Dexterity.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Dexterity:bridge.Dexterity.
Internal implementation code; this is not a standalone script.
() => bridge.DexterityThe call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1058.
Internal implementation code; this is not a standalone script.
IsDeadStateThe call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1024.
Result: bridge.GetHP(bridge.Self).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetHP:bridge.GetHP(bridge.Self). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
Internal implementation code; this is not a standalone script.
() => bridge.GetHP(bridge.Self)The call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1028.
Result: bridge.Stamina.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Stamina:bridge.Stamina.
Internal implementation code; this is not a standalone script.
() => bridge.StaminaThe call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1063.
serial
Result: serial.
Result: bridge.GetLocked(serial).
Calls: bridge.GetLocked.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetLocked:bridge.GetLocked(serial).
Internal implementation code; this is not a standalone script.
serial => bridge.GetLocked(serial)The call executes the stored handler delegate. The registration method creates this delegate while building the API.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1062.
serial
Result: serial.
Result: bridge.Poisoned(serial).
Calls: bridge.Poisoned.
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Poisoned:bridge.Poisoned(serial).
Internal implementation code; this is not a standalone script.
serial => bridge.Poisoned(serial)Returns the value of the expression below.
Parameters: No parameters.
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.
Result: getter(bridge.Self).
Calls:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
Internal implementation code; this is not a standalone script.
() => getter(bridge.Self)Returns the value of the expression below.
Parameters: name, arguments, definition
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/Metadata.cs:20.
public bool TryGetNativeSubrutine(string name,IEnumerable<InjectionValue> arguments,out NativeSubrutineDefinition definition)
Result: bool.
Result: nativeSubrutines.TryGet(name,arguments,out definition).
Calls: nativeSubrutines.TryGet.
Calls:
-
InjectionScript.Runtime.NativeSubrutineMetadata.TryGet:nativeSubrutines.TryGet(name,arguments,out definition).
Internal implementation code; this is not a standalone script.
public bool TryGetNativeSubrutine(string name,IEnumerable<InjectionValue> arguments,out NativeSubrutineDefinition definition) => nativeSubrutines.TryGet(name,arguments,out definition);Performs the displayed calls and state updates.
Parameters: subrutineDef
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/NativeSubrutineMetadata.cs:24.
public void Add(NativeSubrutineDefinition subrutineDef)
Result: void.
Calls: subrutines.Add, subrutineDef.GetSignature, byName.TryGetValue, byName.Add, arities.TryGetValue, arities.Add, overloads.Add.
Conditions: !byName.TryGetValue(subrutineDef.Name, out var arities); !arities.TryGetValue(subrutineDef.ArgumentCount, out var overloads).
Internal implementation code; this is not a standalone script.
public void Add(NativeSubrutineDefinition subrutineDef)
{
subrutines.Add(subrutineDef.GetSignature(), subrutineDef);
if (!byName.TryGetValue(subrutineDef.Name, out var arities))
byName.Add(subrutineDef.Name, arities = new Dictionary<int, List<NativeSubrutineDefinition>>());
if (!arities.TryGetValue(subrutineDef.ArgumentCount, out var overloads))
arities.Add(subrutineDef.ArgumentCount, overloads = new List<NativeSubrutineDefinition>());
overloads.Add(subrutineDef);
}Returns the value of the expression below.
Parameters: name, value
Source: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/State/RuntimeDictionary.cs:80.
public bool TryGet(string name, out T value)
Result: bool.
Result: items.TryGetValue(name, out value).
Calls: items.TryGetValue.
Internal implementation code; this is not a standalone script.
public bool TryGet(string name, out T value)
{
lock (itemsLock)
{
return items.TryGetValue(name, out value);
}
}ClassicUO — Bad Newbie & C# Scripts IDE