Please change these to use new core.ValidateItem for an example see https://github.com/s2games/Heroes-of-Newerth-Bots/blob/Community/bots/soulreaper/soulreaper_main.lua#L223