Maibenrai Posted October 28, 2015 Report Share Posted October 28, 2015 HelloHow is item id stored into that?If my character has http://www.wowhead.com/item=57525 , it is stored as: 5 and 1727On old core it was stored as 0 and 57525 if I'm not mistaken. Naked0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 0 0 18 0 0 0 0 0 0 0 0 Wearing http://www.wowhead.com/item=57525 Studded Bearskin Jacket0 0 0 0 0 0 0 0 0 0 0 0 5 1727 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 0 0 18 0 0 0 0 0 0 0 0 Any pointers, please? Link to comment Share on other sites More sharing options...
Maibenrai Posted October 30, 2015 Author Report Share Posted October 30, 2015 I made some progress. In my example 5 = chest. Link to comment Share on other sites More sharing options...
Rat Posted October 30, 2015 Report Share Posted October 30, 2015 // cache equipment... for (uint32 i = 0; i < INVENTORY_SLOT_BAG_END; ++i) { if (Item* item = GetItemByPos(INVENTORY_SLOT_BAG_0, i)) { ss << item->GetTemplate()->GetInventoryType() << ' ' << item->GetDisplayId() << ' '; if (SpellItemEnchantmentEntry const* enchant = sSpellItemEnchantmentStore.LookupEntry(item->GetEnchantmentId(PERM_ENCHANTMENT_SLOT))) ss << enchant->ItemVisual; else ss << '0'; ss << ' '; } else ss << "0 0 0 "; } Link to comment Share on other sites More sharing options...
Maibenrai Posted October 30, 2015 Author Report Share Posted October 30, 2015 Thanks. Now I just need to learn some C++ Thanks for the answer Link to comment Share on other sites More sharing options...
Recommended Posts