

def quitBank(self, owner):
    bank = self.getKernel().serviceManager().equipmentService().getEquippedObject(owner, 'bank')
    if bank:
        if (bank.hasContainedObjects() is not 0):
            bank.scene_id = 0
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('system_msg', 'succesfully_quit_bank'), False, False)
        else:
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('system_msg', 'bank_not_empty'), False, False)

dataset/ETHPy150Open anhstudios/swganh/data/scripts/radials/bank.py PyRadialMenu.quitBank/original