I would look into the open source packet hackers and port to your private server/game version. CMSG_AUTOSTORE_LOOT_ITEM or CMSG_STORE_LOOT_IN_SLOT or CMSG_LOOT or SMSG_LOOT_MASTER_LIST are ones I'd look into. GitHub - mtm88/CppBot: World of Warcraft (wow) 3.3.5 (WOTLK) bot for learning purposes written in c++ or really any on github that you can find easily enough are good for references and learning off of.