예제 #1
0
	def lame_print(self, victim_name, killer_name):
		victim = utility.get_player_data_by_name(victim_name)
		killer = utility.get_player_data_by_name(killer_name)
		
		if victim == None or killer == None:
			print 'Somebody got killed but the program was unable to extract the victim/killer'
			return
		
		victim_string = utility.get_character_string(victim)
		killer_string = utility.get_character_string(killer)
		
		line = '%s %s (%s) was slain by %s (%s) ' % (nil.time.timestamp(), victim_name, victim_string, killer_name, killer_string)
		print line
예제 #2
0
	def __init__(self, name):
		if not configuration.player_kill_information:
			return
			
		self.name = name
		player_data = utility.get_player_data_by_name(name)
		if player_data == None:
			self.character_class_string = '[Unknown]'
			print 'Unable to extract player information for name %s' % name
		else:
			self.character_class_string = utility.get_character_string(player_data)
		self.account = None