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 )
Description:
Get a list of autoloot items, Graphics of -1 are not returned
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

autoloot_func.txt · Last modified: 2020/03/23 10:32 by credzba