ScriptUO
Scripting Resources & Utilities => Orion UO Client => Topic started by: lbfsiteweb on December 07, 2025, 10:53:30 PM
-
How to obtain the name of a item
-
The name should be visible in game but to get other info you can do _info which will bring a cursor up to click an item and get info such as serial number and color etc
-
and how to use Script to get name?
-
Here is an example.
function PrintNameBySerial() {
var obj = Orion.FindObject('0x072AC317'); // Replace with actual serial
if (obj) {
Orion.Print("Object name: " + obj.Name());
} else {
Orion.Print("Object not found.");
}
}
-
thank you for answer
Before using this function, i must click on the target item once; otherwise, the output result will still be empty
Here is an example.
function PrintNameBySerial() {
var obj = Orion.FindObject('0x072AC317'); // Replace with actual serial
if (obj) {
Orion.Print("Object name: " + obj.Name());
} else {
Orion.Print("Object not found.");
}
}