Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)
Return a new Event object for an event name

src/b/3/b3-1.9.2/b3/parsers/wop15.py   b3(Download)
        self.joinPlayers()
 
        return self.getEvent('EVT_GAME_ROUND_START', self.game)
 
    # say
        if client:
            self.verbose('Client Found: %s' % client.name)
            return self.getEvent('EVT_CLIENT_SAY', msg[1], client)
        else:
            self.verbose('No Client Found!')
        if client:
            self.verbose('Client Found: %s' % client.name)
            return self.getEvent('EVT_CLIENT_TEAM_SAY', msg[1], client, client.team)
        else:
            self.verbose('No Client Found!')
 
        if client and cid != '-1':
            return self.getEvent('EVT_CLIENT_PRIVATE_SAY', match.group('text'), client, target)
 
    #Damage: 2 1022 2 50 7
 
        damagepoints = float(match.group('damage'))
        return self.getEvent(event, (damagepoints, weapon, victim.hitloc), attacker, victim)
 
    # kill

src/b/i/big-brother-bot-HEAD/b3/parsers/wop15.py   big-brother-bot(Download)
        self.joinPlayers()
 
        return self.getEvent('EVT_GAME_ROUND_START', self.game)
 
    # say
        if client:
            self.verbose('Client Found: %s' % client.name)
            return self.getEvent('EVT_CLIENT_SAY', msg[1], client)
        else:
            self.verbose('No Client Found!')
        if client:
            self.verbose('Client Found: %s' % client.name)
            return self.getEvent('EVT_CLIENT_TEAM_SAY', msg[1], client, client.team)
        else:
            self.verbose('No Client Found!')
 
        if client and cid != '-1':
            return self.getEvent('EVT_CLIENT_PRIVATE_SAY', match.group('text'), client, target)
 
    #Damage: 2 1022 2 50 7
 
        damagepoints = float(match.group('damage'))
        return self.getEvent(event, (damagepoints, weapon, victim.hitloc), attacker, victim)
 
    # kill

src/b/3/b3-1.9.2/b3/parsers/iourt41.py   b3(Download)
        #victim.state = b3.STATE_ALIVE
        # need to pass some amount of damage for the teamkill plugin - 15 seems okay
        return self.getEvent(event, event_data, attacker, victim)
 
    # kill
        #self.verbose('OnKill Victim: %s, Attacker: %s, Weapon: %s, Hitloc: %s, dType: %s' % (victim.name, attacker.name, weapon, victim.hitloc, dType))
        # need to pass some amount of damage for the teamkill plugin - 100 is a kill
        return self.getEvent(event, (lastDamageData[0], weapon, lastDamageData[2], dType), attacker, victim)
 
    # disconnect

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt41.py   big-brother-bot(Download)
        #victim.state = b3.STATE_ALIVE
        # need to pass some amount of damage for the teamkill plugin - 15 seems okay
        return self.getEvent(event, event_data, attacker, victim)
 
    # kill
        #self.verbose('OnKill Victim: %s, Attacker: %s, Weapon: %s, Hitloc: %s, dType: %s' % (victim.name, attacker.name, weapon, victim.hitloc, dType))
        # need to pass some amount of damage for the teamkill plugin - 100 is a kill
        return self.getEvent(event, (lastDamageData[0], weapon, lastDamageData[2], dType), attacker, victim)
 
    # disconnect