forked from JasonDrexlberg/Grepobot-source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source
1 lines (1 loc) · 27.5 KB
/
source
1
var _0x61e7=["Autobot","3.1","protocol","location","//bot.grepobot.com/","","player_id","player_name","world_id","locale_lang","premium_user","csrfToken","Initialize Autobot","authenticate","obServer","isActive","setToolbox","initAjax","initMapTownFeature","fixMessage","init","toolbox_element",".nui_bot_toolbox","login","callbackAuth","GRCRTNotification","click","getPremium","on","#notification_area>.notification.getPremiumNotification","subscribe","push","notification","isLogged","botWnd","undefined","close","botPremWnd","title"," v<span style="font-size: 10px;">","version","</span>","open","dialogWindow","setHeight","center","setPosition","getJQElement","SUPPORT","Support","addMenuItem","prepend","ASSISTANT","Console","CONSOLE","Assistant","AUTHORIZE","Account","<ul/>","menu_inner","append","<div/>","menu_wrapper","left: 78px; right: 14px","ATTACKMODULE","Attack","Autoattack","before",".menu_inner li:last-child","find","CONSTRUCTMODULE","Build","Autobuild","CULTUREMODULE","Culture","Autoculture","FARMMODULE","Farm","Autofarm","#Autobot-AUTHORIZE","html","<span/>","middle","right","left","<a id="help-button" onclick="return false;" class="confirm"></a>","active","removeClass","li a.submenu_link","addClass","rel","attr","getContent","setContent2",".terminal","scrollHeight",".terminal-output","scrollTop","<a/>","submenu_link","#","Autobot-","<li/>","contentConsole","contentAccount","contentSupport","contentSettings","player_rank","player_villages","premium_time","now","secondsToTime","<span id="get_premium" onclick="Autobot.getPremium();"></span>","No premium","trial_time","Trial is over","facebook_like","<a href="#" id="get_7days" onclick="Autobot.botFacebookWnd();">Get 3 free days!</a>","<tbody/>","<td/>","background-color: #DFCCA6;width: 30%;","<tr/>","game_table_even","game_table_odd","each","<table/>","game_table","0","100%","outerHTML","account_property_wrapper","margin-bottom:9px;","gameWrapper","grepobanner","<img src="https://bot.grepobot.com/images/facebook_page.png" title="Facebook Grepobot"/>","Facebook_grepobot","_blank","https://www.facebook.com/BotForGrepolis/","float: right; width: 215px;","serializeObject","#Support_tab","support_input_email","Please enter your email.","support_input_subject","Please enter a subject.","support_textarea","Please enter a message.","test","Your email is not valid!","error","supportEmail","extend","success","Thank you, your email has been send!","Send","margin-top: 0;","button","Message","textarea","Subject","margin-top: 0;width: 166px;","text","input","Email","margin-left: 12px;width: 166px;","email","support_type","Type: ","width: 167px;margin-left: 18px;","Bug report","Feature request","Financial","Other","selectBox","float: left;","Grepobot Support","<legend/>","<fieldset/>","Support_tab","float:left; width:472px;height: 270px;","disabled","hasClass",".allianceforum.main_menu_item","plain","#ally_members_body .ally_name a","href","length","substr","parse","log","members_show","apply","unbind","_initialize","premium","publish","menu","Autobot v"," - Premium","Buy","1 month for only .4,99","information","pothead","+120 Days ","reference","transform: rotate(17deg);","referenceAmount",". 49,99","price","10 Months","amount","+36 Days ",". 19,99","4 Months","+12 Days ",". 9,99","2 Month",". 4,99","1 Month","time_options","payment","#time_options li","index","#payment #information .text","2 month +12 days for only .9,99","4 months +36 days for only .19,99","10 months +120 days for only .49,99","domain","paypal/process.php?payment=","&player_id=","grepolis_payment","directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,height=650,width=800","closed","#payment #information","facebookWnd"," - Get 3 days free!","<span class="like-share-text">Like & share and get <b>3 days</b> free premium.</span><a href="#" class="fb-share"><span class="fb-text">Share</spanclass></a><div class="fb_like"><div class="fb-like" data-href="https://www.facebook.com/BotForGrepolis/" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div></div>","activate_background","facebook_wnd","-9px","35px","css",".gpwindow_content","closest",".ui-dialog #facebook_wnd","upgrade3Days","hermes","quest","window","You have received 3 days premium! Thank you for sharing.","fbAsyncInit","1505555803075328","v2.4","edge.create","Event","edge.remove","#facebook-jssdk","script","facebook-jssdk","getElementsByTagName","getElementById","createElement","id","src","//connect.facebook.net/en_US/sdk.js","insertBefore","parentNode","XFBML","share","error_code","ui","#facebook_wnd .fb-share","indexOf","url","/game/","readyState","status","?","split","/","&","calls","responseText","ajaxComplete","verifyEmail","#current_email_adress","stringify","arrowActivated","email_validation","random","floor"," days "," hours "," minutes ",":","pop","helpers helper_arrow group_quest d_w animate bounce","w","top: 0; left: 360px; visibility: visible; display: none;","normal","fadeOut","delay","138px","slow","animate","show","botFacebookWnd","notify","#notification_area>.notification","<span><b>","</b></span>","<span class='small notification_date'>","Version ","string",""","boolean","number","function","":","{",",","join","}","className","flag town","town_names","settings","active_town","active_player","alliance_name","active_alliance","<div class="player_name">","</div>","<div class="town_name">","name","<div class="alliance_name">","_active",".advisor_frame."," div","top","286px",".nui_main_menu",".nui_left_box","insertAfter","bottom","time_autobot","time_row","main_menu","COMMON","getl10n","mousePopup","initWnd","botsettings","autoattack","Autoattack_onoff","autobuild","Autobuild_onoff","autoculture","Autoculture_onoff","autofarm","Autofarm_onoff","bot_menu","nui_bot_toolbox","town_map_info","createTownDiv","pid","cookie","ig_conv_last_site",".grepolis.com","replace","//","match","checkAutorelogin","login_to_game_world","capitalize","prototype","toUpperCase","charAt","slice","fn","serializeArray","value","$","towns","isEmptyObject","initWindow","Evaluate.js","done","DataExchanger.js","getScript","ConsoleLog.js","FormBuilder.js","ModuleManager.js","Assistant.js","resolve","when","checkAutoRelogin","Redirect.js"];var Autobot={title:_0x61e7[0],version:_0x61e7[1],domain:window[_0x61e7[3]][_0x61e7[2]]+ _0x61e7[4],botWnd:_0x61e7[5],botPremWnd:_0x61e7[5],botEmailWnd:_0x61e7[5],facebookWnd:_0x61e7[5],isLogged:false,Account:{player_id:Game[_0x61e7[6]],player_name:Game[_0x61e7[7]],world_id:Game[_0x61e7[8]],locale_lang:Game[_0x61e7[9]],premium_grepolis:Game[_0x61e7[10]],csrfToken:Game[_0x61e7[11]]},trial_time:0,premium_time:12,facebook_like:0,toolbox_element:null,init:function(){ConsoleLog.Log(_0x61e7[12],0);Autobot[_0x61e7[13]]();Autobot[_0x61e7[14]]();Autobot[_0x61e7[15]]();Autobot[_0x61e7[16]]();Autobot[_0x61e7[17]]();Autobot[_0x61e7[18]]();Autobot[_0x61e7[19]]();Assistant[_0x61e7[20]]()},setToolbox:function(){Autobot[_0x61e7[21]]= $(_0x61e7[22])},authenticate:function(){DataExchanger.Auth(_0x61e7[23],Autobot.Account,ModuleManager[_0x61e7[24]])},obServer:function(){$.Observer(GameEvents[_0x61e7[32]][_0x61e7[31]])[_0x61e7[30]](_0x61e7[25],function(){$(_0x61e7[29])[_0x61e7[28]](_0x61e7[26],function(){Autobot[_0x61e7[27]]()})})},initWnd:function(){if(Autobot[_0x61e7[33]]){if( typeof Autobot[_0x61e7[34]]!= _0x61e7[35]){try{Autobot[_0x61e7[34]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[34]]= undefined};if( typeof Autobot[_0x61e7[37]]!= _0x61e7[35]){try{Autobot[_0x61e7[37]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[37]]= undefined};Autobot[_0x61e7[34]]= Layout[_0x61e7[43]][_0x61e7[42]](_0x61e7[5],Autobot[_0x61e7[38]]+ _0x61e7[39]+ Autobot[_0x61e7[40]]+ _0x61e7[41],500,350,_0x61e7[5],false);Autobot[_0x61e7[34]][_0x61e7[44]]([350]);Autobot[_0x61e7[34]][_0x61e7[46]]([_0x61e7[45],_0x61e7[45]]);var _0xa676x2=Autobot[_0x61e7[34]][_0x61e7[47]]();_0xa676x2[_0x61e7[60]]($(_0x61e7[61],{"class":_0x61e7[62],"style":_0x61e7[63]})[_0x61e7[60]]($(_0x61e7[58],{"class":_0x61e7[59]})[_0x61e7[51]](Autobot[_0x61e7[50]](_0x61e7[56],_0x61e7[57],_0x61e7[57]))[_0x61e7[51]](Autobot[_0x61e7[50]](_0x61e7[54],_0x61e7[55],_0x61e7[55]))[_0x61e7[51]](Autobot[_0x61e7[50]](_0x61e7[52],_0x61e7[53],_0x61e7[53]))[_0x61e7[51]](Autobot[_0x61e7[50]](_0x61e7[48],_0x61e7[49],_0x61e7[49]))));if( typeof Autoattack!== _0x61e7[35]){_0xa676x2[_0x61e7[69]](_0x61e7[68])[_0x61e7[67]](Autobot[_0x61e7[50]](_0x61e7[64],_0x61e7[65],_0x61e7[66]))};if( typeof Autobuild!== _0x61e7[35]){_0xa676x2[_0x61e7[69]](_0x61e7[68])[_0x61e7[67]](Autobot[_0x61e7[50]](_0x61e7[70],_0x61e7[71],_0x61e7[72]))};if( typeof Autoculture!== _0x61e7[35]){_0xa676x2[_0x61e7[69]](_0x61e7[68])[_0x61e7[67]](Autobot[_0x61e7[50]](_0x61e7[73],_0x61e7[74],_0x61e7[75]))};if( typeof Autofarm!== _0x61e7[35]){_0xa676x2[_0x61e7[69]](_0x61e7[68])[_0x61e7[67]](Autobot[_0x61e7[50]](_0x61e7[76],_0x61e7[77],_0x61e7[78]))};$(_0x61e7[79])[_0x61e7[26]]()}},addMenuItem:function(_0xa676x3,_0xa676x4,_0xa676x5){return $(_0x61e7[102])[_0x61e7[60]]($(_0x61e7[98],{"class":_0x61e7[99],"href":_0x61e7[100],"id":_0x61e7[101]+ _0xa676x3,"rel":_0xa676x5})[_0x61e7[26]](function(){Autobot[_0x61e7[34]][_0x61e7[47]]()[_0x61e7[69]](_0x61e7[88])[_0x61e7[87]](_0x61e7[86]);$(this)[_0x61e7[89]](_0x61e7[86]);Autobot[_0x61e7[34]][_0x61e7[93]](Autobot[_0x61e7[92]]($(this)[_0x61e7[91]](_0x61e7[90])));if($(this)[_0x61e7[91]](_0x61e7[90])== _0x61e7[53]){var _0xa676x6=$(_0x61e7[94]);var _0xa676x7=$(_0x61e7[96])[0][_0x61e7[95]];_0xa676x6[_0x61e7[97]](_0xa676x7)}})[_0x61e7[60]](function(){return _0xa676x5!= _0x61e7[49]?$(_0x61e7[81],{"class":_0x61e7[84]})[_0x61e7[60]]($(_0x61e7[81],{"class":_0x61e7[83]})[_0x61e7[60]]($(_0x61e7[81],{"class":_0x61e7[82]})[_0x61e7[80]](_0xa676x4))):_0x61e7[85]}))},getContent:function(_0xa676x8){if(_0xa676x8== _0x61e7[53]){return ConsoleLog[_0x61e7[103]]()}else {if(_0xa676x8== _0x61e7[57]){return Autobot[_0x61e7[104]]()}else {if(_0xa676x8== _0x61e7[49]){return Autobot[_0x61e7[105]]()}else {if( typeof window[_0xa676x8]!= _0x61e7[35]){return window[_0xa676x8][_0x61e7[106]]()};return _0x61e7[5]}}}},contentAccount:function(){var _0xa676x9={"Name:":Game[_0x61e7[7]],"World:":Game[_0x61e7[8]],"Rank:":Game[_0x61e7[107]],"Towns:":Game[_0x61e7[108]],"Language:":Game[_0x61e7[9]],"Premium: ":(Autobot[_0x61e7[109]]- Timestamp[_0x61e7[110]]())>= 0?Autobot[_0x61e7[111]](Autobot[_0x61e7[109]]- Timestamp[_0x61e7[110]]())+ _0x61e7[112]:_0x61e7[113]+ _0x61e7[112],"Trial:":((Autobot[_0x61e7[114]]- Timestamp[_0x61e7[110]]())>= 0?Autobot[_0x61e7[111]](Autobot[_0x61e7[114]]- Timestamp[_0x61e7[110]]()):_0x61e7[115])+ (Autobot[_0x61e7[116]]== 0?_0x61e7[117]:_0x61e7[5])};var _0xa676xa=$(_0x61e7[125],{"class":_0x61e7[126],"cellspacing":_0x61e7[127],"width":_0x61e7[128]})[_0x61e7[60]](function(){var _0xa676xb=0;var _0xa676xc=$(_0x61e7[118]);$[_0x61e7[124]](_0xa676x9,function(_0xa676xd,_0xa676xe){_0xa676xc[_0x61e7[60]]($(_0x61e7[121],{"class":_0xa676xb% 2?_0x61e7[122]:_0x61e7[123]})[_0x61e7[60]]($(_0x61e7[119],{"style":_0x61e7[120]})[_0x61e7[80]](_0xa676xd))[_0x61e7[60]]($(_0x61e7[119])[_0x61e7[80]](_0xa676xe)));_0xa676xb++});return _0xa676xc});var _0xa676xf=FormBuilder[_0x61e7[132]](_0x61e7[57],_0x61e7[130],_0xa676xa,_0x61e7[131])[0][_0x61e7[129]];_0xa676xf+= $(_0x61e7[61],{"id":_0x61e7[133],"style":_0x61e7[5]})[0][_0x61e7[129]];return _0xa676xf},contentSupport:function(){return $(_0x61e7[177],{"id":_0x61e7[178],"style":_0x61e7[179]})[_0x61e7[60]]($(_0x61e7[176])[_0x61e7[80]](_0x61e7[175]))[_0x61e7[60]]($(_0x61e7[61],{style:_0x61e7[174]})[_0x61e7[60]](FormBuilder[_0x61e7[173]]({id:_0x61e7[166],name:_0x61e7[166],label:_0x61e7[167],styles:_0x61e7[168],value:_0x61e7[169],options:[{value:_0x61e7[169],name:_0x61e7[169]},{value:_0x61e7[170],name:_0x61e7[170]},{value:_0x61e7[171],name:_0x61e7[171]},{value:_0x61e7[172],name:_0x61e7[172]}]}))[_0x61e7[60]](FormBuilder[_0x61e7[162]]({id:_0x61e7[141],name:_0x61e7[163],style:_0x61e7[164],value:_0x61e7[5],type:_0x61e7[165]}))[_0x61e7[60]](FormBuilder[_0x61e7[162]]({id:_0x61e7[143],name:_0x61e7[159],style:_0x61e7[160],value:_0x61e7[5],type:_0x61e7[161]}))[_0x61e7[60]](FormBuilder[_0x61e7[158]]({id:_0x61e7[145],name:_0x61e7[157],value:_0x61e7[5]}))[_0x61e7[60]](FormBuilder[_0x61e7[156]]({name:_0x61e7[154],style:_0x61e7[155]})[_0x61e7[28]](_0x61e7[26],function(){var _0xa676x10=$(_0x61e7[140])[_0x61e7[139]]();var _0xa676x11=false;if( typeof _0xa676x10[_0x61e7[141]]=== _0x61e7[35]|| _0xa676x10[_0x61e7[141]]== _0x61e7[5]){_0xa676x11= _0x61e7[142]}else {if( typeof _0xa676x10[_0x61e7[143]]=== _0x61e7[35]|| _0xa676x10[_0x61e7[143]]== _0x61e7[5]){_0xa676x11= _0x61e7[144]}else {if( typeof _0xa676x10[_0x61e7[145]]=== _0x61e7[35]|| _0xa676x10[_0x61e7[145]]== _0x61e7[5]){_0xa676x11= _0x61e7[146]}else {if( typeof _0xa676x10[_0x61e7[141]]!== _0x61e7[35]&& !/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/[_0x61e7[147]](_0xa676x10[_0x61e7[141]])){_0xa676x11= _0x61e7[148]}}}};if(_0xa676x11){HumanMessage[_0x61e7[149]](_0xa676x11)}else {DataExchanger.Auth(_0x61e7[150],$[_0x61e7[151]]({csrfToken:Autobot[_0x61e7[57]][_0x61e7[11]],player_name:Autobot[_0x61e7[57]][_0x61e7[7]],player_id:Autobot[_0x61e7[57]][_0x61e7[6]],world_id:Autobot[_0x61e7[57]][_0x61e7[8]]},_0xa676x10),function(_0xa676x9){if(_0xa676x9[_0x61e7[152]]){if( typeof Autobot[_0x61e7[34]]!= _0x61e7[35]){try{Autobot[_0x61e7[34]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[34]]= undefined};HumanMessage[_0x61e7[152]](_0x61e7[153])}})}})))[_0x61e7[60]]($(_0x61e7[61],{style:_0x61e7[138]})[_0x61e7[60]]($(_0x61e7[98],{id:_0x61e7[135],target:_0x61e7[136],href:_0x61e7[137]})[_0x61e7[80]](_0x61e7[134])))},checkAlliance:function(){if(!$(_0x61e7[182])[_0x61e7[181]](_0x61e7[180])){DataExchanger[_0x61e7[190]](function(_0xa676x9){if(_0xa676x9[_0x61e7[183]][_0x61e7[80]]!= undefined){jQuery[_0x61e7[124]]($(_0xa676x9[_0x61e7[183]][_0x61e7[80]])[_0x61e7[69]](_0x61e7[184]),function(){var _0xa676xe=atob($(this)[_0x61e7[91]](_0x61e7[185]));console[_0x61e7[189]](JSON[_0x61e7[188]](_0xa676xe[_0x61e7[187]](0,_0xa676xe[_0x61e7[186]]- 3)))})}})}},fixMessage:function(){var _0xa676x12=function(_0xa676x13){return function(){_0xa676x13[_0x61e7[191]](this,arguments);$(window)[_0x61e7[192]](_0x61e7[26])}};HumanMessage[_0x61e7[193]]= _0xa676x12(HumanMessage._initialize)},getPremium:function(){if(Autobot[_0x61e7[33]]){$.Observer(GameEvents[_0x61e7[196]][_0x61e7[26]])[_0x61e7[195]]({option_id:_0x61e7[194]});if( typeof Autobot[_0x61e7[37]]!= _0x61e7[35]){try{Autobot[_0x61e7[37]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[37]]= undefined};if( typeof Autobot[_0x61e7[34]]!= _0x61e7[35]){try{Autobot[_0x61e7[34]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[34]]= undefined};Autobot[_0x61e7[37]]= Layout[_0x61e7[43]][_0x61e7[42]](_0x61e7[5],_0x61e7[197]+ Autobot[_0x61e7[40]]+ _0x61e7[198],500,350,_0x61e7[5],false);Autobot[_0x61e7[37]][_0x61e7[44]]([350]);Autobot[_0x61e7[37]][_0x61e7[46]]([_0x61e7[45],_0x61e7[45]]);var _0xa676x14=$(_0x61e7[61],{id:_0x61e7[220]})[_0x61e7[60]]($(_0x61e7[61],{id:_0x61e7[84]})[_0x61e7[60]]($(_0x61e7[58],{id:_0x61e7[219]})[_0x61e7[60]]($(_0x61e7[102],{class:_0x61e7[86]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[210]})[_0x61e7[80]](_0x61e7[218]))[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[208]})[_0x61e7[80]](_0x61e7[217])))[_0x61e7[60]]($(_0x61e7[102])[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[210]})[_0x61e7[80]](_0x61e7[216]))[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[208]})[_0x61e7[80]](_0x61e7[215]))[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[206]})[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[204],style:_0x61e7[205]})[_0x61e7[80]](_0x61e7[214]))))[_0x61e7[60]]($(_0x61e7[102])[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[210]})[_0x61e7[80]](_0x61e7[213]))[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[208]})[_0x61e7[80]](_0x61e7[212]))[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[206]})[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[204],style:_0x61e7[205]})[_0x61e7[80]](_0x61e7[211]))))[_0x61e7[60]]($(_0x61e7[102])[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[210]})[_0x61e7[80]](_0x61e7[209]))[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[208]})[_0x61e7[80]](_0x61e7[207]))[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[206]})[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[204],style:_0x61e7[205]})[_0x61e7[80]](_0x61e7[203]))))))[_0x61e7[60]]($(_0x61e7[61],{id:_0x61e7[83]})[_0x61e7[60]]($(_0x61e7[61],{id:_0x61e7[202]}))[_0x61e7[60]]($(_0x61e7[61],{id:_0x61e7[201]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[161]})[_0x61e7[80]](_0x61e7[200]))[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[156]})[_0x61e7[80]](_0x61e7[199]))));Autobot[_0x61e7[37]][_0x61e7[93]](_0xa676x14);var _0xa676x15=0;$(_0x61e7[221])[_0x61e7[28]](_0x61e7[26],function(){$(_0x61e7[221])[_0x61e7[87]](_0x61e7[86]);$(this)[_0x61e7[89]](_0x61e7[86]);_0xa676x15= $(this)[_0x61e7[222]]();var _0xa676x16=$(_0x61e7[223]);if(_0xa676x15== 0){_0xa676x16[_0x61e7[80]](_0x61e7[200])}else {if(_0xa676x15== 1){_0xa676x16[_0x61e7[80]](_0x61e7[224])}else {if(_0xa676x15== 2){_0xa676x16[_0x61e7[80]](_0x61e7[225])}else {if(_0xa676x15== 3){_0xa676x16[_0x61e7[80]](_0x61e7[226])}}}}});$(_0x61e7[233])[_0x61e7[28]](_0x61e7[26],function(){var _0xa676x17=window[_0x61e7[42]](Autobot[_0x61e7[227]]+ _0x61e7[228]+ _0xa676x15+ _0x61e7[229]+ Autobot[_0x61e7[57]][_0x61e7[6]],_0x61e7[230],_0x61e7[231]);var _0xa676x18=setInterval(function(){if(!_0xa676x17|| _0xa676x17[_0x61e7[232]]){clearInterval(_0xa676x18);Autobot[_0x61e7[13]]()}},500)})}},botFacebookWnd:function(){if(Autobot[_0x61e7[33]]&& Autobot[_0x61e7[116]]== 0){if( typeof Autobot[_0x61e7[234]]!= _0x61e7[35]){try{Autobot[_0x61e7[234]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[234]]= undefined};Autobot[_0x61e7[234]]= Layout[_0x61e7[43]][_0x61e7[42]](_0x61e7[5],_0x61e7[197]+ Autobot[_0x61e7[40]]+ _0x61e7[235],275,125,_0x61e7[5],false);Autobot[_0x61e7[234]][_0x61e7[44]]([125]);Autobot[_0x61e7[234]][_0x61e7[46]]([_0x61e7[45],_0x61e7[45]]);var _0xa676x14=$(_0x61e7[61],{id:_0x61e7[238]})[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[237]}))[_0x61e7[60]](_0x61e7[236]);Autobot[_0x61e7[234]][_0x61e7[93]](_0xa676x14);$(_0x61e7[244])[_0x61e7[243]](_0x61e7[242])[_0x61e7[241]]({"left":_0x61e7[239],"right":_0x61e7[239],"top":_0x61e7[240]});var _0xa676x19=false;var _0xa676x1a=false;var _0xa676x1b=function(){if(_0xa676x19|| _0xa676x1a){Autobot[_0x61e7[245]]()};if(_0xa676x19&& _0xa676x1a){$.Observer(GameEvents[_0x61e7[248]][_0x61e7[247]][_0x61e7[42]])[_0x61e7[195]]({quest_type:_0x61e7[246]});HumanMessage[_0x61e7[152]](_0x61e7[249]);if( typeof Autobot[_0x61e7[234]]!= _0x61e7[35]){try{Autobot[_0x61e7[234]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[234]]= undefined};if( typeof Autobot[_0x61e7[34]]!= _0x61e7[35]){try{Autobot[_0x61e7[34]][_0x61e7[36]]()}catch(F){};Autobot[_0x61e7[34]]= undefined}}};if(window[_0x61e7[250]]== undefined){window[_0x61e7[250]]= function(){FB[_0x61e7[20]]({appId:_0x61e7[251],xfbml:true,version:_0x61e7[252]});FB[_0x61e7[254]][_0x61e7[30]](_0x61e7[253],function(_0xa676x1c){_0xa676x1a= true;_0xa676x1b()});FB[_0x61e7[254]][_0x61e7[30]](_0x61e7[255],function(_0xa676x1c){_0xa676x1a= false})}};if($(_0x61e7[256])[_0x61e7[186]]<= 0){(function(_0xa676x1d,_0xa676x1e,_0xa676x3){var _0xa676x1f,_0xa676x20=_0xa676x1d[_0x61e7[259]](_0xa676x1e)[0];if(_0xa676x1d[_0x61e7[260]](_0xa676x3)){return};_0xa676x1f= _0xa676x1d[_0x61e7[261]](_0xa676x1e);_0xa676x1f[_0x61e7[262]]= _0xa676x3;_0xa676x1f[_0x61e7[263]]= _0x61e7[264];_0xa676x20[_0x61e7[266]][_0x61e7[265]](_0xa676x1f,_0xa676x20)}(document,_0x61e7[257],_0x61e7[258]))}else {FB[_0x61e7[267]][_0x61e7[188]]()};$(_0x61e7[271])[_0x61e7[28]](_0x61e7[26],function(){FB[_0x61e7[270]]({method:_0x61e7[268],href:_0x61e7[137]},function(_0xa676x1c){if(_0xa676x1c&& !_0xa676x1c[_0x61e7[269]]){_0xa676x19= true;_0xa676x1b()}})})}},upgrade3Days:function(){DataExchanger.Auth(_0x61e7[245],Autobot.Account,function(_0xa676x9){if(_0xa676x9[_0x61e7[152]]){DataExchanger.Auth(_0x61e7[23],Autobot.Account,ModuleManager[_0x61e7[24]])}})},initAjax:function(){$(document)[_0x61e7[283]](function(_0xa676x21,_0xa676x22,_0xa676x23){if(_0xa676x23[_0x61e7[273]][_0x61e7[272]](Autobot[_0x61e7[227]])== -1&& _0xa676x23[_0x61e7[273]][_0x61e7[272]](_0x61e7[274])!= -1&& _0xa676x22[_0x61e7[275]]== 4&& _0xa676x22[_0x61e7[276]]== 200){var _0xa676x24=_0xa676x23[_0x61e7[273]][_0x61e7[278]](_0x61e7[277]);var _0xa676x25=_0xa676x24[0][_0x61e7[187]](6)+ _0x61e7[279]+ _0xa676x24[1][_0x61e7[278]](_0x61e7[280])[1][_0x61e7[187]](7);if( typeof Autobuild!== _0x61e7[35]){Autobuild[_0x61e7[281]](_0xa676x25)};if( typeof Autoattack!== _0x61e7[35]){Autoattack[_0x61e7[281]](_0xa676x25,_0xa676x22[_0x61e7[282]])}}})},verifyEmail:function(){if(Autobot[_0x61e7[33]]){DataExchanger[_0x61e7[288]](function(_0xa676x9){if(_0xa676x9[_0x61e7[183]][_0x61e7[80]]!= undefined){DataExchanger.Auth(_0x61e7[284],{key:btoa(Autobot[_0x61e7[286]]({player_id:Autobot[_0x61e7[57]][_0x61e7[6]],player_email:$(_0xa676x9[_0x61e7[183]][_0x61e7[80]])[_0x61e7[69]](_0x61e7[285])[_0x61e7[80]]()}))},function(_0xa676x9){if(_0xa676x9[_0x61e7[152]]!= undefined){Autobot[_0x61e7[287]]()}})}})}},randomize:function(_0xa676x26,_0xa676x27){return Math[_0x61e7[290]](Math[_0x61e7[289]]()* (_0xa676x27- _0xa676x26+ 1))+ _0xa676x26},secondsToTime:function(_0xa676x28){var _0xa676x29=Math[_0x61e7[290]](_0xa676x28/ 86400);var _0xa676x2a=Math[_0x61e7[290]]((_0xa676x28% 86400)/ 3600);var _0xa676x2b=Math[_0x61e7[290]](((_0xa676x28% 86400)% 3600)/ 60);return (_0xa676x29?_0xa676x29+ _0x61e7[291]:_0x61e7[5])+ (_0xa676x2a?_0xa676x2a+ _0x61e7[292]:_0x61e7[5])+ (_0xa676x2b?_0xa676x2b+ _0x61e7[293]:_0x61e7[5])},timeToSeconds:function(_0xa676x2c){var _0xa676x2d=_0xa676x2c[_0x61e7[278]](_0x61e7[294]),_0xa676x1e=0,_0xa676x2e=1;while(_0xa676x2d[_0x61e7[186]]> 0){_0xa676x1e+= _0xa676x2e* parseInt(_0xa676x2d[_0x61e7[295]](),10);_0xa676x2e*= 60};return _0xa676x1e},arrowActivated:function(){var _0xa676x2f=$(_0x61e7[61],{"class":_0x61e7[296],"data-direction":_0x61e7[297],"style":_0x61e7[298]});Autobot[_0x61e7[21]][_0x61e7[60]](_0xa676x2f);_0xa676x2f[_0x61e7[305]]()[_0x61e7[304]]({left:_0x61e7[302]},_0x61e7[303])[_0x61e7[301]](10000)[_0x61e7[300]](_0x61e7[299]);setTimeout(function(){Autobot[_0x61e7[306]]()},25000)},createNotification:function(_0xa676x30,_0xa676x31){var _0xa676x32=( typeof Layout[_0x61e7[307]]== _0x61e7[35])? new NotificationHandler():Layout;_0xa676x32[_0x61e7[307]]($(_0x61e7[308])[_0x61e7[186]]+ 1,_0xa676x30,_0x61e7[309]+ _0x61e7[0]+ _0x61e7[310]+ _0xa676x31+ _0x61e7[311]+ _0x61e7[312]+ Autobot[_0x61e7[40]]+ _0x61e7[41])},toHHMMSS:function(_0xa676x33){var _0xa676x34=~~(_0xa676x33/ 3600);var _0xa676x35=~~((_0xa676x33% 3600)/ 60);var _0xa676x36=_0xa676x33% 60;ret= _0x61e7[5];if(_0xa676x34> 0){ret+= _0x61e7[5]+ _0xa676x34+ _0x61e7[294]+ (_0xa676x35< 10?_0x61e7[127]:_0x61e7[5])};ret+= _0x61e7[5]+ _0xa676x35+ _0x61e7[294]+ (_0xa676x36< 10?_0x61e7[127]:_0x61e7[5]);ret+= _0x61e7[5]+ _0xa676x36;return ret},stringify:function(_0xa676x37){var _0xa676x38= typeof _0xa676x37;if(_0xa676x38=== _0x61e7[313]){return _0x61e7[314]+ _0xa676x37+ _0x61e7[314]};if(_0xa676x38=== _0x61e7[315]|| _0xa676x38=== _0x61e7[316]){return _0xa676x37};if(_0xa676x38=== _0x61e7[317]){return _0xa676x37.toString()};var _0xa676x39=[];for(var _0xa676x3a in _0xa676x37){_0xa676x39[_0x61e7[31]](_0x61e7[314]+ _0xa676x3a+ _0x61e7[318]+ this[_0x61e7[286]](_0xa676x37[_0xa676x3a]))};return _0x61e7[319]+ _0xa676x39[_0x61e7[321]](_0x61e7[320])+ _0x61e7[322]},isActive:function(){setTimeout(function(){DataExchanger.Auth(_0x61e7[15],Autobot.Account,Autobot[_0x61e7[15]])},180000)},town_map_info:function(_0xa676x3b,_0xa676x3c){if(_0xa676x3b!= undefined&& _0xa676x3b[_0x61e7[186]]> 0&& _0xa676x3c[_0x61e7[7]]){for(var _0xa676x3d=0;_0xa676x3d< _0xa676x3b[_0x61e7[186]];_0xa676x3d++){if(_0xa676x3b[_0xa676x3d][_0x61e7[323]]== _0x61e7[324]){if( typeof Assistant!== _0x61e7[35]){if(Assistant[_0x61e7[326]][_0x61e7[325]]){$(_0xa676x3b[_0xa676x3d])[_0x61e7[89]](_0x61e7[327])};if(Assistant[_0x61e7[326]][_0x61e7[7]]){$(_0xa676x3b[_0xa676x3d])[_0x61e7[89]](_0x61e7[328])};if(Assistant[_0x61e7[326]][_0x61e7[329]]){$(_0xa676x3b[_0xa676x3d])[_0x61e7[89]](_0x61e7[330])}};$(_0xa676x3b[_0xa676x3d])[_0x61e7[60]](_0x61e7[331]+ (_0xa676x3c[_0x61e7[7]]|| _0x61e7[5])+ _0x61e7[332]);$(_0xa676x3b[_0xa676x3d])[_0x61e7[60]](_0x61e7[333]+ _0xa676x3c[_0x61e7[334]]+ _0x61e7[332]);$(_0xa676x3b[_0xa676x3d])[_0x61e7[60]](_0x61e7[335]+ (_0xa676x3c[_0x61e7[329]]|| _0x61e7[5])+ _0x61e7[332]);break}}};return _0xa676x3b},checkPremium:function(_0xa676x3e){return $(_0x61e7[337]+ _0xa676x3e+ _0x61e7[338])[_0x61e7[181]](_0xa676x3e+ _0x61e7[336])},initWindow:function(){$(_0x61e7[341])[_0x61e7[241]](_0x61e7[339],_0x61e7[340]);$(_0x61e7[61],{class:_0x61e7[362]})[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[361]})[_0x61e7[60]]($(_0x61e7[58])[_0x61e7[60]]($(_0x61e7[102],{id:_0x61e7[360],class:_0x61e7[180]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[359]})))[_0x61e7[60]]($(_0x61e7[102],{id:_0x61e7[358],class:_0x61e7[180]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[357]})))[_0x61e7[60]]($(_0x61e7[102],{id:_0x61e7[356],class:_0x61e7[180]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[355]})))[_0x61e7[60]]($(_0x61e7[102],{id:_0x61e7[354],class:_0x61e7[180]})[_0x61e7[60]]($(_0x61e7[81],{class:_0x61e7[353]})))[_0x61e7[60]]($(_0x61e7[102])[_0x61e7[60]]($(_0x61e7[81],{href:_0x61e7[100],class:_0x61e7[352]})[_0x61e7[28]](_0x61e7[26],function(){if(Autobot[_0x61e7[33]]){Autobot[_0x61e7[351]]()}})[_0x61e7[350]]( new MousePopup(DM[_0x61e7[349]](_0x61e7[348])[_0x61e7[347]][_0x61e7[326]]))))))[_0x61e7[60]]($(_0x61e7[61],{id:_0x61e7[345],class:_0x61e7[346]}))[_0x61e7[60]]($(_0x61e7[61],{class:_0x61e7[344]}))[_0x61e7[343]](_0x61e7[342])},initMapTownFeature:function(){var _0xa676x3f=function(_0xa676x13){return function(){var _0xa676x3b=_0xa676x13[_0x61e7[191]](this,arguments);return Autobot[_0x61e7[363]](_0xa676x3b,arguments[0])}};MapTiles[_0x61e7[364]]= _0xa676x3f(MapTiles[_0x61e7[364]])},checkAutoRelogin:function(){if( typeof $[_0x61e7[366]](_0x61e7[365])!== _0x61e7[35]&& typeof $[_0x61e7[366]](_0x61e7[367])!== _0x61e7[35]){var _0xa676x40=$[_0x61e7[366]](_0x61e7[367])[_0x61e7[371]](/\/\/(.*?)\.grepolis\.com/g)[0][_0x61e7[369]](_0x61e7[370],_0x61e7[5])[_0x61e7[369]](_0x61e7[368],_0x61e7[5]);DataExchanger.Auth(_0x61e7[372],{player_id:$[_0x61e7[366]](_0x61e7[365]),world_id:_0xa676x40},function(_0xa676x9){if(_0xa676x9!= 0){setTimeout(function(){DataExchanger[_0x61e7[373]](_0xa676x40)},_0xa676x9* 1000)}})}}};(function(){String[_0x61e7[375]][_0x61e7[374]]= function(){return this[_0x61e7[377]](0)[_0x61e7[376]]()+ this[_0x61e7[378]](1)};$[_0x61e7[379]][_0x61e7[139]]= function(){var _0xa676x41={};var _0xa676x42=this[_0x61e7[380]]();$[_0x61e7[124]](_0xa676x42,function(){if(_0xa676x41[this[_0x61e7[334]]]!== undefined){if(!_0xa676x41[this[_0x61e7[334]]][_0x61e7[31]]){_0xa676x41[this[_0x61e7[334]]]= [_0xa676x41[this[_0x61e7[334]]]]};_0xa676x41[this[_0x61e7[334]]][_0x61e7[31]](this[_0x61e7[381]]|| _0x61e7[5])}else {_0xa676x41[this[_0x61e7[334]]]= this[_0x61e7[381]]|| _0x61e7[5]}});return _0xa676x41};var _0xa676x43=setInterval(function(){if(window[_0x61e7[382]]!= undefined){if($(_0x61e7[341])[_0x61e7[186]]&& !$[_0x61e7[384]](ITowns[_0x61e7[383]])){clearInterval(_0xa676x43);Autobot[_0x61e7[385]]();Autobot[_0x61e7[18]]();$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[386],function(){$[_0x61e7[395]]($[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[388]),$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[390]),$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[391]),$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[392]),$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[393]),$.Deferred(function(_0xa676x44){$(_0xa676x44[_0x61e7[394]])}))[_0x61e7[387]](function(){Autobot[_0x61e7[20]]()})})}else {if(/grepolis\.com\/start\?nosession/g[_0x61e7[147]](window[_0x61e7[3]][_0x61e7[185]])){clearInterval(_0xa676x43);$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[386],function(){$[_0x61e7[395]]($[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[388]),$[_0x61e7[389]](Autobot[_0x61e7[227]]+ _0x61e7[397]),$.Deferred(function(_0xa676x44){$(_0xa676x44[_0x61e7[394]])}))[_0x61e7[387]](function(){Autobot[_0x61e7[396]]()})})}}}},100)})()