Mercurial > wow > askmrrobot
comparison Gear.lua @ 108:917ac27213d1 v50
Update to equipment set creation to use new 7.2 API.
| author | yellowfive |
|---|---|
| date | Thu, 30 Mar 2017 14:08:56 -0700 |
| parents | c1996b3376ed |
| children | f1da233629be |
comparison
equal
deleted
inserted
replaced
| 107:8b8a5b768d18 | 108:917ac27213d1 |
|---|---|
| 481 item = nil | 481 item = nil |
| 482 end | 482 end |
| 483 end | 483 end |
| 484 if item then | 484 if item then |
| 485 Amr.GetItemInfo(item.id, function(customArg, name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture) | 485 Amr.GetItemInfo(item.id, function(customArg, name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture) |
| 486 SaveEquipmentSet("AMR " .. specName, texture) | 486 local setname = "AMR " .. specName |
| 487 local setid = C_EquipmentSet.GetEquipmentSetID(setname) | |
| 488 if setid then | |
| 489 C_EquipmentSet.SaveEquipmentSet(setid, texture) | |
| 490 else | |
| 491 C_EquipmentSet.CreateEquipmentSet(setname, texture) | |
| 492 end | |
| 487 end) | 493 end) |
| 488 end | 494 end |
| 489 end | 495 end |
| 490 | 496 |
| 491 -- find the first empty slot in the player's backpack+bags | 497 -- find the first empty slot in the player's backpack+bags |
