def METHOD_NAME(self, killer=None):
    events = self._event_get_by_type(CreatureAIEventTypes.AI_EVENT_TYPE_ON_DEATH)
    map_ = self.creature.get_map()
    for event in events:
        if event.event_chance != 100 and randint(0, 100) > event.event_chance:
            continue
        choices = ScriptHelpers.get_filtered_event_scripts(event)
        script = choice(choices)
        if not script:
            continue
        map_.enqueue_script(self.creature, target=killer, script_type=ScriptTypes.SCRIPT_TYPE_AI, script_id=script)