Making 4.3.4 function work in 5.4.2 menu

User Tag List

Results 1 to 1 of 1
  1. #1
    pvpviddys's Avatar Member
    Reputation
    1
    Join Date
    Oct 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making 4.3.4 function work in 5.4.2

    Need some help switching my addon over to 5.4.2, the simple function below is working for 4.3.4.

    What it does is prints the Caster and the spell name of spells being cast around me, however i cant get it to work with 5.4.2, not sure if its a change in COMBAT_LOG_EVENT_UNFILTERED or not, any help is appreciated!

    local function OnEvent(self, event, ...)
    if ( event == "PLAYER_ENTERING_WORLD" ) then
    self:UnregisterEvent("PLAYER_ENTERING_WORLD");
    self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    elseif ( event == "COMBAT_LOG_EVENT_UNFILTERED" ) then
    local timestamp, eventType, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellID, spellName, _, extraskillID, extraskillname = ...;
    if (eventType == "SPELL_CAST_START") and sourceName~=UnitName("player") then
    print(sourceName,spellName)
    end
    end
    end
    local casts = CreateFrame("Frame")
    casts:RegisterEvent("PLAYER_ENTERING_WORLD")
    casts:SetScript("OnEvent", OnEvent)

    Making 4.3.4 function work in 5.4.2

Similar Threads

  1. Is their actually a complete step-by-step how to make a wow server that works?
    By dragon_hacker in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 08-12-2009, 12:35 PM
  2. Replies: 15
    Last Post: 07-10-2009, 01:06 PM
  3. How to make Server public (NONE HAMACHI) WORK
    By xX EPIC Xx in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 09-17-2008, 01:43 PM
  4. making a account page not working..
    By muphil in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 06-24-2008, 04:17 PM
All times are GMT -5. The time now is 07:34 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search