Use itemIDs and spellIDs directly, no need to query and use their names