

def joinBank(self, owner):
    bank = self.getKernel().serviceManager().equipmentService().getEquippedObject(owner, 'bank')
    if bank:
        if (bank.scene_id == owner.scene_id):
            SystemMessage.sendSystemMessage(owner, 'system_msg', 'already_member_of_bank', False, False)
        elif (bank.scene_id == 0):
            bank.scene_id = owner.scene_id
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('system_msg', 'succesfully_joined_bank'), False, False)
        else:
            SystemMessage.sendSystemMessage(owner, swgpy.OutOfBand('system_msg', 'member_of_different_bank'), False, False)

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