ItemRack Classic

ItemRack Classic

7M Downloads

"Dual Spec" event error WOTLK ver

Xdembe opened this issue ยท 1 comments

commented

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
commented

maybe this will fix it

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