需要任何帮助:Buff 铃声等

问题描述 投票:0回答:2

我的英语水平很差。所以我会尝试通过举例来解释。

我有

5 items
覆盖在玩家增益上 让我们有条件地调用它们:
1, 2, 3, 4, 5
这些物品有咒语:
11, 12, 13, 14, 15,
绑定法术和物品:
1 - 11
,
2 - 12
,
3 - 13
,
4 - 14
,
5 - 15
,

问题。如何让玩家激活,例如项目

2
。但激活后他无法使用物品
1

示例:

43463 Scroll of Agility VII
43464 Scroll of Agility VIII

示例中没有这个。但还有一件事。 您需要确保在使用主题

3
后无法再使用主题
2
。只要咒语(
12
)未结束,项目
3
(
4.5
)就无法使用。

azerothcore
2个回答
2
投票

如果您需要在 LUA 中进行此操作

local ItemEntry ={
  --ItemEntry, Spell, PreviousSpell
  {1, 11, 0},
  {2, 12, 11},
  {3, 13, 12},
  {4, 14, 13},
  {5, 15, 14};
}

local function OnUseItem(event, player, itemEntry)
  for i=1, #ItemEntry do
    if itemEntry == ItemEntry[i][1]then
      local pAura = player:HasAura(ItemEntry[i][3])
      if pAura == true then
        local pAura = player:GetAura(ItemEntry[i][3])
        if pAura <= ItemEntry[i][3]then
          player:RemoveAura(ItemEntry[i][3])
        end
      end
    end
  end
end
RegisterPlayerEvent(31, OnUseItem)

2
投票

它不是关于 lua 或物品,而是关于法术:http://www.azerothcore.org/wiki/spell_group_stack_rules 并且还需要通过模块或基本脚本系统制作项目脚本,而不是lua,我没有看到在eluna模块中允许这样做的方法

© www.soinside.com 2019 - 2024. All rights reserved.