EN UO Topic gameplay settings Part 2 - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

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

Execution state and gameplay settings — 2

Home · A–Z · Execution state and gameplay settings

1 · 2 · 3


UO.AutoBuyDelay

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

C# signatures

int UO.AutoBuyDelay();
void UO.AutoBuyDelay(int value);

Purpose

Read without arguments; change with one argument — automatic-buy delay.

Parameters

Parameter Type Meaning
value int automatic-buy delay. milliseconds. The value is clamped to 0…65535.

No parameters. → getter.

Return value

int — The current value; reading does not start an action. The setter returns void.

Default: 3.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager → per-owner next-operation deadline.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

int current = UO.AutoBuyDelay();
UO.Print("AutoBuyDelay: " + current);
UO.AutoBuyDelay(70000);
UO.Print("Effective buy delay: " + UO.GetAutoBuyDelay());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoBuyDelay
,AutoBuyDelay 250

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyRules · UO.AutoBuyLists


UO.AutoBuyEnabled

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

C# signatures

bool UO.AutoBuyEnabled();
void UO.AutoBuyEnabled(bool value);

Purpose

Read without arguments; change with one argument — automatic buying.

Parameters

Parameter Type Meaning
value bool true enables the named policy; false disables it.

No parameters. → getter.

Return value

bool — The current value; reading does not start an action. The setter returns void.

Default: false.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

YokoGameplayContexts → BackNewbieAutomationManager.TryAutoBuy.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

bool current = UO.AutoBuyEnabled();
UO.Print("AutoBuyEnabled: " + current);
UO.AutoBuyRules(new[] { new global::ClassicUO.CSharp.GameplayItemRule { Name = "Bandages", Graphic = 0x0E21, AnyHue = true, Amount = 10, MaxPrice = 4 } });
UO.AutoBuyEnabled(true);
UO.Print("Buy automation is active for this run.");
UO.Wait(5000);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoBuyEnabled
,AutoBuyEnabled true

Related commands

Execution state and gameplay settings · UO.AutoBuyDelay · UO.AutoBuyRules · UO.AutoBuyLists


UO.AutoBuyLists

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

C# signatures

ClassicUO.CSharp.GameplayRuleList[] UO.AutoBuyLists();
void UO.AutoBuyLists(ClassicUO.CSharp.GameplayRuleList[] value);

Purpose

Read without arguments; change with one argument — buy-rule lists.

Parameters

