Script::SetLootThreshold
function · ui · primitive
- Address
0x4e9500· 205 bytes, up to0x4e95cc- Signature
int __fastcall (lua_State *L)- Meaning
- Checks the group and leader, then sends CMSG_LOOT_METHOD with a new threshold
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/masterloot#setting-the-loot-method
Finding: Setting the loot method in ui: master loot and the loot method
SetLootMethod("method" [, master] [, threshold]) and SetLootThreshold(threshold) need the player to be in a group
(ERR_NOT_IN_GROUP) and its leader (ERR_NOT_LEADER); each failure returns nothing. The method string, matched without
case, is freeforall, roundrobin, master, group or needbeforegreed, else Invalid loot method. Only for
master is the next argument read: a player name, resolved by closest match, who must be in the player's party or raid
(ERR_TARGET_NOT_IN_GROUP_S); an empty or missing name gives ERR_SPECIFY_MASTER_LOOTER. The threshold is the argument
after that and defaults to 2. Both send CMSG_LOOT_METHOD (0x7a): method (u32), master looter GUID (u64), threshold
(u32); SetLootThreshold sends the current method and looter with the new threshold. A non-number threshold raises
Usage: SetLooThreshold(threshold).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- SendLootMethod objectlayer
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.