User Tools

Site Tools


autoloot_func

This is an old revision of the document!


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

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.1647985159.txt.gz · Last modified: 2022/09/03 22:41 (external edit)

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.