xiaoyao1 发表于 2025-9-13 13:15:14

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

本帖最后由 xiaoyao1 于 2025-9-13 01:16 PM 编辑

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

xiaoyao1 发表于 2025-9-13 14:11:58

想到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):

lbabey 发表于 2025-9-13 14:31:53

没玩过 熊猫人,有可能是API有修改,导致一些问题

xiaoyao1 发表于 2025-9-13 14:42:53

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

xiaoyao1 发表于 2025-9-13 14:56:05

lbabey 发表于 2025-9-13 02:31 PM
没玩过 熊猫人,有可能是API有修改,导致一些问题


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

行了行了 发表于 2025-9-13 16:01:54

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)

xiaoyao1 发表于 2025-9-13 16:20:40

行了行了 发表于 2025-9-13 04:01 PM
https://wowprogramming.com/docs/api/UnitPower.html

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


大佬V5!!!{:5_236:}
经过测试,UnitPower("player",13),就能反应出暗影宝珠的层数
页: [1]
查看完整版本: 熊猫人之谜中暗牧的暗影宝珠层数要怎么查询?