Parameter Type Meaning
value GameplayRuleList[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayRuleList[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [{"Id":"default","Name":"Default","Enabled":true}].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → BackNewbieRuleLists.IsEnabled.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
Id / id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Enabled / enabled bool true enables the named policy; false disables it.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

foreach (var list in UO.AutoBuyLists())
    UO.Print(list.Id + ": " + list.Name + " enabled=" + list.Enabled);
UO.AutoBuyLists(new[]
{
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "default", Name = "Default", Enabled = true },
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "supplies", Name = "Supplies", Enabled = false }
});
UO.Print("Lists: " + UO.AutoBuyLists().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoBuyLists
,AutoBuyLists '[{"id":"default","name":"Default","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyRules


UO.AutoBuyRules

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

C# signatures

ClassicUO.CSharp.GameplayItemRule[] UO.AutoBuyRules();
void UO.AutoBuyRules(ClassicUO.CSharp.GameplayItemRule[] value);

Purpose

Read without arguments; change with one argument — buy rules.

Parameters

Parameter Type Meaning
value GameplayItemRule[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayItemRule[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → owner Profile data → BackNewbieAutomationManager.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
ListId / list_id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Graphic / graphic ushort Exact item graphic/type, 0…65535, not a serial.
Hue / hue ushort Exact color 0…65535 when AnyHue=false.
AnyHue / any_hue bool true accepts every color.
Amount / amount ushort 0 means the available full stack; otherwise a quantity limit. Vendor limits apply across matching lines of one rule in one offer.
MaxPrice / max_price uint Maximum unit price in a vendor offer; 0 is unlimited. Unused for looting.
MatchName / match_name string Optional case-insensitive name substring; empty matches any name.
Enabled / enabled bool The rule applies only when true and its list also has Enabled=true.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

global::ClassicUO.CSharp.GameplayItemRule[] rules = UO.AutoBuyRules();
foreach (var rule in rules)
    UO.Print(rule.Name + " type=0x" + rule.Graphic.ToString("X4") + " enabled=" + rule.Enabled);
UO.AutoBuyRules(new[]
{
    new global::ClassicUO.CSharp.GameplayItemRule { Name = "Bandages", Graphic = 0x0E21, AnyHue = true, Amount = 10, MaxPrice = 4 }
});
UO.Print("Rules: " + UO.AutoBuyRules().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoBuyRules
,AutoBuyRules '[{"list_id":"default","name":"Bandages","graphic":3617,"hue":0,"any_hue":true,"amount":10,"max_price":4,"match_name":"","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyLists


UO.AutoLootBagSerial

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

C# signatures

uint UO.AutoLootBagSerial();
void UO.AutoLootBagSerial(uint value);

Purpose

Read without arguments; change with one argument — loot destination bag.

Parameters

Parameter Type Meaning
value uint A loaded container serial; 0 means the current backpack. Setting an unknown or unsuitable bag does not make it accessible.

No parameters. → getter.

Return value

uint — The current value; reading does not start an action. The setter returns void.

Default: 0.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager.ResolveLootBag → script pickup/drop request.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

uint current = UO.AutoLootBagSerial();
UO.Print("AutoLootBagSerial: " + current);
UO.AutoLootBagSerial(0u);
uint configuredBag = UO.AutoLootBagSerial();
UO.Print(configuredBag == 0 ? "Destination: current backpack" : "Bag: 0x" + configuredBag.ToString("X8"));

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootBagSerial
,AutoLootBagSerial 0u

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootDelay · UO.AutoLootRules


UO.AutoLootDelay

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

C# signatures

int UO.AutoLootDelay();
void UO.AutoLootDelay(int value);

Purpose

Read without arguments; change with one argument — loot delay.

Parameters

Parameter Type Meaning
value int loot delay. milliseconds. The value is clamped to 0…10000.

No parameters. → getter.

Return value

int — The current value; reading does not start an action. The setter returns void.

Default: 600.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager → per-owner next-operation deadline.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

int current = UO.AutoLootDelay();
UO.Print("AutoLootDelay: " + current);
UO.AutoLootDelay(750);
UO.Print("Applied: " + UO.AutoLootDelay());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootDelay
,AutoLootDelay 750

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootRules · UO.AutoLootLists


UO.AutoLootEnabled

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

C# signatures

bool UO.AutoLootEnabled();
void UO.AutoLootEnabled(bool value);

Purpose

Read without arguments; change with one argument — automatic looting.

Parameters

Parameter Type Meaning
value bool true enables the named policy; false disables it.

No parameters. → getter.

Return value

bool — The current value; reading does not start an action. The setter returns void.

Default: false.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

YokoGameplayContexts → BackNewbieAutomationManager.Update.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

bool current = UO.AutoLootEnabled();
UO.Print("AutoLootEnabled: " + current);
UO.AutoLootRules(new[] { new global::ClassicUO.CSharp.GameplayItemRule { Name = "Gold", Graphic = 0x0EED, AnyHue = true, Amount = 0 } });
UO.AutoLootEnabled(true);
UO.Print("Loot automation is active for this run.");
UO.Wait(5000);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootEnabled
,AutoLootEnabled true

Related commands

Execution state and gameplay settings · UO.AutoLootDelay · UO.AutoLootRules · UO.AutoLootLists


UO.AutoLootFromGround

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

C# signatures

bool UO.AutoLootFromGround();
void UO.AutoLootFromGround(bool value);

Purpose

Read without arguments; change with one argument — looting from the ground.

Parameters

Parameter Type Meaning
value bool true enables the named policy; false disables it.

No parameters. → getter.

Return value

bool — The current value; reading does not start an action. The setter returns void.

Default: false.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager.IsLootSourceAllowed.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

bool current = UO.AutoLootFromGround();
UO.Print("AutoLootFromGround: " + current);
UO.AutoLootFromGround(true);
UO.AutoLootRange(2);
UO.Print("Ground sources: " + UO.AutoLootFromGround());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootFromGround
,AutoLootFromGround true

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootDelay · UO.AutoLootRules


UO.AutoLootLists

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

C# signatures

ClassicUO.CSharp.GameplayRuleList[] UO.AutoLootLists();
void UO.AutoLootLists(ClassicUO.CSharp.GameplayRuleList[] value);

Purpose

Read without arguments; change with one argument — loot-rule lists.

Parameters

Parameter Type Meaning
value GameplayRuleList[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayRuleList[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [{"Id":"default","Name":"Default","Enabled":true}].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → BackNewbieRuleLists.IsEnabled.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
Id / id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Enabled / enabled bool true enables the named policy; false disables it.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

foreach (var list in UO.AutoLootLists())
    UO.Print(list.Id + ": " + list.Name + " enabled=" + list.Enabled);
UO.AutoLootLists(new[]
{
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "default", Name = "Default", Enabled = true },
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "supplies", Name = "Supplies", Enabled = false }
});
UO.Print("Lists: " + UO.AutoLootLists().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootLists
,AutoLootLists '[{"id":"default","name":"Default","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootDelay · UO.AutoLootRules


UO.AutoLootRange

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

C# signatures

int UO.AutoLootRange();
void UO.AutoLootRange(int value);

Purpose

Read without arguments; change with one argument — loot radius.

Parameters

Parameter Type Meaning
value int loot radius. world tiles. The value is clamped to 0…30.

No parameters. → getter.

Return value

int — The current value; reading does not start an action. The setter returns void.

Default: 2.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager.IsLootSourceAllowed.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

int current = UO.AutoLootRange();
UO.Print("AutoLootRange: " + current);
UO.AutoLootRange(3);
UO.Print("Applied: " + UO.AutoLootRange());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootRange
,AutoLootRange 3

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootDelay · UO.AutoLootRules


UO.AutoLootRules

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

C# signatures

ClassicUO.CSharp.GameplayItemRule[] UO.AutoLootRules();
void UO.AutoLootRules(ClassicUO.CSharp.GameplayItemRule[] value);

Purpose

Read without arguments; change with one argument — loot rules.

Parameters

Parameter Type Meaning
value GameplayItemRule[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayItemRule[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

A separate session-tick controller checks already loaded items and enabled rules. It needs an accessible container/corpse or permitted ground looting and a suitable backpack. A getter does not fetch hidden contents; the server confirms movement. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → owner Profile data → BackNewbieAutomationManager.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
ListId / list_id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Graphic / graphic ushort Exact item graphic/type, 0…65535, not a serial.
Hue / hue ushort Exact color 0…65535 when AnyHue=false.
AnyHue / any_hue bool true accepts every color.
Amount / amount ushort 0 means the available full stack; otherwise a quantity limit. Vendor limits apply across matching lines of one rule in one offer.
MaxPrice / max_price uint Maximum unit price in a vendor offer; 0 is unlimited. Unused for looting.
MatchName / match_name string Optional case-insensitive name substring; empty matches any name.
Enabled / enabled bool The rule applies only when true and its list also has Enabled=true.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

global::ClassicUO.CSharp.GameplayItemRule[] rules = UO.AutoLootRules();
foreach (var rule in rules)
    UO.Print(rule.Name + " type=0x" + rule.Graphic.ToString("X4") + " enabled=" + rule.Enabled);
UO.AutoLootRules(new[]
{
    new global::ClassicUO.CSharp.GameplayItemRule { Name = "Gold", Graphic = 0x0EED, AnyHue = true, Amount = 0 }
});
UO.Print("Rules: " + UO.AutoLootRules().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoLootRules
,AutoLootRules '[{"list_id":"default","name":"Gold","graphic":3821,"hue":0,"any_hue":true,"amount":0,"max_price":0,"match_name":"","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoLootEnabled · UO.AutoLootDelay · UO.AutoLootLists


UO.AutoSellDelay

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

C# signatures

int UO.AutoSellDelay();
void UO.AutoSellDelay(int value);

Purpose

Read without arguments; change with one argument — automatic-sell delay.

Parameters

Parameter Type Meaning
value int automatic-sell delay. milliseconds. The value is clamped to 0…65535.

No parameters. → getter.

Return value

int — The current value; reading does not start an action. The setter returns void.

Default: 3.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

BackNewbieAutomationManager → per-owner next-operation deadline.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

int current = UO.AutoSellDelay();
UO.Print("AutoSellDelay: " + current);
UO.AutoSellDelay(0);
UO.Print("No additional sell delay: " + UO.GetAutoSellDelay());

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoSellDelay
,AutoSellDelay 250

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyRules


UO.AutoSellEnabled

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

C# signatures

bool UO.AutoSellEnabled();
void UO.AutoSellEnabled(bool value);

Purpose

Read without arguments; change with one argument — automatic selling.

Parameters

Parameter Type Meaning
value bool true enables the named policy; false disables it.

No parameters. → getter.

Return value

bool — The current value; reading does not start an action. The setter returns void.

Default: false.

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

YokoGameplayContexts → BackNewbieAutomationManager.TryAutoSell.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

bool current = UO.AutoSellEnabled();
UO.Print("AutoSellEnabled: " + current);
UO.AutoSellRules(new[] { new global::ClassicUO.CSharp.GameplayItemRule { Name = "Bandages", Graphic = 0x0E21, AnyHue = true, Amount = 10 } });
UO.AutoSellEnabled(true);
UO.Print("Sell automation is active for this run.");
UO.Wait(5000);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoSellEnabled
,AutoSellEnabled true

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyRules


UO.AutoSellLists

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

C# signatures

ClassicUO.CSharp.GameplayRuleList[] UO.AutoSellLists();
void UO.AutoSellLists(ClassicUO.CSharp.GameplayRuleList[] value);

Purpose

Read without arguments; change with one argument — sell-rule lists.

Parameters

Parameter Type Meaning
value GameplayRuleList[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayRuleList[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [{"Id":"default","Name":"Default","Enabled":true}].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → BackNewbieRuleLists.IsEnabled.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
Id / id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Enabled / enabled bool true enables the named policy; false disables it.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

foreach (var list in UO.AutoSellLists())
    UO.Print(list.Id + ": " + list.Name + " enabled=" + list.Enabled);
UO.AutoSellLists(new[]
{
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "default", Name = "Default", Enabled = true },
    new global::ClassicUO.CSharp.GameplayRuleList { Id = "supplies", Name = "Supplies", Enabled = false }
});
UO.Print("Lists: " + UO.AutoSellLists().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoSellLists
,AutoSellLists '[{"id":"default","name":"Default","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyRules


UO.AutoSellRules

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

C# signatures

ClassicUO.CSharp.GameplayItemRule[] UO.AutoSellRules();
void UO.AutoSellRules(ClassicUO.CSharp.GameplayItemRule[] value);

Purpose

Read without arguments; change with one argument — sell rules.

Parameters

Parameter Type Meaning
value GameplayItemRule[] C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

No parameters. → getter.

Return value

GameplayItemRule[] — C# uses a typed array: the getter returns a separate copy and the setter replaces the entire array. Editing a returned object alone does not change automation. Chat passes JSON with snake_case field names.

Default: [].

Ownership

The setting belongs to this script execution. A new run copies the independent engine/chat defaults once, not the graphical Profile. A script setter changes neither the GUI nor other runs already executing. Named objects, types, equipment sets, Ignore lists and globals deliberately retain their documented shared scope.

A standalone chat command changes the lasting engine context: later commands read that value and new runs copy it. Existing runs keep their own values. Chat automation has its own controller and keeps operating after the command returns; GUI automation uses separate settings.

See execution state and gameplay settings.

Actual behavior

The controller processes an actual vendor offer received from the server, applies quantity/price limits and sends a buy/sell request. A getter does not open trading. Delay is scheduled after a request; it is not Wait and does not reschedule an existing deadline. Script automation ends when its run completes or is stopped. Keep the run active for the intended actions; a script that only configures rules and returns does not leave a background controller.

typed C# DTO[] ↔ JSON native value → owner Profile data → BackNewbieAutomationManager.

Rules from every enabled list (Enabled=true) are processed, independently of which list the GUI editor displays. The default list is preserved; orphaned list references are recovered as disabled lists.

Element fields

C# / JSON Type Meaning
ListId / list_id string List ID; initially default.
Name / name string Display label; this is not a name filter.
Graphic / graphic ushort Exact item graphic/type, 0…65535, not a serial.
Hue / hue ushort Exact color 0…65535 when AnyHue=false.
AnyHue / any_hue bool true accepts every color.
Amount / amount ushort 0 means the available full stack; otherwise a quantity limit. Vendor limits apply across matching lines of one rule in one offer.
MaxPrice / max_price uint Maximum unit price in a vendor offer; 0 is unlimited. Unused for looting.
MatchName / match_name string Optional case-insensitive name substring; empty matches any name.
Enabled / enabled bool The rule applies only when true and its list also has Enabled=true.

Standalone examples

Replace demonstration serials or names with your own before running. Each block is a complete, separate .csx without a hidden wrapper.

global::ClassicUO.CSharp.GameplayItemRule[] rules = UO.AutoSellRules();
foreach (var rule in rules)
    UO.Print(rule.Name + " type=0x" + rule.Graphic.ToString("X4") + " enabled=" + rule.Enabled);
UO.AutoSellRules(new[]
{
    new global::ClassicUO.CSharp.GameplayItemRule { Name = "Bandages", Graphic = 0x0E21, AnyHue = true, Amount = 10 }
});
UO.Print("Rules: " + UO.AutoSellRules().Length);

Through chat

Use the current chat prefix (initially ,). Separate arguments with spaces. A getter prints the current value; a setter returns no output. Bool values accept true/false or 1/0. Quote strings containing spaces and quote the complete JSON argument. C# and chat use the same native registry.

,AutoSellRules
,AutoSellRules '[{"list_id":"default","name":"Bandages","graphic":3617,"hue":0,"any_hue":true,"amount":10,"max_price":0,"match_name":"","enabled":true}]'

Related commands

Execution state and gameplay settings · UO.AutoBuyEnabled · UO.AutoBuyDelay · UO.AutoBuyRules