• 0

    posted a message on AutoBar by Toadkiller (official thread)
    Also, the following items need to be added to create and apply to weapon

    Fel Firestone
    Demonic Spellstone
    Demonic Healthstone

    More to come as I level.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Dominos:ToggleFrame(numberofframe)


    Example- Would toggle the main menu bar.

    Dominos:ToggleFrame(10)
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Well, I added the dependency and the same thing still happens. So I guess there is some non printable value in a handler in Macaroon's code. Nothing I can do about that I suppose. Those are the only 2 scripts that don't work right after a reload though. The other simple ones do without problem.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    I'm having the above problem that Hawkblade stated, but I didn't see any solution to it. Every time I reloadui, or log in I have to open up KgPanels config and click accept for my scripts to work.

    OnLoad:
    MacaroonBars14.handler:Hide()
    vis = false
    
    OnClick:
    if vis == false then
      MacaroonBars14.handler:Show()
      vis = true
    elseif vis == true then
      MacaroonBars14.handler:Hide()
      vis = false
    end


    Second panel...

    OnLoad:
    MacaroonBagbars1.handler:Hide()
    MacaroonMenubars1.handler:Hide()
    visi = false
    
    OnClick:
    if visi == false then
      MacaroonBagbars1.handler:Show()
      MacaroonMenubars1.handler:Show()
      visi = true
    elseif visi == true then
      MacaroonBagbars1.handler:Hide()
      MacaroonMenubars1.handler:Hide()
      visi = false
    end
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    So, was in BT tonight, we downed mother and was on the way to council, and got a huge lag spike on a trash pull and wiped, when I entered the instance I started getting an error like every 5 seconds.

    [string "AggroCenterLeft_OnEvent"]:2: Usage: UnitIsUnit("unit", "otherUnit")

    and here's the code its refering to in my KgPanels script.

    if event == "UNIT_THREAT_SITUATION_UPDATE" then
      if UnitIsUnit(arg1, "player") then
        self:Show()
      else
        self:Hide()
      end
    end


    Any ideas whats causing this error to throw? I'm no coder and not sure exactly whats going on here.
    Posted in: General AddOns
  • 0

    posted a message on DaPortrait - 3D Model Unit Portraits
    I seriously doubt this addon will be updated, because it was plagiarized from MazzleUI.

    Check out ZMOB database on wowinterface.com for a replacement.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    I know theres a few people out there using this event for the same thing as me, so I'll post the solution to the problem.

    if event == "UNIT_THREAT_SITUATION_UPDATE" then
      if UnitIsUnit(arg1, "player") then
        self:Show()
      else
        self:Hide()
      end
    end
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Ok, I found the problem. Because I was in a raid group, it was firing the event twice. First fire was returning "player" and second fire was returning "raid3".
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from Melikae
    Did you try to nest the conditions?

    if event == "UNIT_THREAT_SITUATION_UPDATE" then
     if  arg1 == "player" then
      self:Show()
     else
      self:Hide()
     end
    end
    
    if event == "PLAYER_REGEN_ENABLED" then
     self:Hide()
    end


    Yeah I just tried that and its not doing anything either. This is weird. Don't understand why something would work fine, then just stop working without me touching any of the script.
    Posted in: General AddOns
  • 0

    posted a message on AutoBar by Toadkiller (official thread)
    Not sure if someone has mentioned this, don't really feel like sifting through 212 pages of posts this early in the morning. But, Firestones and Spellstones need to be added to autobar's itemlist. You can add to create them on the bar, but can't add to apply them to your weapon.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    So spending a few more hours playing with it I decided to try this and it worked correctly.

    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 == "player"  then
      self:Show()
    end
    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 == "pet" then
      self:Hide()
    end
    if event == "PLAYER_REGEN_ENABLED" then
      self:Hide()
    end


    So any ideas why ~= would stop working?
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Any ideas why the following code would quit working? It was working perfect yesterday. But I got on and went to BT earlier and it wouldn't fire for anything.

    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 == "player"  then
      self:Show()
    elseif event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 ~= "player" then
      self:Hide()
    end
    if event == "PLAYER_REGEN_ENABLED" then
      self:Hide()
    end


    I played around with it a bit and the following still works fine.

    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 == "player"  then
      self:Show()
    end
    if event == "PLAYER_REGEN_ENABLED" then
      self:Hide()
    end


    even tried this and it was a no good.

    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 == "player"  then
      self:Show()
    end
    if event == "UNIT_THREAT_SITUATION_UPDATE" and arg1 ~= "player" then
      self:Hide()
    end
    if event == "PLAYER_REGEN_ENABLED" then
      self:Hide()
    end
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Wow, I sure know how to kill a thread.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    So I don't know the first thing about LUA. Is it possible to create a script that sends a slash command to wow? For instance, I have a small panel that I want to be able to click on, and when I click on it I want it to send the following commands.

    /mac hidden ContextMenu

    Also, I'm sure it can configure between left and right clicks. So what would be the syntax for the clicks?
    I want right click to do this.

    /mac hidden BagBar
    /mac hidden MenuBar
    Posted in: General AddOns
  • To post a comment, please or register a new account.