def METHOD_NAME(self, source_player_id, target_player_id, room, item):
    if self.getPlayer(source_player_id).markRoomDone(room):
        self.getPlayer(target_player_id).addItem(item, source_player_id)
        f = open(binascii.hexlify(self.__rom_id).decode("ascii") + ".log", "at")
        f.write("%d:%d:%d:%d\n" % (source_player_id, target_player_id, room, item))
        f.close()