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,