View Single Post
07-04-10, 05:13 PM   #247
xandora
A Chromatic Dragonspawn
 
xandora's Avatar
Join Date: Feb 2009
Posts: 188
Originally Posted by Miralen View Post
OMG if that actually does it I am an idiot lol, going to try this out right now, really hope this works in a way and in another way kind of not cause than I will feel really idiotic.

Edit: This does work in the sense that it hides recount in a capital city but now when I leave it won't reappear also I have edited it to show a chatframe in a capital town and make that disappear when leaving, the appearing of it works the disappearing of it doesn't...Very strange.

Code:
        OnLoad=function(self)
            self:RegisterEvent'CHAT_MSG_CHANNEL_NOTICE'
        end,
        OnEvent=function(self)
            if event == "CHAT_MSG_CHANNEL_NOTICE" then
            if arg1 == "YOU_JOINED" and arg7 == 2 then
                Recount_MainWindow:Hide()
                ChatFrame4:Show()
            elseif arg1 == "YOU_LEFT" and arg7 == 2 then
                ChatFrame4:Hide()
                Recount_MainWindow:Show()
                end
            end
        end,
Does this ever check the 'elseif'? If you leave a City, then you're joining another chat which satisfies the 'if' part of the conditional.
__________________
  Reply With Quote