Skip to content

JA API UO Hide

Bad Newbie edited this page Oct 16, 2026 · 4 revisions

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

UO.Hide

C# シグネチャ

void UO.Hide();
void UO.Hide(object? serial);
string UO.Hide(object? type, object? x, object? y);
string UO.Hide(object? type, object? x, object? y, object? z);

動作と戻り値

Hide は読み込み済みの物件をローカルで隠し、Hiding スキルは使いません。Resend/Resync はこの状態を解除し、元の描画状態を戻します。繰り返し Hide した場合も同じです。物件情報やサーバーの Hidden フラグは変わりません。

引数

  • serial — オブジェクトのシリアル番号または保存済み別名。
  • type — アイテムの画像 ID。-1 は指定位置のすべての種類に一致。
  • x — ワールドの X 座標。
  • y — ワールドの Y 座標。
  • z — Z 高度。短い形式では 0。

プレフィックスは C# Scripts IDE で設定し、# は例です。引数は空白区切りで、引用符内の文字列は一つの引数です。id は serial、type は graphic です。xy x y [z] は位置にある最初の読み込み済み対象、type のみは最初の一致対象です。InfoTile(x,y,map) の第3引数は Z ではなくマップです。

チャットコマンド

#hide
#hide id 0x40001234
#hide type 0x0EED
#hide xy 1450 1690
#hide type 0x0EED xy 1450 1690 0

完全な C# の例

各コードブロックは独立した完全な .csx です。例の serial、type、座標を置き換えてください。引数順序と C# の名前付き引数はシグネチャに従います。

1

UO.Hide(0x40001234);

2

UO.Print(UO.Hide(0x0EED, 1450, 1690, 0));

3

foreach (int serial in new[] { 0x40001234, 0x40005678 })
    UO.Hide(serial);

4

new CommandSample().Execute(UO);

sealed class CommandSample
{
    public void Execute(global::ClassicUO.CSharp.CSharpGameApi api)
    {
        api.Hide(0x40001234);
    }
}

内部呼び出し

CSharpGameApi.Hide
  -> CSharpScriptGlobals
  -> InjectionScript.Runtime.InjectionApiUO.Hide
ClassicUOInjectionApiBridge -> target / serial / type-position selection
  -> local hidden-object state -> renderer visibility

Clone this wiki locally