Repository navigation
JA Runtime API 24 Persistent State
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
家 · C# · IDE · UO API · A–Z · 例 · Languages
各チームは、C#-署名、パラメーター、およびいくつかの独立した例を含むカードを開きます。
渡された値を、現在のランタイムの同じ名前の互換性リストに追加します。要素は |; によってシリアル化されます。これはローカル リストへの変更であり、独立したゲーム アクションではありません。
Creates a persistent client-side overlay entry used by the actual ClassicUO WorldMapGump. The map renders line, ellipse, rectangle, direction-arrow and text figure kinds. World-coordinate figures follow the current map transform/zoom; screen-coordinate figures are relative to the map gump. The returned ID is used by UpdateFigure and RemoveFigure.
このコマンドは、標準のオブジェクト Runbook にゲート チャージを追加するために使用されます。
「Alarm」という単語をローカルの ClassicUO syslog に出力します。スクリプト内の条件の発生に関するメモとして使用します。
[常に実行する] クライアント オプションのチェックボックスの状態を変更します (クライアントがこのオプションをサポートしている場合)。
指定されたコマンド名が実行時に登録されている場合は 1 を返し、それ以外の場合は 0 を返します。引数の数を確認するには ApiSignatureExists を使用し、呼び出しのない値には ApiParameterExists を使用します。
登録されたランタイム値または名前付きオブジェクトを確認します。 1 または 0 を返します。名前が空の場合は 0 になります。 UO が付いたオプションがチェックされます。しかも接頭辞なしで。
指定された数の引数を持つ指定された名前の登録がある場合、1 を返します。これは名前とアリティのチェックであり、値のタイプやゲーム オブジェクトの可用性を確認するものではありません。
すべての武器を取り外し、コマンド SetArm によって以前に記憶された my_name セットで武装します。
ベンダーから購入するための自動フックをインストールします。
AutoBuy の拡張バージョンで、価格と商品名によるフィルタリングが追加されました。
ベンダーに販売するための自動フックを設定します。
現在のキャラクターに包帯を使用しようとします。
Finds the currently open ModernBookGump, verifies that it is editable, updates the visible title/author controls and sends Send_BookHeaderChanged (or the old-protocol header packet when required by the client version).
「お辞儀」ジェスチャを実行します - キャラクターがお辞儀をします。
別のネイティブ クライアントを修正するための古いコマンド。 ClassicUO では、そのようなパッチは必要ないというメッセージのみが出力されます。動き、音声、コンテナは変更されません。
ベンダーの名前に、injection.ini ファイルの購入キーワード (通常は buy) を追加し、このフレーズを発音します。その後、ベンダーが表示する購入メニューのリストに従って物を購入します。
指定されたキャラクターの名前を変更する機能へのポインターを返します。
Sends a tokenized 0x73 ping packet and waits for the matching server echo up to timeoutMS. It does not substitute IsOnline() for a network round trip.
肯定的な結果を得るには、終点に到達する必要があります。トラバース制限を超えたり、無効な座標を指定した場合は、成功とみなされません。
透明サークルクライアントオプションのチェックボックスの状態を変更します。
Clears every client-side map figure created through the C# AddFigure API. Normal World Map marker files/user markers are not affected.
Reads or updates the current client UI/Gump state through the registered C#/ClassicUO UI route.
Ultima Online クライアント ウィンドウを閉じます。
Injection がコンソールに書き込むテキストの色を変更します。
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
Reads or updates the current client UI/Gump state through the registered C#/ClassicUO UI route.
Reads or updates the current client UI/Gump state through the registered C#/ClassicUO UI route.
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
両手(右手と左手)からアイテムをキャラクターのバックパックに取り出します。
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
馬から降りて、バックパックに「鞍」を入れます。これは馬に関連した物です。
2 つの点 (X1、Y1) と (X2、Y2) の間の距離をタイル単位で返します。
Reads or mutates the current ClassicUO item/equipment state through the registered runtime route and client action queue.
世界中で知られているすべてのことをログ ファイルに書き込み、主なパラメータを示します。
互換性のために古いコマンドが維持されています。
アニメーション/アクションの文字列名を GameActions.EmoteAction に渡します。これは文字のアクションであり、通常のテキストをジャーナルに出力するものではありません。
文字エントリ EasyUO を数値識別子にデコードします。どちらのコマンドも DecodeEasyUoId を使用します。結果は int であり、16 進文字列ではありません。
リテラル表記 serial EasyUO (基数 26、A=0) を 16 進文字列インジェクションに変換します。文字は大文字と小文字が区別されません。文字以外の文字はスキップされます。逆関数はInj2EUOです。
ロードされたクライアント ワールドに serial が存在するかどうかを確認します: 1 - オブジェクトが見つかりました、0 - 見つかりません。文字列オーバーロードは、最初にオブジェクト名を解決します。クライアント世界から存在しないことは、サーバー上での削除を証明するものではありません。
文字に関する拡張情報を TExtendedInfo エントリとして返します。
Writes to the Info Window through the client text-information route. It does not merely emit a normal in-game/system chat message.
Reads or updates the current client UI/Gump state through the registered C#/ClassicUO UI route.
Reads, filters or emits speech/journal data through the registered ClassicUO runtime route.
天気を変更する許可を有効または無効にします。
別のネイティブ クライアントを修正するための古いコマンド。 ClassicUO では、そのようなパッチは必要ないというメッセージのみが出力されます。動き、音声、コンテナは変更されません。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
キャラクターの音声の色を設定します。
インジェクションメモリからオブジェクトを削除します。
Compatibility alias for the pattern-selection state used by journal searches. For 'first|second|third', matching second sets FoundedParamId() to 1. It no longer exposes the internal ClassicUO journal text/message type.
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
プロシージャがマネージャー C# によって検出され、現在実行中の場合は 1 を返し、それ以外の場合は 0 を返します。引数はプロシージャの名前です。
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
ObjID を持つオブジェクトの「代替名」を返します。
AutoBuy または AutoBuyEx を介して各自動購入操作の後に適用される遅延 (ミリ秒単位) を返します。
AutoSell を介して各自動販売操作の後に適用される遅延 (ミリ秒単位) を返します。
キャラクターのアクティブなバフとデバフのリストを返します。
ObjID を既製の文字列として持つオブジェクトのツールチップのテキストを返します。
指定された ClilocID でローカライズされた cliloc 文字列を返します。
ObjID を持つオブジェクトの色 (hue) を返します。
ID を含むコンテナの内容を TContentItemData エントリの配列として返します。
Reads Dexterity from PlayerMobile. UO.GetDex() is equivalent to reading the active player's value. UO.GetDex(self) reads the same value.
オブジェクトパラメータ (デフォルトではプレイヤーキャラクター) - 0 から 7 までの方向を返します。
EasyUO グローバル変数の値をインデックス num で返します。
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
オブジェクトパラメータ (デフォルトではプレイヤーキャラクター) - オブジェクトタイプを返します。
現在の実装では、正確な文字列「character」を受け取り、その文字の名前を返します。その他の値の場合は、文字列「UNKNOWN」を返します。これは、Info ウィンドウ コマンドでも、汎用の任意のプロパティ クエリでもありません。
Reads Intelligence from PlayerMobile. UO.GetInt() is equivalent to reading the active player's value. UO.GetInt(self) reads the same value.
ロードされたキャラクターの麻痺フラグを読み取ります: 1 - IsParalyzed が設定されており、それ以外の場合は 0 です。チェストやドアのロックはチェックしません。
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
ID からのモバイルに関する詳細データを TMobileData レコードとして返します。
ロードされた World.Mobile のみを列挙します。通常のItemオブジェクトは除外されます。オプションのフィルターと最も近い順序は、共有検索コアによって適用されます。
ObjID を持つオブジェクトの名前を返します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
ObjID を持つオブジェクトの親コンテナの ID を返します。
ObjID を持つオブジェクトの価格を返します。
ObjID を持つオブジェクトのスタック サイズ (カウント) を返します。
Returns the quest-arrow state directly as [exists, x, y]. This is the C# adaptation of the historical Pascal var/out point.
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
オブジェクト (デフォルトではプレイヤー キャラクター) のパラメーター (オブジェクトが実行されているかどうか) を返します。
指定された特性のロック状態を返します。
Reads Strength from PlayerMobile. UO.GetStr() is equivalent to reading the active player's value. UO.GetStr(self) reads the same value.
指定されたマップ ポイントにおけるランドスケープ タイルの平均表面高さ (Z) を返します。
指定された ObjID を持つオブジェクトまたはモバイルのタイトル (サフィックス) を返します。
Reads the current Object Property List. If the OPL is not cached yet, C# requests it from the shard and waits up to approximately 200 ms, polling without blocking the ClassicUO UI thread. If data arrives, the object name and property text are combined into one string.
If structured OPL data is not cached, requests it and waits up to approximately 120 ms without blocking the UI thread.
現在の .NET ランタイムの CodePage Encoding.Default エンコーディングを返します。これはクライアントの言語切り替えや Windows ANSI エンコーディングの約束ではありません。 modern .NET は通常、UTF-8 (65001) を返します。
文字列を単語に分割し、ゼロからのインデックスを持つ単語を返します。区切り文字を使用しない場合、空白文字が使用され、空の部分は削除されます。到達できないインデックスは空の文字列を返します。
アイテム処理および検索メソッドのターゲットまたは目的地として地面を示す特別な値を返します。
UO.* の使用に関するヒントと、C# 設定の手動へのパスを出力します。これは簡単なヒントであり、インターネットからダウンロードするヘルプではありません。
ヘルプ ウィンドウを表示するリクエストをサーバーに送信します (ゲーム クライアントで「Help」ボタンを押すのと同様)。
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
Performs an HTTP GET. The one-argument form returns/uses the registered text semantics; the LStream overload writes raw response bytes to a supported C# MemoryStream/File target.
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
引数を指定しないと、ロードされたアイテムまたはキャラクターを選択するためのローカル ターゲティングが有効になります。選択後、「C# オブジェクト情報」ウィンドウが開き、ログ内の情報が表示されます。 Info(serial) フォームは、ログ内の指定されたオブジェクトに関するテキストをすぐに表示し、インスペクターを開きません。インタラクティブな選択が利用できない場合、引数のないフォームでは lasttarget が使用されます。土地タイルと固定タイルには InfoTile を使用します。
オブジェクトの色を 16 進数 0xHHHH で記録します。引数を指定しないと、lasttarget が使用されます。戻り値はありません。
32 ビット serial を基数 26 (A=0) のリテラル表記に変換します。 Serial=0 は「A」になります。逆関数はEUO2Injです。
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
true 選択したキャラクターまたはクリーチャーに女性の性別フラグが設定されている場合。それ以外の場合は、false。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
指定されたオブジェクトがマルチオブジェクト (家、船、またはその他のマルチタイル構造) の場合は true を返し、それ以外の場合は false を返します。
指定されたオブジェクトが移動可能な場合は true を返し、そうでない場合は false を返します。
現在のキャラクター/クライアントの状態またはランタイムの登録値を読み取ります。タイプは署名で指定されます。書き込むには、適切な Set メソッドが登録されている場合はそれを使用します。
true、選択したキャラクターまたはクリーチャーが麻痺(凍結)している場合。それ以外の場合は、false。
true 選択したキャラクターまたはクリーチャーが現在実行中の場合。それ以外の場合は、false。
指定されたモバイルに黄色のヘルスバー (無敵または特別なステータスを示す) がある場合は true を返し、それ以外の場合は false を返します。
Windows 仮想キー コードを使用してキーストロークをエミュレートします。オプションのカウントと遅延では、繰り返しの回数と各押し後の遅延を指定します: デフォルトでは 1 および 105 ミリ秒です。 Press は KeyPress の別名です。入力はアクティブな OS ウィンドウによって受信されます。コマンド自体はクライアントをアクティブ化しません。
パラメータパラメータを指定して外部プログラムのファイル名を実行します
ゲーム内の照明を変更します。
見つかった最後のログエントリからスピーカーのシリアル番号 (ID) を返します。
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
最後に見つかったログ エントリからスピーカー名を返します。
LOSOptions is no longer a state-only setting. UO.CheckLOS(...) consumes the current value on every check. The C# implementation evaluates the currently loaded ClassicUO map, land, static, multi and world-item tile data. Walls and impassable tiles block LOS; RunUO mode also respects NoShoot; POL can opt into NoShoot and window-through behavior with the flags above.
| を介して、見つかった serial の現在のリストを表示します。 0xXXXXXXXX の形式で。新しい検索は開始しません。
指定されたモバイルの名前を変更できる場合 (ペットやフォロワーなど) は true を返し、それ以外の場合は false を返します。
キャラクターのボディを指定されたタイプに変更します。
テキストをサーバーに出力します。
キャラクターのドアを開けるリクエストをサーバーに送信します。
自分のキャラクターが現在麻痺(凍結)している場合は true を返し、それ以外の場合は false を返します。
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
Reads the currently loaded ClassicUO map/tile/art asset data using the active client asset loaders.
クライアントのカーソルが選択された項目を保持している場合は 1 を返し、それ以外の場合は 0 を返します。これは転送操作の状態であり、ターゲットの状態ではありません。
WAV ファイルを非同期的に再生します。
現在のモーション パスに基づいて、文字の予測された X 座標を返します。
現在のモーション パスに基づいて、文字の予測された Y 座標を返します。
現在のモーション パスに基づいて、キャラクターの予測された Z 座標 (高さ) を返します。
Windows 仮想キー コードを使用してキーストロークをエミュレートします。オプションのカウントと遅延では、繰り返しの回数と各押し後の遅延を指定します: デフォルトでは 1 および 105 ミリ秒です。 Press は KeyPress の別名です。入力はアクティブな OS ウィンドウによって受信されます。コマンド自体はクライアントをアクティブ化しません。
Reports proxy state only. It deliberately does not return the game-server IP as a fake proxy address.
Reports proxy state only and does not mirror the game-server port.
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
0..maxnumber の範囲のランダムな整数を返します。
キャラクター mobile を newName に名前変更するリクエストを送信します。サーバーは名前の変更が許可されるかどうかを決定します。コマンドは何も返しません。
指定されたモバイルの名前を変更するリクエストをサーバーに送信します。
指定されたモバイルのサーバーにステータス要求パケットを送信します。
少なくともキャラクターの正確な座標を更新し、多くのシャードでは周囲のオブジェクトも更新します。
キャラクターに花火のアニメーション(エモーション)を実行します。
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
この実装では、find distance (検索距離)、grablay (ミリ秒単位のキャリー遅延)、equipfordress (Dress での装備モード) の 3 つの名前付き設定のみが変更されます。名前は大文字と小文字を区別せずに比較されます。数値オーバーロードと文字列オーバーロードは同じパスを使用します。文字列は 0x/0X をサポートし、無効な数値は 0 になります。不明な名前は設定を変更せず、エラーも引き起こしません。これは、すべての 310 ランタイム値の汎用セッターではありません。
The values are no longer stored as inert runtime-only strings. C# passes them into the actual ClassicUO reconnect selection pipeline:
キャラクターに装備されている武器をセット名Nameで記憶します。
AutoBuy / AutoBuyEx によってトリガーされる自動購入間の遅延 (ミリ秒単位) を設定します。
AutoSell によってトリガーされる自動販売間の遅延 (ミリ秒単位) を設定します。
地図タイルを経路探索システムの通行不能としてマークします。
コンテナを「キャッチバッグ」として指定します。キャラクターが受け取ったすべてのアイテム(戦利品、交換品など)は、自動的にこのコンテナに移動されます。
このコマンドは、標準 Runbook にデフォルトのルーンを設定するために使用されます。
値を EasyUO 一般レジストリに書き込みます (Windows のみ)。
Registers or removes a legacy C# event handler. Registration captures the current state and does not execute the handler immediately. Supported live events are SeeNewPlayer, Death, ChangeHitPoints, ChangeMana, and ChangeStamina; they are evaluated while the script yields through UO.Wait. repeat=false/0 is one-shot and is automatically disabled after the first matching transition; repeat=true/1 remains armed. For historical compatibility, a non-numeric third argument such as 'exec OnChange' is treated as the handler name and enables repeating mode.
Registers a repeating handler through the same live-state event engine as UO.SetEvent. Procname='' unregisters the event. Registration does not execute the handler immediately; the handler is evaluated on subsequent UO.Wait yields when the documented event transition occurs.
UO.SetRec() is the one-shot recorder. It clears the previous recording, arms capture, then lets the next compatible legacy UO.* command execute normally while storing the command name together with its typed arguments. The recorder disarms immediately after that one capture; UO.UseRec() replays the saved action.
season_num に従って季節を設定します。 0 - デフォルト (現在) 1 - 春 2 - 夏 3 - 秋 4 - 冬 5 - 荒廃 (干ばつ)
ローカルフラグshowZ(0/1)を保存します。このフラグはレンダリングとは関係ありません。コマンド自体には高さの表示が含まれていません。アクティブ スイッチ UI として説明しないでください。
Controls automatic diagnostic output to the Info Window. When silent mode is disabled (false), Gump description/query helpers may both return their data and mirror the lines into the Info Window. When silent mode is enabled (true), those helpers return data without automatic Info Window output.
キャラクターの特性のロック状態を変更するリクエストをサーバーに送信します。
SetStatLockState の別名。
キャラクターが現在接続している (または最後に接続していた) シャードの名前を返します。
ClassicUO での実行が明示的に禁止されている登録済み互換名: NativeSubrutineException がスローされます。 Windows がシャットダウンしません。稼働中のシステムのシャットダウン コマンドとしては使用しないでください。
TakeScreenshot 経由でクライアントのスナップショットを保存します。引数がない場合、標準名、quality=100 および includeUi=1 が選択されます。品質は1–100に制限されます。 includeUi はインターフェースが有効かどうかを決定します。クライアントの保存操作の結果を返します。
オブジェクトと同様の空のコンテナを開きます。パラメータが指定されていない場合は十字線で表示されます。
sndnumberに応じてゲームサウンドを再生します。
キャラクターがステルス モードで歩いた歩数を返します。
Returns information about the actual product version and embedded ClassicUO / BadNewbie / C# IDE runtime as [productName, productVersion, clientPath]. The version is sourced from the current C# IDE product version instead of the old hard-coded compatibility value 1.0.
Reads or changes the requested mobile/player stat/state through the current ClassicUO world model and registered API bridge.
保存されているラベル Timer を 10 分の 1 秒単位で返します。この実装では、特にテスト Move() が成功したときに更新されます。これは別個のアニメーション フレーム カウンターではありません。
オブジェクトを適用するために保存されているラベル UO.Timer を返します。単位は10分の1秒です。
Gargoyle キャラクターの飛行モードを切り替えます。
保存されている武器セット Name をメモリから削除します。
現在の「キャッチバッグ」をリセットします。
地面上で指定されたタイプと色のオブジェクトを探し、それを使用します (double-クリック)。
指定されたモバイルのキャラクター ステータス スクロール (ペーパードール ウィンドウからのキャラクター ステータス) を開きます。
Compatibility query for proxy mode. The current ClassicUO/C# embedded runtime does not expose a separate proxy transport, so this returns 0 rather than pretending the normal game connection is a proxy.
Replays the command and typed arguments stored by the UO.SetRec() recorder through the same legacy compatibility dispatcher. Replay does not consume the recording, so the same action can be executed repeatedly. If no valid recording exists, UO.UseRec() performs no action and reports the missing recording in a connected client.
現在のキャラクターのキャラクター ステータス スクローラーを (ペーパードール ウィンドウから) 開きます。
指定された美徳を活性化します。
Prints the real C# product version from the active ClassicUO / BadNewbie / C# IDE client. The value is sourced from the live product-version bridge and is not a hard-coded compatibility placeholder.
ClassicUO — Bad Newbie & C# Scripts IDE