UOOutlands / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
http://www.uor-razor.com
GNU General Public License v3.0
9 stars 6 forks source link

Expression "atlist" to retrieve a list item by a specified index, "poplist" as an expression to retrieve popped value with "as" operator #89

Open Tranq1 opened 2 years ago

Tranq1 commented 2 years ago

atlist expression

Atlist retrieves a list item of the specified index. Will return 0 if the index is out of bounds or the retrieved item could not be converted into a serial.

Usage: atlist ('list name') (index (starts with 0))

createlist testlist
clearlist testlist
pushlist testlist 0x1
pushlist testlist 0x2
pushlist testlist 0x3

if atlist testlist 2 as entry
    overhead firstentry
else
    overhead "index out of bounds or list item retrievend was no serial"
endif

poplist expression

Implemented a second version of poplist as an expression so the item popped can be retrieved via the as operator. Works alongside the normal poplist command.

if poplist testlist back as popped
    overhead popped
endif
anethus commented 2 years ago

Beta Client Build and Release #55