• 0

    posted a message on OneBag 2.0.6026 [Released 7/28/2006]
    Kaelton can you add a Title to the Bindings section for OneView, took me forever to find it in the Key Binding since its just listed as OneView at the bottom of a different addon list.
    Posted in: General AddOns
  • 0

    posted a message on OneBag 2.0.6026 [Released 7/28/2006]
    There was a new Revision of some of the Ace2 files last night, the error has now moved to the next section at line 815 same error message.
    Posted in: General AddOns
  • 0

    posted a message on OneBag 2.0.6026 [Released 7/28/2006]
    Got latest version of OneBag/OneBank/OneView from SVN, OneBag has revision 4870. whenever try to open Bank I get my Inv Bags and an AceDB-2.0 error as follows:

    Interface\AddOns\OneBag\libs\AceDB\AceDB-2.0.lua:787:attempt to index global 'DEFAULT_CHAT_MESSAGE' (a nil value).

    any chance you can get a quick fix in for this?
    Posted in: General AddOns
  • 0

    posted a message on New Guy
    Hail
    Posted in: General Chat
  • 0

    posted a message on Completely lost in why I can'r get this to work
    I was about to reply that I still can't get it working, getting nil value error FactionItems returning nil. While copying code I noticed that all my functions were missing the Fu part in their declaration... using FactionItems: instead of FactionItemsFu:, hopefully this will solve all my problems.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Completely lost in why I can'r get this to work
    Thanks for infi tekkub, I will give it a try this afternoon when I get home
    Posted in: Lua Code Discussion
  • 0

    posted a message on Completely lost in why I can'r get this to work
    I can't seem to get over my problems loading in my DB and cycling through it, here is the relevant sections of my code:

    local FACTIONITEMS_DEFAULT = {}

    FactionItemsFu = FuBarPlugin:GetInstance("1.2"):new({
    name = FactionItemsFuLocals.NAME,
    description = FactionItemsFuLocals.DESCRIPTION,
    version = "0.3.0",
    releaseDate = "05-29-2006",
    aceCompatible = 103,
    author = "LordRhys",
    email = "plugin@writer.com",
    website = "" target="" data-ensure-absolute>http://plugin--writer.wowinterface.com/",
    category = "others", -- Set this to the appropriate category.
    db = AceDatabase:new("FactionItemsDB"),
    defaults = FACTIONITEMS_DEFAULT,
    cmd = AceChatCmd:new(FactionItemsFuLocals.COMMANDS, FactionItemsFuLocals.CMD_OPTIONS),
    loc = FactionItemsFuLocals,
    hasIcon = false,
    showOnRight = false,
    updateTime = 1.0,
    })

    function FactionItems:VarsLoaded() <-- This is called by Event Variables_Loaded
    local testVars = self.db:Get()
    if (testVars == nil) then
    self:LoadVars()
    end
    end

    function FactionItemsFu:LoadVars()
    self.db:set({"Glowing Scorpid Blood"},"bank", 0)
    self.db:set({"Glowing Scorpid Blood"},"inv",0)
    self.db:set({"Glowing Scorpid Blood"},"mail",0)
    self.db:set({"Evil Bat Eye"},"bank",0)
    self.db:set({"Evil Bat Eye"},"inv",0)
    self.db:set({"Evil Bat Eye"},"mail",0)
    self.db:set({"Vibrant Plume"},"bank",0)
    self.db:set({"Vibrant Plume"},"inv",0)
    self.db:set({"Vibrant Plume"},"mail",0)
    self.db:set({"Soft Bushy Tail"},"bank",0)
    self.db:set({"Soft Bushy Tail"},"inv",0)
    self.db:set({"Soft Bushy Tail"},"mail",0)
    self.db:set({"Torn Bear Pelt"},"bank",0)
    self.db:set({"Torn Bear Pelt"},"inv",0)
    self.db:set({"Torn Bear Pelt"},"mail",0)
    ...etc...
    end

    function FactionItems:Inv_Change()
    for k,var in self.db:Get() do
    local ItemCount = GetBagItems(k)
    self.PutInvCount(k,ItemCount)
    end
    end

    I cannot tell if it is loading the data but I get errors in the function Inv_Change() giving me a nil in FactionItemsDB at the for loop. Can anyoone give me some advice?

    Thanks,
    LordRhys
    Posted in: Lua Code Discussion
  • 0

    posted a message on dedicated [FuBar] Plugins request topic
    Would like to see Titan [EmoteMenu], also can someone adjust BossPanel - MeteMap towork with FuBar since FUBAr is the new bosspanel?
    Posted in: Addon Ideas
  • 0

    posted a message on self:db:set("spell", 1, "Heal")
    What if I wanted to build something like:

    TestItems = {
    ["Mithril Ore"] = {
    ["inv"] = 0,
    ["bank"] = 0,
    ["mail"] = 0,
    },
    ["Silver Ore"] = {
    ["inv"] = 0,
    ["bank"] = 0,
    ["mail"] = 0,
    },
    etc...
    }

    would I use

    self.db:set("Mithril Ore","inv",0)
    self.db:set("Mithril Ore","bank",0)
    self.db:set("Mithril Ore","mail",0)
    self.db:set("Silver Ore","inv",0)
    self.db:set("Silver Ore","bank",0)
    self.db:set("Silver Ore","mail",0)
    etc...


    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.