Repository navigation
JA API UO Info
Bad Newbie edited this page Oct 16, 2026
·
4 revisions
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
string UO.Info();
string UO.Info(object? serial);
string UO.Info(object? type, object? x, object? y);
string UO.Info(object? type, object? x, object? y, object? z);呼び出し元によって表示が変わります。ゲーム内チャットのコマンドは、項目、値、Ctrl+C、スクロールを備えた表を開きます。通常の C# スクリプトは、ゲーム画面が開いていても、ウィンドウやターゲットなしで文字列を受け取ります。取得できるのはクライアントが知る情報です。
引数なしの Info と InfoTile は、画面内チャットではターゲットを開始します。スクリプトの Info() は最後の物件ターゲットまたは自分を、InfoTile() は足元の地形を読みます。serial、type、座標で対象を指定できます。InfoTile(x,y,map) の第3引数はマップ番号です。
-
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 ではなくマップです。
#info
#UO.Info id 0x40001234
#info type 0x0EED
#info xy 1450 1690
#info type 0x0EED xy 1450 1690 0
各コードブロックは独立した完全な .csx です。例の serial、type、座標を置き換えてください。引数順序と C# の名前付き引数はシグネチャに従います。
string report = UO.Info(0x40001234);
UO.Print(report);string InspectSelf() => UO.Info("self");
UO.Print(InspectSelf());foreach (int serial in new[] { 0x40001234, 0x40005678 })
{
string report = UO.Info(serial);
UO.Print(report);
}new CommandSample().Execute(UO);
sealed class CommandSample
{
public void Execute(global::ClassicUO.CSharp.CSharpGameApi api)
{
string report = api.Info(0x40001234);
api.Print(report);
}
}CSharpGameApi.Info
-> CSharpScriptGlobals
-> InjectionScript.Runtime.InjectionApiUO.Info
ClassicUOInjectionApiBridge -> YokoInfoReport -> YokoInfoGump
ClassicUO — Bad Newbie & C# Scripts IDE