• 0

    posted a message on WelcomeHome - Your first Ace3 Addon
    Arghhhh! My test case was incorrect; ZONE_CHANGED is an outdoors only event. Going from Canals to Bank will not trigger this code. The correct event is ZONE_CHANGED_INDOORS for this test case.
    Posted in: Ace3
  • 0

    posted a message on WelcomeHome - Your first Ace3 Addon
    Noooo... I just tried between the UC auction house ( minimap says "Canals" ) and the UC bank ( minimap says "Trade Quarter" ) and no trigger. I'd just ignore this problem because it's just a sample program but I'm concerned that other things will fail when I get to the real programming.

    In order for the "PLAYER_TARGET_CHANGED" to work both the toc and xml files must be correct? Have I left out a semicolon or misspelled something? Color me confused...
    Posted in: Ace3
  • 0

    posted a message on WelcomeHome - Your first Ace3 Addon
    All right, I stripped this down to almost nothing - why doesn't ZONE_CHANGED do anything? There must be some simple errror in this program. Target changed does work:

    --------------------------------------------------------------------------
    WelcomeHome = LibStub("AceAddon-3.0"):NewAddon("WelcomeHome", "AceConsole-3.0", "AceEvent-3.0")

    function WelcomeHome:OnInitialize()
    WelcomeHome:Print("Welcome Home Loaded")
    end

    function WelcomeHome:OnEnable()
    self:Print("OnEnable Called with Zone")
    self:RegisterEvent("PLAYER_TARGET_CHANGED")
    self:RegisterEvent("ZONE_CHANGED")
    end

    function WelcomeHome:PLAYER_TARGET_CHANGED()
    self:Print("Target Changed")
    end

    function WelcomeHome:ZONE_CHANGED()
    self:Print("Zone Changed")
    end

    ------------------------------------------------------------------------

    Tested by going in and out of lorderon, also via the portal to silvermoon.
    Posted in: Ace3
  • To post a comment, please or register a new account.