• 0

    posted a message on Frames Question
    I'm trying to make some kind of pop up frame how do you create it, its to be something like a confirmation pop up.

    Jon.
    Posted in: Lua Code Discussion
  • 0

    posted a message on LibTooltip
    Quote from Tekkub
    *cough* No, use tablet.


    I have used tablet, but is there still support for it, I would hate to see if it goes under.
    Posted in: Libraries
  • 0

    posted a message on LibTooltip
    I see that is Lib is at a nice start. I would like to ask if this Lib is going to have fetures like Clickable Buttons/Lines, Highlighting, and other cool stuff.
    Posted in: Libraries
  • 0

    posted a message on Blizzard MT/MA List
    Question, how do you assign a MT/MA using lua, I know it a protected.
    I'm hooking UnitPopupMenus, UnitPopup_OnClick, UnitPopup_HideButtons. just about the same way AutoLootFu. I want to click on the unit dropdown list and select it.

    Any Help Please.
    Posted in: Addon Ideas
  • 0

    posted a message on Database Tables
    Code Update, I found that

    guildName, guildRankName, guildRankIndex = GetGuildInfo("player");
    if not LiquidMoney.db.realm.guildBank[guildName] then
    self:Print(guildName);
    --LiquidMoney.db.realm.guildBank[guildName] = {};


    guildName is nil when my toon loads into the gameworld, this function gets called from the OnEnable function.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Database Tables
    I have been developing this addon to read guild banks, but when i try to setup the tables for the database i keep get an error,

    function LiquidMoney:CheckGuildBank()
    	if IsInGuild() then
    		guildName, guildRankName, guildRankIndex = GetGuildInfo("player");
    		if not LiquidMoney.db.realm.guildBank[guildName] then
    			LiquidMoney.db.realm.guildBank[guildName] = {};  --This Line Troughs The Exception
    			--[[LiquidMoney.db.realm.guildBank[guildName].bagValueAuction =
    			{
    				[1] = 0,
    				[2] = 0, 
    				[3] = 0, 
    				[4] = 0,
    				[5] = 0,
    				[6] = 0,
    			};
    			LiquidMoney.db.realm.guildBank[guildName].bagValueVender =
    			{
    				[1] = 0,
    				[2] = 0, 
    				[3] = 0, 
    				[4] = 0,
    				[5] = 0,
    				[6] = 0,
    			}; --]]
    		end
    	end
    end


    The Error is:
    Table Index is Nil.


    But before that is called I have a function that is called each time the addon is loaded to check the database.

    function LiquidMoney:CheckMasterDatabase()
    	if not LiquidMoney.db.realm then --Check To See If Relam Table Index Is Present
    		LiquidMoney.db.realm = {};
    	end
    	if not LiquidMoney.db.realm.guildBank then --Check To See If Guilds Master Index Is Present
    		LiquidMoney.db.realm.guildBank = {};
    	end
    	if not LiquidMoney.db.realm.toon then --Check To See If Toons Master Index Is Present
    		LiquidMoney.db.realm.toon = {};
    	end
    end
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lib Dewdrop-2.0
    I have some questions regarding the lib Dewdrop-2.0. I have seen some other peoples code to help setup this feature correctly. I'm having problems in game, as you can see I have a level 1 menu that likes to a level 2 menu, then I have a level 3 menu.
    When I click on the 3rd menu level it doesn't work correctly, it wont update the checked menu item, and it didn't save it to the database. So I'm thinking there is something wrong in the code that i have.

    function LiquidMoney:isVendorAddonSelected(name)
    	if (LiquidMoney.db.profile.selectedVendorAddon==name) then
    		return true;
    	else
    		return false;
    	end
     end
    
     local Dewdrop = AceLibrary("Dewdrop-2.0")
     function LiquidMoney:OnMenuRequest(level, value, inTooltip)
    	if level == 1 then
    		Dewdrop:AddLine('text', 'Search Types', 'hasArrow', true, 'value', 'search' );
    		Dewdrop:AddLine();
    		Dewdrop:AddLine('text', 'Options', 'hasArrow', true, 'value', 'options' );
    	elseif level == 2 then
    		if value == "options" then
    			Dewdrop:AddLine('text', 'Vendor Addons', 'hasArrow', true, 'value', 'vendoraddons' );
    		end
    	elseif level == 3 then
    		if value == "vendoraddons" then
    			for _,addon in pairs(LiquidMoney.vendoraddons) do
    				if IsAddOnLoaded(addon.name) then --Check To See If Addon InList Is Enabled
    					Dewdrop:AddLine('text', addon.name,'checked',LiquidMoney:isVendorAddonSelected(addon.name),'checkIcon','func',function() LiquidMoney.db.profile.selectedVendorAddon=addon.name end);
    				end
    			end
    		end
    	end
     end
    Posted in: Lua Code Discussion
  • 0

    posted a message on SpecialEvents-Aura-2.0 Problems
    ok i will try
    Posted in: Libraries
  • 0

    posted a message on SpecialEvents-Aura-2.0 Problems
    will i'm testing with bessing of wis. it dont stack. so i do know that its a problem with the lib.
    Posted in: Libraries
  • 0

    posted a message on SpecialEvents-Aura-2.0 Problems
    I'm try to call the event SpecialEvents_PlayerBuffLost and each time the event fires it fires twice. does this event fires twice all the time? I put the code that I had inside the event in another function but it still happens, so the problem is with the event.

    I'm Using Revision: $Rev: 44726

    function m_buffbarSounds:SpecialEvents_PlayerBuffLost(name, count, icon, rank)
    	--UIErrorsFrame:AddMessage(name, 1.0, 0.0, 0.0, 1.0, 1); ----This is how I checked Shows 2 events fired
    	m_buffbarSounds:AudioBuffEnding(name);
    end
    
    function m_buffbarSounds:AudioBuffEnding(buffname)
    	if (wasEnded==true) then  ---This bool just tells it that the users had removed buff by right click
    		i=0;
    		repeat
    			i=i+1
    			if(buffname==Buffs[i]) then
    				PlaySoundFile("Interface\\AddOns\\m_buffbar\\sounds\\"..m_buffbarSounds:BuffBrakeDown(Buffs[i]).."RM.wav");
     			end
    		until(i>=table.getn(Buffs))
    		wasEnded=false
    	else
    		i=0;
    		repeat
    			i=i+1
    			if(buffname==Buffs[i]) then
    				PlaySoundFile("Interface\\AddOns\\m_buffbar\\sounds\\"..m_buffbarSounds:BuffBrakeDown(Buffs[i]).."EX.wav");
    			end
    		until(i>=table.getn(Buffs))
    	end	
    end


    Any Idea's Thanks
    SurMadMax
    Posted in: Libraries
  • To post a comment, please or register a new account.