Mercurial > wow > inventory
comparison Modules/Scanner.lua @ 98:252292b703ce
All print(...) function calls are now handled by addon:Print(text, color).
The cursor will be cleared of any items/spells before moving as well as when aborting.
author | Zerotorescue |
---|---|
date | Sun, 09 Jan 2011 17:49:33 +0100 |
parents | 31493364b163 |
children | 6ae44d372360 |
comparison
equal
deleted
inserted
replaced
97:ae268e5c7825 | 98:252292b703ce |
---|---|
136 if itemCache[itemId] and missingItems > 0 then | 136 if itemCache[itemId] and missingItems > 0 then |
137 -- Check how many are available | 137 -- Check how many are available |
138 local availableItems = ((itemCache[itemId] and itemCache[itemId].totalCount) or 0); | 138 local availableItems = ((itemCache[itemId] and itemCache[itemId].totalCount) or 0); |
139 | 139 |
140 if availableItems > 0 then | 140 if availableItems > 0 then |
141 print("Insufficient " .. select(2, GetItemInfo(itemId)) .. " but this location has " .. availableItems .. " (moving " .. missingItems .. ")"); | 141 addon:Print("Insufficient " .. select(2, GetItemInfo(itemId)) .. " but this location has " .. availableItems .. " (moving " .. missingItems .. ")"); |
142 | 142 |
143 Mover:AddMove(itemId, missingItems); | 143 Mover:AddMove(itemId, missingItems); |
144 else | 144 else |
145 print("Insufficient " .. IdToItemLink(itemId)); | 145 addon:Print("Insufficient " .. IdToItemLink(itemId)); |
146 end | 146 end |
147 end | 147 end |
148 end | 148 end |
149 end | 149 end |
150 end | 150 end |