Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AgeWnd extends UICommonAPI;
- const 5575 = 148;
- const 5574 = 5000;
- const 5549 = 149;
- const 5227 = 600000;
- var WindowHandle 5712;
- var TextureHandle 5616;
- var WindowHandle HelpHtmlWnd;
- var WindowHandle 5581;
- var TextureHandle 5578;
- var string 5192;
- var string 5187;
- var string 5093;
- var string 5060;
- var string 5016;
- var string 4823;
- var bool 4822;
- function OnRegisterEvent()
- {
- RegisterEvent(170);
- return;
- }
- function OnLoad()
- {
- 25();
- 43();
- return;
- }
- function 25()
- {
- if(1 == 0)
- {
- OnRegisterEvent();
- }
- if(1 == 0)
- {
- 5712 = GetHandle("AgeWnd");
- 5616 = TextureHandle(GetHandle("AgeWnd.AgeTex"));
- HelpHtmlWnd = GetHandle("HelpHtmlWnd");
- 5581 = GetHandle("HelpHtmlWnd.AgeHelpWnd");
- 5578 = TextureHandle(GetHandle("HelpHtmlWnd.AgeHelpWnd.AgeTex"));
- }
- else
- {
- 5712 = GetWindowHandle("AgeWnd");
- 5616 = GetTextureHandle("AgeWnd.AgeTex");
- HelpHtmlWnd = GetWindowHandle("HelpHtmlWnd");
- 5581 = GetWindowHandle("HelpHtmlWnd.AgeHelpWnd");
- 5578 = GetTextureHandle("HelpHtmlWnd.AgeHelpWnd.AgeTex");
- }
- 4822 = false;
- return;
- }
- function 43()
- {
- 5192 = "L2Font.Skins.kr_rated_15";
- 5187 = "L2Font.Skins.kr_rated_18";
- 5093 = "";
- 5060 = "L2Font.Skins.Help_Age_15";
- 5016 = "L2Font.Skins.Help_Age_18";
- 4823 = "";
- return;
- }
- function OnEnterState(name 4820)
- {
- if(4820 == 'LoadingState')
- {
- if(!4822)
- {
- 522();
- }
- }
- return;
- }
- function 522()
- {
- 5712.ShowWindow();
- 5616.ShowWindow();
- 5712.SetTimer(148, 5000);
- 4822 = true;
- 5712.SetTimer(149, 600000);
- return;
- }
- function OnTimer(int 5894)
- {
- if(5894 == 148)
- {
- 5712.HideWindow();
- 5712.KillTimer(148);
- }
- else
- {
- if(5894 == 149)
- {
- 4822 = false;
- 5712.KillTimer(149);
- }
- }
- return;
- }
- function OnEvent(int 6875, string 6883)
- {
- local int 4527, 4413, 4385;
- local NWindow.UIEventManager.EServerAgeLimit 4376;
- if(6875 == 170)
- {
- if(ParseInt(6883, "ServerAgeLimit", 4527))
- {
- 4376 = byte(4527);
- switch(4376)
- {
- case 0:
- 5616.SetTexture(5192);
- 5578.SetTexture(5060);
- HelpHtmlWnd.GetWindowSize(4413, 4385);
- HelpHtmlWnd.SetWindowSize(4413, 501);
- break;
- case 1:
- 5616.SetTexture(5187);
- HelpHtmlWnd.GetWindowSize(4413, 4385);
- HelpHtmlWnd.SetWindowSize(4413, 501);
- 5578.SetTexture(5016);
- break;
- case 2:
- default:
- 5616.SetTexture(5093);
- 5616.HideWindow();
- 5581.HideWindow();
- break;
- break;
- }
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement