markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 97 forks source link

[FEATURE] Add 'backpack' location parameter #171

Closed Luckbox777 closed 3 years ago

Luckbox777 commented 3 years ago

Would be nice to have 'backpack' as a parameter for certain commands, which would let to search and target only serials/types of items inside backpack and not on paperdoll or 2 tiles on the ground. Ideally there could also be deapth parameter, which would let specify how many containers deep it would look for those items. 0 could mean to look only inside root level of backpack. It would greatly help with sorting loot, since the default loadout is usually stored inside trapped pouches etc.

if findtype 'lootID' 'backpack' 0 movetype 'lootID' 'backpack' 0 endif

OR

@movetype 'lootID' 'backpack' 0

Luckbox777 commented 3 years ago

My bad, backpack already exists, but would be nice to have depth parameter too.