<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def buyQuestItems(self):
 """ Attempts to buy all quest items, returns result Returns bool - True if successful, otherwise False """

        for item in self.items:
            us = UserShopFront(self.usr, item.owner, item.id, str(item.price))
            us.loadInventory()
            
            if not item.name in us.inventory:
                return False
                
            if not us.inventory[item.name].buy():
                return False
                
        return True