Exemple #1
0
def show_emote(_, emote):
    '''Smile!
/emote ID'''
    try:
        mapserv.cmsg_player_emote(int(emote))
    except ValueError:
        pass
Exemple #2
0
def show_emote(_, emote):
    '''Smile!
/emote ID'''
    try:
        mapserv.cmsg_player_emote(int(emote))
    except ValueError:
        pass
Exemple #3
0
def cmd_emote(nick, message, is_whisper, match):
    if not is_whisper:
        return

    try:
        emote = int(match.group(1))
    except ValueError:
        return

    mapserv.cmsg_player_emote(emote)
Exemple #4
0
def cmd_emote(nick, message, is_whisper, match):
    if not is_whisper:
        return

    try:
        emote = int(match.group(1))
    except ValueError:
        return

    mapserv.cmsg_player_emote(emote)
Exemple #5
0
def badge_logic(ts):
    if mapserv.server is None:
        return

    global badge_ts

    if ts > badge_ts + 30:
        badge_ts = ts
        emote = 0xC0
        if is_shop:
            emote += 1
        if is_afk:
            emote += 2
        if is_idle:
            emote += 4
        if is_shop or is_afk or is_idle:
            mapserv.cmsg_player_emote(emote)
Exemple #6
0
def show_emote(_, emote):
    try:
        mapserv.cmsg_player_emote(int(emote))
    except ValueError:
        pass