User Tools

Site Tools


autoloot_func

Scripting - Autoloot control function

Here can find some information about Enhanced Scripting function to control autoloot engine by script!

Get Loot List Contents

Get AutoLoot List Contents
Syntax AutoLoot.GetList( string LootListName, getMinusOneItems=False )
Description:
Get a list of autoloot items, Graphics of -1 are only returned if getMinusOneItems is set to True
Returns List < AutoLootItem >
In Object: AutoLoot { Name, Graphics, Color }
Parameters: string NameOfLootList
Example

items = AutoLoot.GetList("default")
for autoItem in items:
    Misc.SendMessage("id: 0X{:x}".format(autoItem.Graphics))

Check Status

Check AutoLoot Status
Syntax AutoLoot.Status( )
Description:
Get a bool value of autoloot engine status, if running or not
Returns bool
In Object: AutoLoot
Parameters: none

Start

Start AutoLoot
Syntax AutoLoot.Start( )
Description:
Start autoloot engine.
Returns void
In Object: AutoLoot
Parameters: none

Stop

Stop AutoLoot
Syntax AutoLoot.Stop( )
Description:
Stop autoloot engine.
Returns void
In Object: AutoLoot
Parameters: none

Change List

Change AutoLoot item list
Syntax AutoLoot.ChangeList(string)
Description:
Change list of autoloot item, List must be exist in autoloot GUI configuration
Returns void
In Object: AutoLoot
Parameters: ListName

Custom List

Start Autoloot whit custom parameters
Syntax AutoLoot.RunOnce(AutoLootItem, int, Filter)
Description:
Start autoloot with specific parameters: AutoLootItem is a list type for item, delay in second for grab and filter for search on ground
Returns void
In Object: AutoLoot
Parameters: AutoLootItem ItemList, double DelayGrabInMilliSecond, Filter FilterForSearch

SetNoOpenCorpse

Temporarily change NoOpenCorpse setting
Syntax AutoLoot.SetNoOpenCorpse( bool )
Description:
Temporarily set the NoOpenCorpse flag on the AutoLooter. Change not persisted.
Returns bool - the previous setting
In Object: AutoLoot
Parameters: bool True / False
Example

oldValue = AutoLoot.SetNoOpenCorpse(True)

autoloot_func.txt · Last modified: 2022/09/03 23:25 by 127.0.0.1