• 0

    posted a message on Check if another player is duelling
    • Ketho Combat shows any player's death, by registering COMBAT_LOG_EVENT_UNFILTERED, if overkill > 0.
    • If (select(2, IsInInstance())) == "none", like in Dalaran, where players are dueling in the sewers, when some1 loses a duel, overkill will still fire, even though he retains 1 hp to stay alive.
    So I'd want the addon to determine if some1 is dueling, so I can only show the actual deaths, and not "duel deaths".

    How would an AddOn determine if another player is dueling?
    ··· What I tried:
    1. Location API: GetRealZoneText() to see if the Player is in Dalaran/Orgrimmar/Durotar, but this wouldnt be feasible, if the opposing faction would raid your city.
    2. Events: "DUEL_REQUESTED" and "DUEL_FINISHED", these events only would fire for the Player himself and don't even have any args ...
    3. UnitFlags: To determine if it's a friendly dueling a friendly player or a hostile dueling a hostile player
    local sourceIsFriendly = bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_FRIENDLY);
    local sourceIsEnemy = bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE);
    local destIsFriendly = bit.band(destFlags, COMBATLOG_OBJECT_REACTION_FRIENDLY);
    local destIsEnenemy = bit.band(destFlags, COMBATLOG_OBJECT_REACTION_HOSTILE);
    
    if (event == "SPELL_DAMAGE" or event == "SPELL_PERIODIC_DAMAGE" or event == "RANGE_DAMAGE") and SuffixParam2 > 0 and destGUID_unitType == 0 then -- check if unit is a player
       if sourceIsFriendly == COMBATLOG_OBJECT_REACTION_FRIENDLY and destIsFriendly == COMBATLOG_OBJECT_REACTION_FRIENDLY then KC_isDueling= true;
       elseif sourceIsEnemy == COMBATLOG_OBJECT_REACTION_HOSTILE and destIsEnemy == COMBATLOG_OBJECT_REACTION_HOSTILE then KC_isDueling = true;
       else KC_isDueling = false;
       end
       if KC_isDueling == true then ChatFrame1:AddMessage(sourceName.." lost in a duel from "..destName..spellLink.." "..amount.." "..spellSchool);
       else ChatFrame1:AddMessage(sourceName.." died "..destName..spellLink.." "..amount.." "..spellSchool);
       end
    end
    But that doesn't work for cross-faction duels or friendly fire ... >:(
    Posted in: AddOn HELP!
  • 0

    posted a message on [AceConfig-3.0 Options] Separation Line in a Tree Group
    enjoy your weekend
    Posted in: AddOn HELP!
  • 0

    posted a message on [AceConfig-3.0 Options] Separation Line in a Tree Group
    .. oh man, I actually read that thread but didn't get what he meant with "setting the width of the tree part of the group".
    My definition sucked. moreover posted in the wrong subforum (><)

    I actually also didn't understand the solution Farmbuyer gave:
    local tg = AceGUI:Create("TreeGroup")
    local tgstat = { treewidth = 42 }
    tg:SetStatusTable(tgstat)

    You'll have to do something similar to the AceConfig status table
    Yay! i'll wait for some1 that has the code lying around somewhere or when nevcairiel is back. i'm lazy = )

    Edit: Should I just use the SetStatusTable( { treewidth = 42 } ) from Farmbuyer. god why am i answering myself
    Edit2: I don't know how to use an AceGUI-3.0 TreeGroup widget in AceConfig-3.0 Options Tables. i'll just wait until eh .. ur back (=.=)
    Posted in: AddOn HELP!
  • 0

    posted a message on [AceConfig-3.0 Options] Separation Line in a Tree Group
    I didn't understand the framestack but might as well post it
    Posted in: AddOn HELP!
  • 0

    posted a message on [AceConfig-3.0 Options] Separation Line in a Tree Group
    I google'd and tried the forum search before this. I'm not really sure to call this a "separation line" or something else.

    Is it possible to change the separation line in an Ace3 Tree Group to a set position?
    So that it won't revert back to the middle ..

    If so, would this be done by using an Options Tables parameter or does it work differently?


    p.s. its not that im not using a lot of addons but most are disabled for fast /reload = )
    Posted in: AddOn HELP!
  • 0

    posted a message on API GetGossipText() 's Location
    Quote from Arrowmaster
    I'm almost positive they aren't in the MPQs at all. All item tooltips, book text, quest text, creature names, etc... are sent from the server when they are encountered and saved to the cache files.

    Thanks for telling that the gossip text is server-side and that it's cached in ...\npccache.wdb, Arrowmaster ..
    I don't got anymore questions..
    Posted in: AddOn HELP!
  • 0

    posted a message on API GetGossipText() 's Location
    Gossip text aren't part of the interface files ..
    Actually about the FontString UI object that contains the gossip text, is this it? GossipFrame.lua Line13
    local text, gossipType = GetGossipOptions();


    or this? GossipFrame.lua Line35
    GossipGreetingText:SetText(GetGossipText());
    Posted in: AddOn HELP!
  • 0

    posted a message on API GetGossipText() 's Location
    The actual content of the text. I'm just curious and the text could be useful. I'm pretty sure Wowhead doesn't show gossip text ..
    Posted in: AddOn HELP!
  • 0

    posted a message on API GetGossipText() 's Location
    I'm searching for the location of the WoW GossipText, inside the WoW MPQs. I'm mainly just curious, but the data could prove very useful.
    With GossipText, I mean the text that appears when you talk to a NPC.

    I use MPQ Editor to unpack WoW, and MyWarCraftStudio to read .DBC files.
    I've looked into ...\Data\enGB\patch-enGB.MPQ\Interface\FrameXML\GossipFrame.lua, but it doesn't give me any clue as to where the GossipText is.
    I very weakly suspect that they are in a .DBC file, in ...\Data\enGB\patch-enGB.MPQ\DBFilesClient\xxx.dbc
    Weakly, because most of the data in a .DBC are integers, with very few encoded strings, and looked everywhere else in the MPQs

    I'd rather not prefer alternatives, like an addon that calls GetGossipText() and then saves it in SavedVariables, or just plainly typing the text down...
    This addon, Gossipmonger shows the GossipText in an extra frame, but it doesn't have a copy feature... :| (Great AddOn btw)

    Useful Links: 01) wowprogramming.com GetGossipText() ... 02) wowwiki.com GetGossipText() ... 03) sourcepeek.com .DBC
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.