Repository navigation
ZH TW 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.
此命令用於將門電荷添加到標準物件運行手冊中。
將單字 Alarm 列印到本地 ClassicUO 系統日誌。用作腳本中條件發生情況的註解。
變更「始終運行」用戶端選項中複選框的狀態(如果用戶端支援此選項)。
如果指定的命令名稱在運行時註冊,則返回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 中,它僅列印一條訊息,表明不需要此類補丁。不改變動作、言語或容器。
在供應商的名稱 name 後面附加來自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.
正面的結果需要達到終點。超出遍歷限制和無效座標均不視為成功。
變更 Transparency Circle 用戶端選項中複選框的狀態。
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 用戶端視窗。
變更注入在控制台中寫入的文字的顏色。
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.
下馬,在背包裡放一個「馬鞍」——一個與馬相關的物體,瞧。
傳回兩點 (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,而不是十六進位字串。
將文字符號serial EasyUO(基數26,A=0)轉換為十六進位字串注入。字母不區分大小寫;非字母字元將被跳過。反函數是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 每次自動銷售操作後應用的延遲(以毫秒為單位)。
傳回角色的活躍 buff 和 debuff 清單。
以現成的字串形式傳回具有 ObjID 的物件的工具提示文字。
傳回指定 ClilocID 處的本地化 cliloc 字串。
傳回具有 ObjID 的物件的顏色 (hue)。
以 TContentItemData 條目數組的形式傳回帶有 ID 的容器內容。
Reads Dexterity from PlayerMobile. UO.GetDex() is equivalent to reading the active player's value. UO.GetDex(self) reads the same value.
傳回一個物件參數(預設為玩家角色)-方向,從0到7
依索引 num 傳回 EasyUO 全域變數的值。
Operates on the active C#/ClassicUO runtime, network or profile state through the registered implementation route.
讀取目前角色/客戶端狀態或執行階段的註冊值。類型在簽名中指定;要編寫,請使用適當的 Set 方法(如果已註冊)。
讀取目前角色/客戶端狀態或執行階段的註冊值。類型在簽名中指定;要編寫,請使用適當的 Set 方法(如果已註冊)。
傳回一個物件參數(預設為玩家角色)-物件類型
在目前的實作中,它採用確切的字串“字元”並傳回其字元的名稱。對於任何其他值,返回字串“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.Mobiles;普通 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.
返回 CodePage 編碼。當前 .NET 運行時的預設編碼。這不是客戶端語言切換或 Windows ANSI 編碼承諾;現代 .NET 通常回傳 UTF-8 (65001)。
將字串拆分為單字並傳回索引為 FROM ZERO 的單字。如果沒有分隔符,則使用空白字符,並刪除空白部分。無法存取的索引會傳回空字串。
傳回一個特殊值,指示地面作為專案處理和搜尋方法中的目標或目的地。
列印有關使用 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。
以十六進位 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 的別名。輸入由活動作業系統視窗接收;該指令本身不會啟動客戶端。
運行帶有參數參數的外部程式檔案名
改變遊戲中的燈光。
從找到的最後一個日誌條目中返回揚聲器的序號 (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 清單格式為 0xXXXXXXXXX。不開始新的搜尋。
如果指定的行動裝置可以重新命名(例如寵物或追蹤者),則傳回 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 的別名。輸入由活動作業系統視窗接收;該指令本身不會啟動客戶端。
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.
在此實作中,僅更改了三個命名設定:finddistance(搜尋距離)、grabdelay(以毫秒為單位的進位延遲)、equipfordress(Dress處的裝備模式)。名稱以不區分大小寫的方式進行比較。數字和字串重載使用相同的路徑;字串支援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。在此實作中,特別是當測試 Move() 成功時,它會被更新。這不是一個單獨的動畫幀計數器。
返回用于应用对象的存储标签UO.Timer。單位是十分之一秒。
切換石像鬼角色的飛行模式。
從記憶體中刪除儲存的武器組Name。
重置目前的“catch bag”。
在地面上尋找指定類型和顏色的物體,然後使用(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