eluna-scripts-ornfelt/lua/DinklePack_Lua/CustomContent/MiscTools/BeltLearn.lua
2024-09-23 07:59:23 +02:00

14 lines
385 B
Lua

local function BELTY_OnEquip(event, player, item, bag, slot)
local beltSlot = player:GetEquippedItemBySlot(5)
if (beltSlot and beltSlot:GetEntry() == item:GetEntry()) then
for i=500000, 502613 do
if player:HasAura(i) then
player:LearnSpell(i)
end
end
end
end
RegisterPlayerEvent(29, BELTY_OnEquip)