AutoLoot

The Autoloot class allow to interact with the Autoloot Agent, via scripting.

Table of Contents

Methods

AddItemByTarget

Syntax: AutoLoot.AddItemByTarget()

Initiate targeting to add an item to the active list.

Returns: Void

ChangeList

Syntax: AutoLoot.ChangeList(listName)

Change the Autoloot's active list.

Parameters:
  • listName (String): Name of an existing organizer list.
Returns: Void

ClearCorpseCache

Syntax: AutoLoot.ClearCorpseCache()

Public method to force clear the recently looted corpses cache. Called when autoloot configuration is modified.

Returns: Void

ClearList

Syntax: AutoLoot.ClearList(listName)

Clear all items from an AutoLoot list.

Parameters:
  • listName (String)
Returns: Void

GetList

Syntax: AutoLoot.GetList(lootListName, wantMinusOnes)

Given an AutoLoot list name, return a list of AutoLootItem associated.

Parameters:
  • lootListName (String): Name of the AutoLoot list.
  • wantMinusOnes (Boolean)
Returns: List[AutoLoot.AutoLootItem]

GetLootBag

Syntax: AutoLoot.GetLootBag()

Get current Autoloot destination container.

Returns: UInt32

ItemInsert

Syntax: AutoLoot.ItemInsert(listName, item)

Insert an item into an AutoLoot list.

Parameters:
  • listName (String)
  • item (AutoLoot.AutoLootItem)
Returns: Void

ItemsRead

Syntax: AutoLoot.ItemsRead(list, includedLists, expand)
Parameters:
  • list (String)
  • includedLists (IEnumerable[String])
  • expand (Boolean)
Returns: Dictionary[Int32, List[AutoLoot.AutoLootItem]]

ListDelete

Syntax: AutoLoot.ListDelete(description)

Delete an AutoLoot list from persistence.

Parameters:
  • description (String)
Returns: Void

ListDetailsRead

Syntax: AutoLoot.ListDetailsRead(listname, bag, noopencorpse, range)
Parameters:
  • listname (String)
  • bag (Int32&@)
  • noopencorpse (Boolean&@)
  • range (Int32&@)
Returns: Void

ListExists

Syntax: AutoLoot.ListExists(description)

Check if an AutoLoot list exists by name.

Parameters:
  • description (String)
Returns: Boolean

ListInsert

Syntax: AutoLoot.ListInsert(description, bag, noopencorpse, maxrange)

Insert a new AutoLoot list into persistence.

Parameters:
  • description (String)
  • bag (Int32)
  • noopencorpse (Boolean)
  • maxrange (Int32)
Returns: Void

ListsRead

Syntax: AutoLoot.ListsRead()

Read all AutoLoot lists from persistence.

Returns: List[AutoLoot.AutoLootList]

ResetIgnore

Syntax: AutoLoot.ResetIgnore()

Reset the Autoloot ignore list.

Returns: Void

RunOnce

Syntax: AutoLoot.RunOnce(lootListName, millisec, filter)

Start Autoloot with custom parameters.

Parameters:
  • lootListName (String): Name of the Autoloot listfilter for search on ground.
  • millisec (Int32): Delay in milliseconds. (unused)
  • filter (Items.Filter): Item filter
Returns: Void

SetBag

Syntax: AutoLoot.SetBag()

Initiate targeting to set the loot bag for the active list.

Returns: Void

SetNoOpenCorpse

Syntax: AutoLoot.SetNoOpenCorpse(noOpen)

Toggle "No Open Corpse" on/off. The change doesn't persist if you reopen the assistant.

Parameters:
  • noOpen (Boolean): True: "No Open Corpse" is active - False: otherwise
Returns: Boolean

Start

Syntax: AutoLoot.Start()

Start the Autoloot Agent on the currently active list.

Returns: Void

Status

Syntax: AutoLoot.Status()

Check Autoloot Agent status

Returns: Boolean

Stop

Syntax: AutoLoot.Stop()

Stop the Autoloot Agent.

Returns: Void