A JumpIfInventory

From ECWolf Wiki

A_JumpIfInventory (string item, int amount, state frame)

The calling actor jumps to the specified state if the actor is carrying at least amount of the given item.