View Single Post
06-25-10, 11:57 PM   #231
Miralen
A Rage Talon Dragon Guard
 
Miralen's Avatar
Join Date: Dec 2006
Posts: 341
Ok so here is my stab in the dark at making recount disappear while in a capital city and for the life of me I can't figure it out at all, it doesn't seem to be working. Basically I ripped off a sample script from the kgpanel sample script help page area and have no idea why this isn't working so hopefully someone can give me some insight on what I am doing wrong, I am thinking I have the actual code in the wrong spot of my layout section but I don't know. This is a snippet from my layout file, I can post my file up as a download if needed too. Thanks in advance for any help you can give.

Code:
        -- Recount Panel
        {	name = "RecountPanel",
			anchor_to = "BOTTOMRIGHT",
			width = 400,
			height = 143,
			y_off = 5,
			x_off = -5,
			bg_color = {.01,.01,.01},
			bg_alpha = 1,
			strata = "BACKGROUND"
        },
        OnLoad = function(self)
            self:RegsiterEvent('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()
        elseif arg1 == "YOU_LEFT" and arg7 == 2 then
            Recount_MainWindow:Show()
            end
        end
    end,
__________________
Never hold discussions with the monkey when the organ grinder is in the room.

- Winston Churchill
  Reply With Quote