Event Logger bit Filter Help menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Event Logger bit Filter Help

    Quick question. I can't seem to get it to filter just the enemy players. I want all my tables to filter enemy players with bit.band...

    if not EventHandlerLog then

    EventHandlerLog = CreateFrame('Frame')
    EventHandlerLog:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")

    function OnSuccessfulCast(self, event, ...)

    local timestamp, type, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlags2, destGUID, destName, destFlags, destFlags2 = select(1, ...)
    --print("timestamp = "..timestamp, " type = "..type, " sourceGUID = "..sourceGUID, " sourceName = "..sourceName, " sourceFlags = "..sourceFlags, " sourceflags2 = "..sourceFlags2, " destGUID = "..destGUID, " destName = "..destName, " destFlags = "..destFlags, " destFlag2 = "..destFlags2)

    if (event=="COMBAT_LOG_EVENT_UNFILTERED") then

    --[[local COMBATLOG_OBJECT_TYPE_PLAYER = COMBATLOG_OBJECT_TYPE_PLAYER
    local COMBATLOG_OBJECT_REACTION_HOSTILE = COMBATLOG_OBJECT_REACTION_HOSTILE
    local COMBATLOG_OBJECT_REACTION_FRIENDLY = COMBATLOG_OBJECT_REACTION_FRIENDLY
    local COMBATLOG_OBJECT_REACTION_NEUTRAL = COMBATLOG_OBJECT_REACTION_NEUTRAL]]

    local isFriendly = (bit.band(destFlags,COMBATLOG_OBJECT_REACTION_FRIENDLY) == COMBATLOG_OBJECT_REACTION_FRIENDLY)
    local isPlayer = (bit.band(destFlags,COMBATLOG_OBJECT_TYPE_PLAYER) == COMBATLOG_OBJECT_CONTROL_PLAYER)
    local isHostile = (bit.band(destFlags,COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE)
    local isNeutral = (bit.band(destFlags,COMBATLOG_OBJECT_REACTION_NEUTRAL) == COMBATLOG_OBJECT_REACTION_NEUTRAL)
    if isFriendly and isPlayer then return end
    --if not isPlayer and not isNeutral then return end
    --if not isHostile and not isNeutral then return end
    etc etc. It doesn't show the full thing. I just want it to filter when "isFriendly" and "isPlayer" is true. I keep trying and can't seem to get it to work.

    The above function should return if the bit is friendly and a player.

    Event Logger bit Filter Help
  2. #2
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out, thanks

Similar Threads

  1. Need a bit of help...
    By Rhynix in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 12-12-2007, 08:54 PM
  2. I need a small bit of help
    By FNOG in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-04-2007, 12:35 PM
  3. Just a bit of help for you medium level characters
    By Orious in forum World of Warcraft Guides
    Replies: 5
    Last Post: 10-17-2007, 07:40 PM
  4. ok, just a bit of help.
    By Orious in forum World of Warcraft Guides
    Replies: 9
    Last Post: 08-08-2007, 12:12 AM
  5. Bit of help please?
    By Adam0500 in forum World of Warcraft General
    Replies: 0
    Last Post: 09-16-2006, 04:19 AM
All times are GMT -5. The time now is 03:57 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search