Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) GotoState("Busy") if akBaseItem == none || akItemReference || akDestContainer GotoState("") return elseif !akBaseItem.HasKeyword(VendorItemPotion) || akBaseItem.HasKeyword(VendorItemPoison) || akBaseItem.HasKeyword(VendorItemWeapon) GotoState("") return elseif PlayerRef.IsOnMount() || PlayerREF.GetAnimationVariableBool("bInJumpState") == true || PlayerREF.IsSwimming() == true || PlayerREF.getAnimationVariableBool("isStaggering") == true || PlayerREF.IsInKillMove() || PlayerREF.GetActorValue("Health") <= 0 GotoState("") return elseif !Game.IsLookingControlsEnabled() GotoState("") return endif DrinkPotion(akBaseItem as Potion) EndEvent