Mercurial > wow > ouroloot
comparison core.lua @ 70:cdee65c1bd8c
Implement a list of items to be automatically marked as sent to the guild vault. List controlled on the Options tab like the existing filter. Default list is Cataclysm crafting material drops.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 11 May 2012 03:56:21 +0000 |
parents | 8442272a8418 |
children | fb330a1fb6e9 |
comparison
equal
deleted
inserted
replaced
69:8442272a8418 | 70:cdee65c1bd8c |
---|---|
545 -- get item filter table if needed | 545 -- get item filter table if needed |
546 if opts.itemfilter == nil then | 546 if opts.itemfilter == nil then |
547 opts.itemfilter = self.default_itemfilter | 547 opts.itemfilter = self.default_itemfilter |
548 end | 548 end |
549 self.default_itemfilter = nil | 549 self.default_itemfilter = nil |
550 if opts.itemvault == nil then | |
551 opts.itemvault = self.default_itemvault | |
552 end | |
553 self.default_itemvault = nil | |
550 | 554 |
551 self:RegisterChatCommand("ouroloot", "OnSlash") | 555 self:RegisterChatCommand("ouroloot", "OnSlash") |
552 if opts.register_slashloot then | 556 if opts.register_slashloot then |
553 -- NOTA BENE: do not use /loot in the LoadOn list, ChatTypeInfo gets confused | 557 -- NOTA BENE: do not use /loot in the LoadOn list, ChatTypeInfo gets confused |
554 -- maybe try to detect if this command is already in use... | 558 -- maybe try to detect if this command is already in use... |
1080 quality = iquality, | 1084 quality = iquality, |
1081 itemname = iname, | 1085 itemname = iname, |
1082 id = itemid, | 1086 id = itemid, |
1083 itemlink = ilink, | 1087 itemlink = ilink, |
1084 itexture = itexture, | 1088 itexture = itexture, |
1085 disposition = (recipient == self.sharder) and 'shard' or nil, | |
1086 count = (count and count ~= "") and count or nil, | 1089 count = (count and count ~= "") and count or nil, |
1087 bcast_from = from, | 1090 bcast_from = from, |
1088 extratext = extratext, | 1091 extratext = extratext, |
1089 variant = self:is_variant_item(ilink), | 1092 variant = self:is_variant_item(ilink), |
1090 } | 1093 } |
1094 if opts.itemvault[itemid] then | |
1095 i.disposition = 'gvault' | |
1096 elseif recipient == self.sharder then | |
1097 i.disposition = 'shard' | |
1098 end | |
1091 if local_override then | 1099 if local_override then |
1092 -- player is adding loot by hand, don't wait for network cache timeouts | 1100 -- player is adding loot by hand, don't wait for network cache timeouts |
1093 -- keep this sync'd with prefer_local_loots above | 1101 -- keep this sync'd with prefer_local_loots above |
1094 if i.extratext == 'shard' | 1102 if i.extratext == 'shard' |
1095 or i.extratext == 'gvault' | 1103 or i.extratext == 'gvault' |