LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 1681|回复: 1

[GC] 信息判断怎么玩

[复制链接]
发表于 2016-9-13 14:49:03 来自手机 | 显示全部楼层 |阅读模式
判断瞬间受到的伤害,据大神说可以调用战斗记录,不知道一个怎么用
回复

使用道具 举报

发表于 2016-9-14 11:23:26 | 显示全部楼层
自己写一个frame,检测自己战斗记录中受到的伤害
   local function damagecheck(self, registeredevent, ...)
        local timestamp, event, hidecaster, sourceguid, sourcename, sourceflags, sourceraidflags, destguid, destname, destflags, destraidflags, spellid, spellname, spellschool, failedtype = ...
        if event == 我被打了的event标签 then
            ---做你的爱做的事情
        end
    end
    f1 = CreateFrame("Frame", "f1")
    f1:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    f1:SetScript("OnEvent", damagecheck)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-4-28 01:41 PM , Processed in 0.045490 second(s), 15 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表