LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 13|回复: 6

[综合] 熊猫人之谜中暗牧的暗影宝珠层数要怎么查询?

[复制链接]
发表于 昨天 01:15 PM | 显示全部楼层 |阅读模式
本帖最后由 xiaoyao1 于 2025-9-13 01:16 PM 编辑

BeeStringFind("暗影宝珠",BeeUnitBuffList("player"))用这个返回的是nil。BeeUnitBuffList("player")将player的buff返回一个table,将table中各项打印出来,确实是没有暗影宝珠,可确实存在。
应该用那个函数来查询呢,目标是要查询出暗影宝珠的层数,以便释放其他技能。
在网上搜了下,最多能找到3.35的api,mop的不知道要在哪里能找到。还有就是有没有适用于3.35以后版本的魔蜂?请大佬不吝赐教!

回复

使用道具 举报

 楼主| 发表于 昨天 02:11 PM | 显示全部楼层
想到wowhead,想去看看,结果发现东大被霸凌了,牛x,一个游戏网站是几个意思
We've discontinued servicing users from your location and are thereby preventing access to any of the websites owned and operated by ZAM Network, LLC DBA Fanbyte (the owner of Wowhead.com):
回复 支持 反对

使用道具 举报

发表于 昨天 02:31 PM | 显示全部楼层
没玩过 熊猫人,有可能是API有修改,导致一些问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 昨天 02:42 PM | 显示全部楼层
仔细看了下,暗影宝珠变成了被动,而不属于buff了,这个就是原因,但这被动怎么弄呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 昨天 02:56 PM | 显示全部楼层
lbabey 发表于 2025-9-13 02:31 PM
没玩过 熊猫人,有可能是API有修改,导致一些问题


仔细看了下,暗影宝珠变成了被动,而不属于buff了,这个就是原因,但这被动怎么弄呢
回复 支持 反对

使用道具 举报

发表于 昨天 04:01 PM | 显示全部楼层
https://wowprogramming.com/docs/api/UnitPower.html

power = UnitPower("unitID" [, powerType])

Arguments:

    unitID - A unit to query (string, unitID)
    powerType - A specific power type to query (number, powerType)

Returns:

    power - The unit's current level of mana, rage, energy, runic power, or other power type (number)
Type: powerType

Index of different power types. The SPELLPOWER* global constants are deprecated and will be removed with the expansion after Legion. Use the contents of Enum.PowerType instead.

    0 - Mana (SPELL_POWER_MANA or Enum.PowerType.Mana)
    1 - Rage (SPELL_POWER_RAGE or Enum.PowerType.Rage)
    2 - Focus (SPELL_POWER_FOCUS or Enum.PowerType.Focus)
    3 - Energy (SPELL_POWER_ENERGY or Enum.PowerType.Energy)
    4 - Combo Points (SPELL_POWER_COMBO_POINTS or Enum.PowerType.ComboPoints)
    5 - Runes (SPELL_POWER_RUNES or Enum.PowerType.Runes)
    6 - Runic Power (SPELL_POWER_RUNIC_POWER or Enum.PowerType.RunicPower)
    7 - Soul Shards (SPELL_POWER_SOUL_SHARDS or Enum.PowerType.SoulShards)
    8 - Lunar Power (SPELL_POWER_LUNAR_POWER or Enum.PowerType.LunarPower)
    9 - Holy Power (SPELL_POWER_HOLY_POWER or Enum.PowerType.HolyPower)
    10 - Alternate Power (SPELL_POWER_ALTERNATE_POWER or Enum.PowerType.Alternate)
    11 - Maelstrom (SPELL_POWER_MAELSTROM or Enum.PowerType.Maelstrom)
    12 - Chi (SPELL_POWER_CHI or Enum.PowerType.Chi)
    13 - Insanity (SPELL_POWER_INSANITY or Enum.PowerType.Insanity)
    14 - unused (SPELL_POWER_OBSOLETE or Enum.PowerType.Obsolete)
    15 - unused (SPELL_POWER_OBSOLETE2 or Enum.PowerType.Obsolete2)
    16 - Arcane Charges (SPELL_POWER_ARCANE_CHARGES or Enum.PowerType.ArcaneCharges)
    17 - Fury (SPELL_POWER_FURY or Enum.PowerType.Fury)
    18 - Pain (SPELL_POWER_PAIN or Enum.PowerType.Pain)

回复 支持 反对

使用道具 举报

 楼主| 发表于 昨天 04:20 PM | 显示全部楼层
行了行了 发表于 2025-9-13 04:01 PM
https://wowprogramming.com/docs/api/UnitPower.html

power = UnitPower("unitID" [, powerType])

大佬V5!!!
经过测试,UnitPower("player",13),就能反应出暗影宝珠的层数
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 05:54 AM , Processed in 0.039898 second(s), 24 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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