Script::SetLootMethod
function · ui · primitive
- Address
0x4e92a0· 574 bytes, up to0x4e94dd- Signature
int __fastcall (lua_State *L)- Meaning
- Checks the group, leader, method name and master looter, then sends CMSG_LOOT_METHOD
- 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 14
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::ClosestObjectMatch ui
- CGGameUI::DisplayError ui
- IsRaidMember ui
- CGPartyInfo::IsMember ui
- SendLootMethod objectlayer
- SStrCmpI storm
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.