Repository navigation
JA Runtime Helpers 1
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
内部実装のコードです。単独のスクリプトとして実行できません。
示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.CSharp/CSharpCallbacks.cs:116.
internal void Verify()
結果: void.
条件:
IsDisposed
呼び出し:
token.ThrowIfCancellationRequestedCancellation.ThrowIfCancellationRequestedCSharpExecutionScope.VerifyActive
内部実装のコードです。単独のスクリプトとして実行できません。
internal void Verify()
{
token.ThrowIfCancellationRequested();
Cancellation.ThrowIfCancellationRequested();
if (IsDisposed) throw new OperationCanceledException("The C# callback execution has ended.", token);
CSharpExecutionScope.VerifyActive();
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Configuration/ProfileManager.cs:382.
internal static bool ResetCurrentProfileToDefault()
結果: bool.
条件:
CurrentProfile == null || string.IsNullOrWhiteSpace(ProfilePath)
呼び出し:
string.IsNullOrWhiteSpaceNewFromDefaultValidateFieldsSaveCurrentProfileClientFontManager.Invalidate
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: runMount, runUnmount, walkMount, walkUnmount
ソース: Project_Full/src/ClassicUO.Client/Game/Data/MovementSpeed.cs:32.
internal static void ConfigureYokoMovementTimers( int runMount, int runUnmount, int walkMount, int walkUnmount)
結果: void.
呼び出し: Math.Clamp.
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: ushort g, out int index
ソース: Project_Full/src/ClassicUO.Client/Game/Data/StaticFilters.cs:240.
public static bool IsTree(ushort g, out int index)
結果: bool.
条件:
(flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP) != 0(flag & STATIC_TILES_FILTER_FLAGS.STFF_STUMP_HATCHED) != 0
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
[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;
}示された呼び出しと状態更新を実行します。
引数: string text
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2185.
public void AddJournalIgnore(string text)
結果: void.
呼び出し:
InvokeJournalManager.AddYokoIgnoredText
内部実装のコードです。単独のスクリプトとして実行できません。
public void AddJournalIgnore(string text) => Invoke(() => JournalManager.AddYokoIgnoredText(text));示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1290.
public void CancelNextTarget()
結果: void.
呼び出し:
Invoke_manager.CancelNextServerTarget
内部実装のコードです。単独のスクリプトとして実行できません。
public void CancelNextTarget() => Invoke(() => _manager.CancelNextServerTarget(_cancellationToken));示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:708.
public void ClearContextMenu()
結果: void.
呼び出し:
Invoke.Dispose
内部実装のコードです。単独のスクリプトとして実行できません。
public void ClearContextMenu() => Invoke(() => _world.ServerMenus.Context?.Dispose());示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:173.
public int FollowersMax
結果: int.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public int FollowersMax => Invoke(() => CurrentPlayer?.FollowersMax ?? 0);示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2967.
public int GetColor(int id)
結果: int.
呼び出し:
WithEntity
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetColor(int id) => WithEntity(id, e => e.Hue);示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:238.
public int GetDexterity(int id)
結果: int.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetDexterity(int id) => Invoke(() => _world.Player is { IsDestroyed: false } player && player.Serial == unchecked((uint)id) ? player.Dexterity : 0);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:205.
public int GetFindDistance()
結果: int.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetFindDistance() => State.FindDistance;示された呼び出しと状態更新を実行します。
引数: int gumpId, string identifier, int key
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3155.
public string GetGumpValue(int gumpId, string identifier, int key)
結果: string.
条件:
gump == null
呼び出し:
InvokeResolveGumpUnsafeDescendants(gump).ToListDescendantscontrols.Where(IsButtonControl).ToListcontrols.Wherecontrols.Select(GetControlText).Where(text => text != null).ToListcontrols.Select(GetControlText).Wherecontrols.Select(identifier ?? string.Empty).ToLowerInvariantServerGumpsUnsafe().IndexOf(gump).ToStringServerGumpsUnsafe().IndexOfServerGumpsUnsafebuttons.Count.ToStringControlButtonId(buttons[key]).ToStringControlButtonIdtexts.Count.ToStringcontrols.Count.ToStringControlTypeNameDescribeControl
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}
});示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:240.
public int GetMana(int id)
結果: int.
呼び出し:
Invoke_world.Get
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetMana(int id) => Invoke(() => (_world.Get(unchecked((uint)id)) as Mobile)?.Mana ?? 0);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1733.
public string GlobalChatActiveChannel()
結果: string.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public string GlobalChatActiveChannel() => Invoke(() => _world.ChatManager.CurrentChannelName ?? string.Empty);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1734.
public string[] GlobalChatChannels()
結果: string[].
呼び出し:
Invoke_world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray_world.ChatManager.Channels.Keys.OrderBy
内部実装のコードです。単独のスクリプトとして実行できません。
public string[] GlobalChatChannels() => Invoke(() => _world.ChatManager.Channels.Keys.OrderBy(name => name).ToArray());示された呼び出しと状態更新を実行します。
引数: string pattern, int startTime, int endTime, int limit, bool ignoreCase
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2137.
public int InJournalBetweenTimesEx(string pattern, int startTime, int endTime, int limit, bool ignoreCase)
結果: int.
呼び出し:
now.AddMillisecondsMath.MaxMath.MinFindJournal
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2193.
public int JournalSerialInt(int index)
結果: int.
呼び出し:
GetJournalEntry
内部実装のコードです。単独のスクリプトとして実行できません。
public int JournalSerialInt(int index) => GetJournalEntry(index) is JournalEntry entry ? unchecked((int)entry.Serial) : 0;示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:603.
public string LastMessage()
結果: string.
呼び出し:
GetJournalText
内部実装のコードです。単独のスクリプトとして実行できません。
public string LastMessage() => GetJournalText(0);示された呼び出しと状態更新を実行します。
引数: int key
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3408.
public void MakeStepByKey(int key)
結果: void.
条件:
!State.MoveEnableddirection.HasValue
呼び出し:
Invoke_manager.StopFollowing.Walk
内部実装のコードです。単独のスクリプトとして実行できません。
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);
});
}
}示された呼び出しと状態更新を実行します。
引数: int delayMs, int quantity, int type, int destination, int x, int y, int z
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1443.
public void MassMove(int delayMs, int quantity, int type, int destination, int x, int y, int z)
結果: void.
呼び出し:
Invoke_manager.MassMover.Configure
内部実装のコードです。単独のスクリプトとして実行できません。
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));示された呼び出しと状態更新を実行します。
引数: int type
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:2362.
public void Morph(int type)
結果: void.
条件:
_world.Player == null_originalGraphic == 0
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
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;
});示された呼び出しと状態更新を実行します。
引数: uint down, uint up
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:4337.
private static void MouseButton(uint down, uint up)
結果: void.
呼び出し:
mouse_event
内部実装のコードです。単独のスクリプトとして実行できません。
private static void MouseButton(uint down, uint up)
{
mouse_event(down, 0, 0, 0, UIntPtr.Zero);
mouse_event(up, 0, 0, 0, UIntPtr.Zero);
}示された呼び出しと状態更新を実行します。
引数: int id, int amount, int targetContainerId, int x, int y, int z
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1330.
public int MoveItem(int id, int amount, int targetContainerId, int x, int y, int z)
結果: int.
条件:
moved && State.GrabDelay > 0
呼び出し:
InvokeTryMoveItemRequestWait
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: bool enabled
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1728.
public void PartyCanLoot(bool enabled)
結果: void.
呼び出し:
InvokeGameActions.RequestPartyLootState
内部実装のコードです。単独のスクリプトとして実行できません。
public void PartyCanLoot(bool enabled) => Invoke(() =>
{
_world.Party.CanLoot = enabled;
GameActions.RequestPartyLootState(enabled);
});示された呼び出しと状態更新を実行します。
引数: int serial, int gumpId, int triggerId
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:3006.
public int SendGumpSelect(int serial, int gumpId, int triggerId)
結果: int.
呼び出し:
SendGumpSelect
内部実装のコードです。単独のスクリプトとして実行できません。
public int SendGumpSelect(int serial, int gumpId, int triggerId)
=> SendGumpSelect(serial, gumpId, triggerId, 0);示された呼び出しと状態更新を実行します。
引数: int light
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1897.
public void SetLight(int light)
結果: void.
呼び出し:
InvokeMath.MaxMath.Min
内部実装のコードです。単独のスクリプトとして実行できません。
public void SetLight(int light) => Invoke(() =>
{
byte value = (byte)Math.Max(0, Math.Min(30, light));
_world.Light.Overall = _world.Light.RealOverall = value;
});示された呼び出しと状態更新を実行します。
引数: int index, string name
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:323.
public void SetScriptName(int index, string name)
結果: void.
呼び出し:
_manager.SetScriptName
内部実装のコードです。単独のスクリプトとして実行できません。
public void SetScriptName(int index, string name) => _manager.SetScriptName(index, name);示された呼び出しと状態更新を実行します。
引数: int season
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1896.
public void SetSeason(int season)
結果: void.
呼び出し:
Invoke_world.ChangeSeasonMath.MaxMath.Min
内部実装のコードです。単独のスクリプトとして実行できません。
public void SetSeason(int season) => Invoke(() => _world.ChangeSeason((Season)Math.Max(0, Math.Min(4, season)), -1));示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:175.
public int Sex
結果: int.
呼び出し:
InvokeMath.Max
内部実装のコードです。単独のスクリプトとして実行できません。
public int Sex => Invoke(() => CurrentPlayer is { } player
? Math.Max(0, ((int)player.Race - 1) * 2) + (player.IsFemale ? 1 : 0) : 0);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:156.
public int Strength
結果: int.
呼び出し:
Invoke
内部実装のコードです。単独のスクリプトとして実行できません。
public int Strength => Invoke(() => _world.Player is { IsDestroyed: false } player ? player.Strength : 0);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:1970.
public void TextOpen()
結果: void.
呼び出し:
InvokeYokoTextWindowGump.ShowReportStatus
内部実装のコードです。単独のスクリプトとして実行できません。
public void TextOpen()
{
_textWindowOpen = true;
Invoke(() =>
{
YokoTextWindowGump.Show(_world, _textWindow);
ReportStatus("UO.TextOpen: text window is visible");
});
}示された呼び出しと状態更新を実行します。
引数: int ms
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/ClassicUOInjectionApiBridge.cs:190.
public void Wait(int ms)
結果: void.
条件:
ms <= 0_cancellationToken.WaitHandle.WaitOne(ms)
呼び出し:
_cancellationToken.ThrowIfCancellationRequested_cancellationToken.WaitHandle.WaitOne
内部実装のコードです。単独のスクリプトとして実行できません。
public void Wait(int ms)
{
if (ms <= 0)
{
_cancellationToken.ThrowIfCancellationRequested();
return;
}
if (_cancellationToken.WaitHandle.WaitOne(ms))
{
_cancellationToken.ThrowIfCancellationRequested();
}
}示された呼び出しと状態更新を実行します。
引数: uint serial, int entry
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:975.
internal void SetContextMenuHook(uint serial, int entry)
結果: void.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
internal void SetContextMenuHook(uint serial, int entry)
{
_contextMenuSerial = serial;
_contextMenuEntry = entry;
}示された呼び出しと状態更新を実行します。
引数: bool enabled
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:727.
internal void SetWeatherFilter(bool enabled)
結果: void.
条件:
enabled
呼び出し:
_world.Weather.Reset
内部実装のコードです。単独のスクリプトとして実行できません。
internal void SetWeatherFilter(bool enabled)
{
_weatherFilterEnabled = enabled;
if (enabled) _world.Weather.Reset();
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:3154.
public void StopAll()
結果: void.
呼び出し:
TerminateProcedures
内部実装のコードです。単独のスクリプトとして実行できません。
public void StopAll()
{
TerminateProcedures("all");
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/src/ClassicUO.Client/Game/Managers/YokoInjectionManager.cs:290.
internal void StopFollowing()
結果: void.
呼び出し:
.Stop
内部実装のコードです。単独のスクリプトとして実行できません。
internal void StopFollowing() => _follow?.Stop();示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4427.
public void CancelTarget()
結果: void.
条件:
waitTargetQueue.Length > 0 || bridge.IsTargeting() != 0
呼び出し:
bridge.GetWaitTargetQueuebridge.IsTargetingbridge.CancelTargetSystemMessage
内部実装のコードです。単独のスクリプトとして実行できません。
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");
}示された呼び出しと状態更新を実行します。
引数: InjectionValue value
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6503.
private int ConvertClientSearchContainer(InjectionValue value)
結果: int.
条件:
value.Kind == InjectionValueKind.Stringname.Equals("ground", StringComparison.OrdinalIgnoreCase)name.Equals("my", StringComparison.OrdinalIgnoreCase)!NumberConversions.TryStr2Int(name, out container)
呼び出し:
value.String.Trimname.EqualsNumberConversions.TryStr2IntTryGetObjectNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}示された呼び出しと状態更新を実行します。
引数: int fromX, int fromY, int toX, int toY
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5388.
public void Drag(int fromX, int fromY, int toX, int toY)
結果: void.
呼び出し:
bridge.Drag
内部実装のコードです。単独のスクリプトとして実行できません。
public void Drag(int fromX, int fromY, int toX, int toY) => bridge.Drag(fromX, fromY, toX, toY);示された呼び出しと状態更新を実行します。
引数: InjectionValue layer, InjectionValue type
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5835.
public void EquipT(InjectionValue layer, InjectionValue type)
結果: void.
条件:
obj == 0layer.Kind == InjectionValueKind.String
呼び出し:
bridge.FindTypeResolveTypeSystemMessageEquipbridge.EquipNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: int layer, int type
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6023.
public int Equipt(int layer, int type)
結果: int.
呼び出し:
bridge.FindTypebridge.Equip
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}以下の式の値を返します。
引数: x, y, z, accuracy, running, accuracyZ, optimized, stepCallback
ソース: 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)`
結果: int.
結果: MoveToCanonical(x, y, z, accuracy, running, accuracyZ, optimized, stepCallback).
呼び出し: MoveToCanonical.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.MoveToCanonical:MoveToCanonical(x, y, z, accuracy, running, accuracyZ, optimized, stepCallback).
内部実装のコードです。単独のスクリプトとして実行できません。
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);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1376.
結果: new InjectionValue(bridge.Armor).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Armor:bridge.Armor.
内部実装のコードです。単独のスクリプトとして実行できません。
case "armor": return new InjectionValue(bridge.Armor);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1798.
結果: InjectionValue.Unit.
呼び出し:
-
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]).
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1819.
結果: InjectionValue.Unit.
内部実装のコードです。単独のスクリプトとして実行できません。
case "clearbadlocationlist": state.BadLocations.Clear(); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2030.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ClearJournalIgnore:bridge.ClearJournalIgnore().
内部実装のコードです。単独のスクリプトとして実行できません。
case "clearjournalignore": bridge.ClearJournalIgnore(); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1544.
結果: InjectionValue.Unit; new InjectionValue(state.DressSpeed).
条件: arguments.Length > 0.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.SetDressSpeed:SetDressSpeed(Arg(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "dressspeed":
if (arguments.Length > 0) { SetDressSpeed(Arg(0)); return InjectionValue.Unit; }
return new InjectionValue(state.DressSpeed);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1522.
結果: new InjectionValue(bridge.GetScriptName(Arg(0))).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetScriptName:bridge.GetScriptName(Arg(0)). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "getscriptname": return new InjectionValue(bridge.GetScriptName(Arg(0)));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1578.
結果: new InjectionValue(bridge.GetSkillValue(Text(0), true, false)).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetSkillValue:bridge.GetSkillValue(Text(0), true, false). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "getskillcurrentvalue": return new InjectionValue(bridge.GetSkillValue(Text(0), true, false));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1247.
結果: new InjectionValue(CompactGrab(arguments)).
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.CompactGrab:CompactGrab(arguments).
内部実装のコードです。単独のスクリプトとして実行できません。
case "grab": return new InjectionValue(CompactGrab(arguments));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1488.
結果: new InjectionValue(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "ground": return new InjectionValue(0);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1956.
結果: new InjectionValue(httpHeader).
内部実装のコードです。単独のスクリプトとして実行できません。
case "http_header": return new InjectionValue(httpHeader);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1504.
結果: new InjectionValue(bridge.IsFemale(Arg(0, bridge.Self))).
呼び出し:
-
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.
内部実装のコードです。単独のスクリプトとして実行できません。
case "isfemale": return new InjectionValue(bridge.IsFemale(Arg(0, bridge.Self)));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1599.
結果: new InjectionValue(bridge.GetGumpCount() > 0 ? 1 : 0).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetGumpCount:bridge.GetGumpCount().
内部実装のコードです。単独のスクリプトとして実行できません。
case "isgump": return new InjectionValue(bridge.GetGumpCount() > 0 ? 1 : 0);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1296.
結果: new InjectionValue(bridge.LastAttack).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.LastAttack:bridge.LastAttack.
内部実装のコードです。単独のスクリプトとして実行できません。
case "lastattack":
case "wartargetid": return new InjectionValue(bridge.LastAttack);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1683.
結果: new InjectionValue(MoveTo(Arg(0), Arg(1), bridge.GetZ(bridge.Self), Arg(3), Arg(4) != 0, 255, Arg(2) != 0)).
呼び出し:
-
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.
内部実装のコードです。単独のスクリプトとして実行できません。
case "movexy":
return new InjectionValue(MoveTo(Arg(0), Arg(1), bridge.GetZ(bridge.Self), Arg(3), Arg(4) != 0, 255, Arg(2) != 0));この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1703.
結果: InjectionValue.Unit.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.PartySay:bridge.PartySay(Text(0), 0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Text:Text(0).
内部実装のコードです。単独のスクリプトとして実行できません。
case "partysay": bridge.PartySay(Text(0), 0); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1860.
結果: new InjectionValue(bridge.GetStaticTiles(Arg(0), Arg(1), Arg(2)).Select(value => new InjectionValue(value)).ToArray()).
呼び出し:
-
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).
内部実装のコードです。単独のスクリプトとして実行できません。
case "readstaticsxy":
return new InjectionValue(bridge.GetStaticTiles(Arg(0), Arg(1), Arg(2)).Select(value => new InjectionValue(value)).ToArray());この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1821.
結果: InjectionValue.Unit.
条件: x < 0 || x > ushort.MaxValue || y < 0 || y > ushort.MaxValue.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(0). -
InjectionScript.Runtime.InjectionApiUO.ExecuteClientApiCompatibility::Arg:Arg(1).
内部実装のコードです。単独のスクリプトとして実行できません。
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;
}この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1989.
結果: InjectionValue.Unit.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.SetDress:SetDress("__stealth_saved_set__").
内部実装のコードです。単独のスクリプトとして実行できません。
case "setdress": SetDress("__stealth_saved_set__"); return InjectionValue.Unit;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1990.
呼び出し:
-
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).
内部実装のコードです。単独のスクリプトとして実行できません。
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);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1334.
結果: new InjectionValue(state.MoveThroughCorner).
条件: arguments.Length > 0.
呼び出し:
内部実装のコードです。単独のスクリプトとして実行できません。
case "movethroughcorner": if (arguments.Length > 0) state.MoveThroughCorner = Arg(0) != 0 ? 1 : 0; return new InjectionValue(state.MoveThroughCorner);この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
内部実装のコードです。単独のスクリプトとして実行できません。
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:2844.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.ExecuteLegacyManualAlias::LegacyList:LegacyList(name). -
InjectionScript.Runtime.InjectionValue.ToString:value.ToString().
内部実装のコードです。単独のスクリプトとして実行できません。
case "adddir":
case "addfindlist":
case "addgate":
case "addrecall":
case "addstep":
LegacyList(name).Add(string.Join("|", arguments.Select(value => value.ToString())));
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3019.
呼び出し:
-
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.
内部実装のコードです。単独のスクリプトとして実行できません。
case "rename": bridge.RenameMobile(Arg(0, bridge.LastTarget), Text(1)); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3029.
条件: arguments.Length > 1.
呼び出し:
-
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).
内部実装のコードです。単独のスクリプトとして実行できません。
case "setdefault":
if (arguments.Length > 1) state.Objects.Set(Text(0), Arg(1));
break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3053.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.ShowJournal:bridge.ShowJournal().
内部実装のコードです。単独のスクリプトとして実行できません。
case "showjournal": bridge.ShowJournal(); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3081.
内部実装のコードです。単独のスクリプトとして実行できません。
case "shutdownwindows":
throw new NativeSubrutineException("shutdownwindows is intentionally blocked: scripts may not shut down Windows.");この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3054.
呼び出し:
-
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.
内部実装のコードです。単独のスクリプトとして実行できません。
case "snoop": bridge.UseObject(Arg(0, bridge.LastTarget)); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3074.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.UnsetReceivingContainer:UnsetReceivingContainer().
内部実装のコードです。単独のスクリプトとして実行できません。
case "unsetcatchbag": UnsetReceivingContainer(); break;この分岐は指定されたコマンド名だけを処理します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3062.
呼び出し:
-
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).
内部実装のコードです。単独のスクリプトとして実行できません。
case "waitgumpentry":
for (int index = 0; index + 1 < arguments.Length; index += 2)
bridge.SetGumpValue(-1, "textentry", Arg(index), Text(index + 1));
break;以下の条件を確認し、示された結果を返します。
引数: type, notoriety, distance, nearest, maxZ, color, includeSelf
ソース: 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)`
結果: int.
結果: mobiles.FirstOrDefault().
呼び出し: FilterMobiles, mobiles.OrderBy(id => bridge.GetDistance(id)).ThenBy, mobiles.OrderBy, mobiles.FirstOrDefault.
条件: nearest.
呼び出し:
-
InjectionScript.Runtime.InjectionApiUO.FilterMobiles:FilterMobiles(distance, notoriety, new InjectionValue(type), maxZ, color, includeSelf). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetDistance:bridge.GetDistance(id).
内部実装のコードです。単独のスクリプトとして実行できません。
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();
}示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3414.
public string GListPosName(int index)
結果: string.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
public string GListPosName(int index) => index >= 0 && index < globalList.Count ? globalList[index].Key : string.Empty;示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5610.
public int GetFoundedTextTimer()
結果: int.
呼び出し:
JournalEntryTime
内部実装のコードです。単独のスクリプトとして実行できません。
public int GetFoundedTextTimer() => selectedJournalEntry != null ? JournalEntryTime(selectedJournalEntry.Timestamp) : 0;示された呼び出しと状態更新を実行します。
引数: InjectionValue x, InjectionValue y, InjectionValue index
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6320.
public InjectionValue GetStaticTileAt(InjectionValue x, InjectionValue y, InjectionValue index)
結果: InjectionValue.
呼び出し:
GetStaticTileAt
内部実装のコードです。単独のスクリプトとして実行できません。
public InjectionValue GetStaticTileAt(InjectionValue x, InjectionValue y, InjectionValue index)
=> GetStaticTileAt(x, y, new InjectionValue(bridge.WorldNumber), index);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4487.
public int Grab()
結果: int.
呼び出し:
bridge.RequestInteractiveGrabTarget
内部実装のコードです。単独のスクリプトとして実行できません。
public int Grab() => bridge.RequestInteractiveGrabTarget();示された呼び出しと状態更新を実行します。
引数: string idText
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3885.
public int Hidden(string idText)
結果: int.
呼び出し:
HiddenGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public int Hidden(string idText) => Hidden(GetObject(idText));示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3238.
public void Hide()
結果: void.
呼び出し:
bridge.RequestInteractiveHideTarget
内部実装のコードです。単独のスクリプトとして実行できません。
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();
}示された呼び出しと状態更新を実行します。
引数: InjectionValue serial
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3245.
public void Hide(InjectionValue serial)
結果: void.
呼び出し:
bridge.ClientHideGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public void Hide(InjectionValue serial)
{
bridge.ClientHide(GetObject(serial));
}示された呼び出しと状態更新を実行します。
引数: InjectionValue value
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3905.
public string Int2Hex(InjectionValue value)
結果: string.
呼び出し:
NumberConversions.ToHexNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
public string Int2Hex(InjectionValue value) => NumberConversions.ToHex(NumberConversions.ToInt(value));示された呼び出しと状態更新を実行します。
引数: int id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3761.
public int IsNpc(int id)
結果: int.
呼び出し:
bridge.IsNpc
内部実装のコードです。単独のスクリプトとして実行できません。
public int IsNpc(int id) => bridge.IsNpc(id);示された呼び出しと状態更新を実行します。
引数: InjectionValue x, InjectionValue y
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3437.
public int IsWaterTile(InjectionValue x, InjectionValue y)
結果: int.
呼び出し:
bridge.IsWaterTileNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
public int IsWaterTile(InjectionValue x, InjectionValue y) => bridge.IsWaterTile(NumberConversions.ToInt(x), NumberConversions.ToInt(y));示された呼び出しと状態更新を実行します。
引数: int index
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:5529.
public string JournalSerial(int index)
結果: string.
呼び出し:
bridge.JournalSerial
内部実装のコードです。単独のスクリプトとして実行できません。
public string JournalSerial(int index) => bridge.JournalSerial(index);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3914.
public int LastTargetY()
結果: int.
呼び出し:
bridge.GetY
内部実装のコードです。単独のスクリプトとして実行できません。
public int LastTargetY() => bridge is ITargetSnapshotBridge snapshot ? snapshot.LastTargetY : bridge.GetY(bridge.LastTarget);示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3647.
public int Move()
結果: int.
条件:
result != 0
呼び出し:
bridge.MoveTimer
内部実装のコードです。単独のスクリプトとして実行できません。
public int Move()
{
int result = bridge.Move();
if (result != 0)
ticksAnim = Timer();
return result;
}示された呼び出しと状態更新を実行します。
引数: InjectionValue id
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4048.
public void OpenContainer(InjectionValue id)
結果: void.
呼び出し:
bridge.OpenContainerGetObject
内部実装のコードです。単独のスクリプトとして実行できません。
public void OpenContainer(InjectionValue id) => bridge.OpenContainer(GetObject(id), 0);示された呼び出しと状態更新を実行します。
引数: int x, int y, int z
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3635.
public void PMove(int x, int y, int z)
結果: void.
条件:
MoveToCanonical(x, y, z, 0, false, 0) == 0
呼び出し:
MoveToCanonicalSystemMessage
内部実装のコードです。単独のスクリプトとして実行できません。
public void PMove(int x, int y, int z)
{
if (MoveToCanonical(x, y, z, 0, false, 0) == 0)
SystemMessage("PMove stopped: destination is unreachable or exceeds UO.LimitMove().");
}示された呼び出しと状態更新を実行します。
引数: InjectionValue id, InjectionValue timeout
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:4047.
public void ReceiveObjectName(InjectionValue id, InjectionValue timeout)
結果: void.
呼び出し:
bridge.ReceiveObjectNameGetObjectNumberConversions.ToInt
内部実装のコードです。単独のスクリプトとして実行できません。
public void ReceiveObjectName(InjectionValue id, InjectionValue timeout) => bridge.ReceiveObjectName(GetObject(id), NumberConversions.ToInt(timeout));これらの関数は API を登録します。コマンドを呼ぶたびに実行されるものではありません。
引数: getter, names
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:981.
void AddInteger(Func<int> getter, params string[] names)
結果: void.
呼び出し: metadata.NativeSubrutineExists, metadata.Add, metadata.IntrinsicVariableExists, metadata.AddIntrinsicVariable.
条件: !metadata.NativeSubrutineExists(name, 0); !metadata.IntrinsicVariableExists(name).
呼び出し:
-
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)).
内部実装のコードです。単独のスクリプトとして実行できません。
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));
}
}示された呼び出しと状態更新を実行します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3496.
public int TicksTarget()
結果: int.
呼び出し:
—
内部実装のコードです。単独のスクリプトとして実行できません。
public int TicksTarget() => ticksTarget;示された呼び出しと状態更新を実行します。
引数: string abilityName
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:6004.
public int UseAbility(string abilityName)
結果: int.
呼び出し:
bridge.ResolveAbilitybridge.UseAbility
内部実装のコードです。単独のスクリプトとして実行できません。
public int UseAbility(string abilityName)
{
int abilityId = bridge.ResolveAbility(abilityName);
return abilityId > 0 ? bridge.UseAbility(abilityId) : 0;
}示された呼び出しと状態更新を実行します。
引数: string prompt, string choice
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3389.
public void WaitMenu(string prompt, string choice)
結果: void.
呼び出し:
bridge.WaitMenu
内部実装のコードです。単独のスクリプトとして実行できません。
public void WaitMenu(string prompt, string choice)
=> bridge.WaitMenu(prompt, choice);示された呼び出しと状態更新を実行します。
引数: InjectionValue delay, InjectionValue menuCount
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3440.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount)
結果: int.
呼び出し:
WaitingForMenu
内部実装のコードです。単独のスクリプトとして実行できません。
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount) => WaitingForMenu(delay, menuCount, InjectionValue.Zero, new InjectionValue(string.Empty), InjectionValue.Zero);示された呼び出しと状態更新を実行します。
引数: InjectionValue delay, InjectionValue menuCount, InjectionValue blockMenu, InjectionValue menuName
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:3442.
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount, InjectionValue blockMenu, InjectionValue menuName)
結果: int.
呼び出し:
WaitingForMenu
内部実装のコードです。単独のスクリプトとして実行できません。
public int WaitingForMenu(InjectionValue delay, InjectionValue menuCount, InjectionValue blockMenu, InjectionValue menuName) => WaitingForMenu(delay, menuCount, blockMenu, menuName, InjectionValue.Zero);呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1032.
結果: bridge.Dexterity.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Dexterity:bridge.Dexterity.
内部実装のコードです。単独のスクリプトとして実行できません。
() => bridge.Dexterity呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1058.
内部実装のコードです。単独のスクリプトとして実行できません。
IsDeadState呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1024.
結果: bridge.GetHP(bridge.Self).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetHP:bridge.GetHP(bridge.Self). -
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
() => bridge.GetHP(bridge.Self)呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1028.
結果: bridge.Stamina.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Stamina:bridge.Stamina.
内部実装のコードです。単独のスクリプトとして実行できません。
() => bridge.Stamina呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1063.
serial
結果: serial.
結果: bridge.GetLocked(serial).
呼び出し: bridge.GetLocked.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.GetLocked:bridge.GetLocked(serial).
内部実装のコードです。単独のスクリプトとして実行できません。
serial => bridge.GetLocked(serial)呼び出し時には保存済みのハンドラー delegate を実行します。登録メソッドは API の構築時にこの delegate を作成します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1062.
serial
結果: serial.
結果: bridge.Poisoned(serial).
呼び出し: bridge.Poisoned.
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Poisoned:bridge.Poisoned(serial).
内部実装のコードです。単独のスクリプトとして実行できません。
serial => bridge.Poisoned(serial)以下の式の値を返します。
引数: 引数はありません。
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/InjectionApiUO.cs:1007.
結果: getter(bridge.Self).
呼び出し:
-
ClassicUO.Game.Managers.ClassicUOInjectionApiBridge.Self:bridge.Self.
内部実装のコードです。単独のスクリプトとして実行できません。
() => getter(bridge.Self)示された呼び出しと状態更新を実行します。
引数: string name,IEnumerable<InjectionValue> arguments,out NativeSubrutineDefinition definition
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/Metadata.cs:20.
public bool TryGetNativeSubrutine(string name,IEnumerable<InjectionValue> arguments,out NativeSubrutineDefinition definition)
結果: bool.
呼び出し:
nativeSubrutines.TryGet
内部実装のコードです。単独のスクリプトとして実行できません。
public bool TryGetNativeSubrutine(string name,IEnumerable<InjectionValue> arguments,out NativeSubrutineDefinition definition) => nativeSubrutines.TryGet(name,arguments,out definition);示された呼び出しと状態更新を実行します。
引数: NativeSubrutineDefinition subrutineDef
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/NativeSubrutineMetadata.cs:24.
public void Add(NativeSubrutineDefinition subrutineDef)
結果: void.
条件:
!byName.TryGetValue(subrutineDef.Name, out var arities)!arities.TryGetValue(subrutineDef.ArgumentCount, out var overloads)
呼び出し:
subrutines.AddsubrutineDef.GetSignaturebyName.TryGetValuebyName.Addarities.TryGetValuearities.Addoverloads.Add
内部実装のコードです。単独のスクリプトとして実行できません。
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);
}示された呼び出しと状態更新を実行します。
引数: string name, out T value
ソース: Project_Full/external/InjectionScript/src/InjectionScript/Runtime/State/RuntimeDictionary.cs:80.
public bool TryGet(string name, out T value)
結果: bool.
呼び出し:
items.TryGetValue
内部実装のコードです。単独のスクリプトとして実行できません。
public bool TryGet(string name, out T value)
{
lock (itemsLock)
{
return items.TryGetValue(name, out value);
}
}ClassicUO — Bad Newbie & C# Scripts IDE