ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
These functions relate to[Loot](https://wow.gamepedia.com/Loot "Loot"). [C\_Loot.IsLegacyLootModeEnabled](https://wow.gamepedia.com/API_C_Loot.IsLegacyLootModeEnabled "API C Loot.IsLegacyLootModeEnabled")() [C\_LootHistory.CanMasterLoot](https://wow.gamepedia.com/index.php?title=API_C_LootHistory.CanMasterLoot&action=edit&redlink=1 "API C LootHistory.CanMasterLoot (page does not exist)")(itemIndex, playerIndex) [C\_LootHistory.GetExpiration](https://wow.gamepedia.com/index.php?title=API_C_LootHistory.GetExpiration&action=edit&redlink=1 "API C LootHistory.GetExpiration (page does not exist)")() [C\_LootHistory.GetItem](https://wow.gamepedia.com/API_C_LootHistory.GetItem "API C LootHistory.GetItem")(itemIndex) [C\_LootHistory.GetNumItems](https://wow.gamepedia.com/index.php?title=API_C_LootHistory.GetNumItems&action=edit&redlink=1 "API C LootHistory.GetNumItems (page does not exist)")() [C\_LootHistory.GetPlayerInfo](https://wow.gamepedia.com/API_C_LootHistory.GetPlayerInfo "API C LootHistory.GetPlayerInfo")(itemIndex, playerIndex) [C\_LootHistory.GiveMasterLoot](https://wow.gamepedia.com/index.php?title=API_C_LootHistory.GiveMasterLoot&action=edit&redlink=1 "API C LootHistory.GiveMasterLoot (page does not exist)")(itemIndex, playerIndex) [C\_LootHistory.SetExpiration](https://wow.gamepedia.com/index.php?title=API_C_LootHistory.SetExpiration&action=edit&redlink=1 "API C LootHistory.SetExpiration (page does not exist)")(numItemsToSave, secondsToSave) [CanLootUnit](https://wow.gamepedia.com/index.php?title=API_CanLootUnit&action=edit&redlink=1 "API CanLootUnit (page does not exist)")(unitGUID) [CancelMasterLootRoll](https://wow.gamepedia.com/index.php?title=API_CancelMasterLootRoll&action=edit&redlink=1 "API CancelMasterLootRoll (page does not exist)")(slot) [CloseLoot](https://wow.gamepedia.com/API_CloseLoot "API CloseLoot")(\[uiFailedFlag\]) [ConfirmLootRoll](https://wow.gamepedia.com/API_ConfirmLootRoll "API ConfirmLootRoll")(rollId\[, roll\]) - Confirm a loot roll. [ConfirmLootSlot](https://wow.gamepedia.com/API_ConfirmLootSlot "API ConfirmLootSlot")(slot) - Confirm looting of a BoP item. [DoMasterLootRoll](https://wow.gamepedia.com/index.php?title=API_DoMasterLootRoll&action=edit&redlink=1 "API DoMasterLootRoll (page does not exist)")(slot) [GetActiveLootRollIDs](https://wow.gamepedia.com/index.php?title=API_GetActiveLootRollIDs&action=edit&redlink=1 "API GetActiveLootRollIDs (page does not exist)")() [GetLootInfo](https://wow.gamepedia.com/API_GetLootInfo "API GetLootInfo")() [GetLootMethod](https://wow.gamepedia.com/API_GetLootMethod "API GetLootMethod")() - Returns the currently active[lootMethod](https://wow.gamepedia.com/LootMethod "LootMethod"). [GetLootRollItemInfo](https://wow.gamepedia.com/API_GetLootRollItemInfo "API GetLootRollItemInfo")(rollId) [GetLootRollItemLink](https://wow.gamepedia.com/API_GetLootRollItemLink "API GetLootRollItemLink")(id) [GetLootRollTimeLeft](https://wow.gamepedia.com/index.php?title=API_GetLootRollTimeLeft&action=edit&redlink=1 "API GetLootRollTimeLeft (page does not exist)")(rollid) [GetLootSlotInfo](https://wow.gamepedia.com/API_GetLootSlotInfo "API GetLootSlotInfo")(slot) - Returns icon path, item name, and item quantity for the item in the given loot window slot. [GetLootSlotLink](https://wow.gamepedia.com/API_GetLootSlotLink "API GetLootSlotLink")(slot) - Returns an[itemLink](https://wow.gamepedia.com/ItemLink "ItemLink")for the item in the given loot window slot. [GetLootSlotType](https://wow.gamepedia.com/API_GetLootSlotType "API GetLootSlotType")(slot) [GetLootSourceInfo](https://wow.gamepedia.com/API_GetLootSourceInfo "API GetLootSourceInfo")(slot) - Returns information about the source of the objects in a loot slot. [GetLootSpecialization](https://wow.gamepedia.com/API_GetLootSpecialization "API GetLootSpecialization")() [GetLootThreshold](https://wow.gamepedia.com/API_GetLootThreshold "API GetLootThreshold")() - Returns the current loot threshold (for group/master loot) [GetMasterLootCandidate](https://wow.gamepedia.com/API_GetMasterLootCandidate "API GetMasterLootCandidate")(index) - Returns the name of a player who is eligible to receive loot in master mode. [GetNumLootItems](https://wow.gamepedia.com/API_GetNumLootItems "API GetNumLootItems")() - Returns amount of objects to loot (number) [GetOptOutOfLoot](https://wow.gamepedia.com/API_GetOptOutOfLoot "API GetOptOutOfLoot")() - Returns whether the character is currently automatically passing on all loot. [GiveMasterLoot](https://wow.gamepedia.com/API_GiveMasterLoot "API GiveMasterLoot")(slot, index) [IsFishingLoot](https://wow.gamepedia.com/API_IsFishingLoot "API IsFishingLoot")() [IsMasterLooter](https://wow.gamepedia.com/index.php?title=API_IsMasterLooter&action=edit&redlink=1 "API IsMasterLooter (page does not exist)")() [LootMoneyNotify](https://wow.gamepedia.com/index.php?title=API_LootMoneyNotify&action=edit&redlink=1 "API LootMoneyNotify (page does not exist)")(money, soleLooter) [LootSlotHasItem](https://wow.gamepedia.com/API_LootSlotHasItem "API LootSlotHasItem")(slot) [LootSlot](https://wow.gamepedia.com/API_LootSlot "API LootSlot")(slot) - Used to loot the specified slot. [RollOnLoot](https://wow.gamepedia.com/API_RollOnLoot "API RollOnLoot")(rollId\[, roll\]) - Roll or pass on a loot event started by the game engine. [SetLootMethod](https://wow.gamepedia.com/API_SetLootMethod "API SetLootMethod")("lootMethod"\[, "masterPlayer" or threshold\]) - Set the current loot method. [SetLootPortrait](https://wow.gamepedia.com/index.php?title=API_SetLootPortrait&action=edit&redlink=1 "API SetLootPortrait (page does not exist)")() [SetLootSpecialization](https://wow.gamepedia.com/API_SetLootSpecialization "API SetLootSpecialization")(specilizationID) [SetLootThreshold](https://wow.gamepedia.com/API_SetLootThreshold "API SetLootThreshold")([itemQuality](https://wow.gamepedia.com/index.php?title=ItemQuality&action=edit&redlink=1 "ItemQuality (page does not exist)")) - Set the threshold for group/master loot. [SetOptOutOfLoot](https://wow.gamepedia.com/API_SetOptOutOfLoot "API SetOptOutOfLoot")(optOut) - Enables or disables automatic passing on all loot.