Project

General

Profile

LootWindow (Top-Level Object)

Description

Retrieves a loot window object from the game world.

This TLO returns the last loot window opened (or the only one, if you only have one loot window up), or the loot window that corresponds with a specific ID as supplied by the EQ2_onLootWindowAppeared event. (If you have no loot windows up, then it returns NULL.)

Forms

Examples

  • echo ${LootWindow.NumItems}
  • LootWindow[${LootWindowID}]:LootAll
  • An example to make sure all chests are looted:

AddTrigger acceptloot LOOTWINDOW::LOOTWINDOW
.
.
.
function acceptloot()
{
  do
  {
    wait 1
    LootWindow:RequestAll
  }
  while ${LootWindow(exists)}
}