Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Dual Spec" event error WOTLK ver #231

Open
Xdembe opened this issue Feb 2, 2023 · 1 comment
Open

"Dual Spec" event error WOTLK ver #231

Xdembe opened this issue Feb 2, 2023 · 1 comment

Comments

@Xdembe
Copy link

Xdembe commented Feb 2, 2023

Lua Error
1x [string "local set1 = "Tank"..."]:9: attempt to call global 'GetActiveSpecGroup' (a nil value)
[string "local set1 = "Tank"
local set2 = "Fury"
if ItemRack.HasTitansGrip and GetInventoryItemLink("player",17) then
local b,s = ItemRack.FindSpace()
if b then
ItemRack.MoveItem(17,nil,b,s)
end
end
local at = GetActiveSpecGroup()
if at == 1 then
ItemRack.EquipSet(set1)
elseif at == 2 then
ItemRack.EquipSet(set2)
end

--[[This event will equip "Name of Set1" when you switch to primary talents and "Name of Set2" when switching to secondary talents. Edit the names for your own use.]]"]:9: in main chunk
[string "=[C]"]: in function RunScript' [string "@ItemRackOptions/ItemRackOptions.lua"]:336: in function ButtonOnClick'
[string "*ItemRackOptions.xml:842_OnClick"]:1: in function <[string "*ItemRackOptions.xml:842_OnClick"]:1>

Locals:
set1 = "Tank"
set2 = "Fury"
(*temporary) = nil
(*temporary) = "attempt to call global 'GetActiveSpecGroup' (a nil value)"
Comment
GetActiveTalentGroup may fix it.
Auto-switch does not working (on pause) when player deactivate titan's grip talent( both 2hand weapons became red because switching back to previous talent spec ) until manualy moving any item(wearing or moving in bags).
How to reproduce

  1. Switch talent spec (with Titan's Grip)
  2. ItemRack will switch to "Fury" set (with both 2hands weapon)
  3. Switch talent spec back (without Titan's Grip)
  4. ItemRack will stuck(or pause) on switching set
  5. Pick any item in your inventory
  6. Put it back
  7. ItemRack is switching like it should
@Xdembe
Copy link
Author

Xdembe commented Feb 2, 2023

maybe this will fix it

if at == 1 then
     C_Timer.After(1,function()EquipSet(set1)end) 
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant